13,153 Topics

Member Avatar for
Member Avatar for HunainHafeez

here in this block i am creating cookie protected void Button1_Click(object sender, EventArgs e) { String employerEmail = Request.QueryString["employerEmail"]; HttpCookie employerEmailCookie = new HttpCookie("empEmailCookie", "defaulfCookieValue"); employerEmailCookie["employerEmail"] = employerEmail; employerEmailCookie["CurrentDate"] = DateTime.Now.ToString(); employerEmailCookie.Expires = DateTime.Now.AddMinutes(30); Response.Cookies.Add(employerEmailCookie); Response.Redirect("https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_xclick&business=smile2_1355775057_biz@yahoo.com&item_name=MemberShip&amount=20¤cy=USD&return=http://127.0.0.1:57135/Online%20Recruitment%20System-Final/paymentSuccessful.aspx?emailAdmin='"+employerEmail+"' &cancel_return=https://www.google.com/" ); } and then when i return back to the page that i …

Member Avatar for HunainHafeez
0
62
Member Avatar for HunainHafeez

i am trying to access a query string value from .cs page to aspx page but cann't bcz i am retrieving it within Page_load function , so its been local to this event and cannot be accessed outside so what to do ? code: protected void Page_Load(object sender, EventArgs e) …

Member Avatar for JorgeM
0
160
Member Avatar for HunainHafeez

i have hashed password using SHA1 and for login i am using same algo, so when user enters password, both hased gets matched and he/she logs in, thats ok and working , quite happy :) but problem is that sha1 cannot reversed , its a one way algo, and i …

Member Avatar for HunainHafeez
0
86
Member Avatar for lhsunshine

My website is using asp.net with c#. Recently i am adding a new function by adding a flash webcam photo capture. In local it can function well, it can capture photo, save into database, and display the photo. However, after deploy it cannot funtion well on my server. The webcam …

Member Avatar for AleMonteiro
0
1K
Member Avatar for lavanya uppala

Hi I am new to ASp.net. I don't know how to uses of Slide show extender and images sliding. I am using HTMl Programing .Please suggest me ... Thanks in Advance.

Member Avatar for kvprajapati
0
147
Member Avatar for jaimin4829
Member Avatar for elpitiya

when developing a web application both above mentioned technologies can be used. LINQ to Entity Framework is good for Quick development while Pure ADO.net needs lots of Codes. but want to know for Small/Mediam web application which approach is best. I'm considering only performace and adding new component so frequently.

Member Avatar for Ramesh S
0
207
Member Avatar for b.shafabakhsh

I have been editing one html template in Microsoft Expression web 4,and right now I wish to bring all I have done into Visual Studio in order to start coding on it. But when I copy everything into a webpage in Asp.net some parts of my template will change,I could …

Member Avatar for b.shafabakhsh
0
225
Member Avatar for HunainHafeez

Error : SERVER TAG NOT WELL FORMED, why ? <%@ Page Language="C#" AutoEventWireup="true" CodeFile="employerView_ScrutinyMembers.aspx.cs" Inherits="employerView_ScrutinyMembers" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Scrutiny Members</title> </head> <body> <form id="form1" runat="server"> <div> <asp:TextBox ID="txtboxMemberName" runat="server"></asp:TextBox> <asp:Button ID="btnSearch" runat="server" Text="Search" onclick="btnSearch_Click" /> Or <asp:Button ID="btbViewall" runat="server" Text="View …

Member Avatar for JorgeM
0
630
Member Avatar for Lyfe

**i have consumed a webservice (shown below) from webservicex.net into my client C#.NET application but it is returning this whole bunch of XML. Please, how do i get values of only <wind> and <temperature> elements into my application's textbox? Thanks** <string><?xml version="1.0" encoding="utf-16"?> <CurrentWeather> <Location>Madrid / Cuatro Vientos, Spain (LEVS) …

Member Avatar for tinstaafl
0
310
Member Avatar for masonz

I have a question about asp dot net.....how much masterpage we can use in making a website in asp dot net????

Member Avatar for JorgeM
0
42
Member Avatar for while(!success)

Hi guys, how would I translate the functionality of this anchor: <a style="font-size: small;" href="javascript:void(0)" onclick="document.getElementById('info').style.display='block';document.getElementById('fade').style.display='block';return false;">Blahblah</a> To an asp.net imagebutton control? This is what I have come up with: <asp:ImageButton ID="ImgBtn" runat="server" ImageUrl="~Images/Go.gif" OnClientClick="<script type='text/javascript'>document.getElementById('info').style.display='block';document.getElementById('fade').style.display='block';return false;</script>" /> But its not coming out the same way. Can anyone help me …

Member Avatar for JorgeM
-1
778
Member Avatar for RT00220489

Hi.. I am designing a GUI for which I need effect as images are ahown in one vertical row. When mouse points on a particular image, that image should appear enlarged along with hyperlink for details and add to cart(just as similiar to google images).. The only difference is that …

Member Avatar for JorgeM
0
141
Member Avatar for swathi sajja

How to add Sub menus in menu item.Main Menu item is Horizontal, Sub menu item are also getting Horizontal but i wont Menu item are Horizontal and Sub menu items are vertical

Member Avatar for JorgeM
0
180
Member Avatar for disjes

Hi i nedd to update a datatable binded in a gridview here is the code: protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { ds.Tables[0].Rows[e.RowIndex]["n1"] = Convert.ToInt32(((TextBox)(this.GridView1.Rows[e.RowIndex].Cells[3].Controls[0])).Text); this.GridView1.DataBind(); GridView1.EditIndex = -1; GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); } The problem is that when i change a value in the cell 3 and i click …

Member Avatar for tinstaafl
0
257
Member Avatar for bharanidharanit

hello, I am using Visual Web developer 2008. I am using loginname control. there it displays name as admin. How to get that value to textbox or label. Simply i want to get that value as string. Thanks

Member Avatar for skhan7332
0
167
Member Avatar for singularity~

My linq query won't insert my data. What am I doing wrong? class Query { musicEntities db = new musicEntities(); public bool findArtist(string artist) { bool status = db.Artists.Any(w => w.Name.Contains(artist)); return status; } public void insertArtist(string artist) { if (findArtist(artist) == false) { Artist art = new Artist { …

Member Avatar for singularity~
0
251
Member Avatar for shahai.ali

hi i have a dropdown which is connected with a database and containing some sort of items, and a gridview. i want to show only those values into the gridview which is select from the dropdown. for example if i have the following values in to the database: value item …

Member Avatar for Philippe.Lahaie
0
214
Member Avatar for ben.matthews18

hi here's how i have my sharepoint site setup. root is http://sharepoint2010 this is on port 80. I have my homepage setup on http://sharepoint2010/sites/intranet how can i create a redirect so that when people access http://sharepoint2010 they get redirected to http://sharepoint2010/sites/intranet ? when i access http://sharepoint2010 i just get a …

Member Avatar for JorgeM
0
98
Member Avatar for MARKAND911

`insert into table1 (Wicket,Run,Catch) values (Wicket+2,Run+22,Catch+5)` This statement is used to insert data using StoredProcedure. How can i insert data same way without using storeprocedure but using LinqToSql. What will be code for it.

Member Avatar for pritaeas
0
101
Member Avatar for coder91

I have a button that when clicked produces a PDF report. However I have validation on the page so that if the required fields are left empty when the button is clicked a validation summary appears. This doesn't work though. When the buttons clicked if fields are left empty it …

Member Avatar for coder91
0
105
Member Avatar for richjohn.bulante

i have a problem on how to code for automatic generate an employee id whenever i registered an account in my system. i used asp.net as my front end and Sql Server Database 2005 as my back end.. thnx a lot!

Member Avatar for sandeepmittal11
0
3K
Member Avatar for dre-logics

I have made a application X1 with Visual Studio 2008 (visual basic) .NET Framework 3.5 and deployed on Windows 7 desktop System. Works fine. The Same application X1 i have now made with Visual Studio 2012 (visual basic) .NET Framework 4.5. What must i do to ensure that the application …

Member Avatar for pritaeas
0
140
Member Avatar for Dan301978

Hi guys, I haven't been able to get a definite answer on this. I've been very kindly put on to resources regarding ViewState but they only talk about saving the state of controls - not C# objects. I've also had a thorough look through my ASP.NET book & no joy …

Member Avatar for BhuvanRam
0
71
Member Avatar for ku.heng.7

protected void Page_Load(object sender, EventArgs e) { if (Session["UserName"] != null) { if (Session["roles"].ToString() != "Admin") { ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('Only Admin Can Access this Page');window.location ='HomePageAdmin.aspx';", true); } } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('Please Login To Proceed');window.location ='HomePageAdmin.aspx';", true); } } protected void btnRegister_Click(object sender, EventArgs e) { …

Member Avatar for BhuvanRam
0
216
Member Avatar for maaw

I would like to create a countdown column in a gridview, based on a date in another BondFiled column in the same gridview.

Member Avatar for TnTinMN
0
1K
Member Avatar for missc

i have a textbox and a button in list view ! now i would like to get the text/value of the textbox on btnClick event ! can some one tell me how i can get it?

Member Avatar for missc
0
97
Member Avatar for krunal1986

hi all, i am sending mail through exchange server version Exchange2010. below is my code: static void Main() { try { string owausername = string.Empty; string owapassword = string.Empty; string mailFrom; string mailTo; string mailSub; string mailBody; ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010); EmailMessage email = new EmailMessage(service); …

Member Avatar for krunal1986
0
656
Member Avatar for RickCJ7

I have a table that has information of fire departments around the state. I am trying to set up the gridview so that the address is a hyperlink with google maps. For example, In my address column, I have an address such as 745 W Colfax Ave Denver CO 80204, …

Member Avatar for JorgeM
0
706
Member Avatar for jaimin4829
Member Avatar for JorgeM
0
368

The End.