Click here to Skip to main content
15,888,984 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Hi , i need an advice Pin
Shmalex18-Jul-06 16:00
Shmalex18-Jul-06 16:00 
GeneralRe: Hi , i need an advice Pin
Mohammed Amine19-Jul-06 0:50
Mohammed Amine19-Jul-06 0:50 
GeneralRe: Hi , i need an advice Pin
Mohammed Amine19-Jul-06 14:09
Mohammed Amine19-Jul-06 14:09 
QuestionHi , please how to send data through a hyperlink in asp.net 1.1 Pin
Mohammed Amine18-Jul-06 1:45
Mohammed Amine18-Jul-06 1:45 
AnswerRe: Hi , please how to send data through a hyperlink in asp.net 1.1 Pin
_AK_18-Jul-06 1:49
_AK_18-Jul-06 1:49 
GeneralRe: Hi , please how to send data through a hyperlink in asp.net 1.1 Pin
Mohammed Amine18-Jul-06 1:56
Mohammed Amine18-Jul-06 1:56 
GeneralRe: Hi , please how to send data through a hyperlink in asp.net 1.1 Pin
_AK_18-Jul-06 2:03
_AK_18-Jul-06 2:03 
AnswerRe: Hi , please how to send data through a hyperlink in asp.net 1.1 Pin
Vipin Venugopal18-Jul-06 2:07
Vipin Venugopal18-Jul-06 2:07 
If u want to transfer the values from one page to another u can either use server.transfer method or u can use response.redirect method with strings of values attached which u want in the other page. i will give sample code.

Source Web Form
private void Button1_Click
(object sender, System.EventArgs e)
{
string url;
url="anotherwebform.aspx?name=" + TextBox1.Text + "&email=" + TextBox2.Text;
Response.Redirect(url);
}
Destination Web Form
private void Page_Load
(object sender, System.EventArgs e)
{
Label1.Text=Request.QueryString["name"];
Label2.Text=Request.QueryString["email"];
}

Or
Source Web Form
Add following properties to the web form:


public string Name
{
get
{
return TextBox1.Text;
}
}

public string EMail
{
get
{
return TextBox2.Text;
}
}

Now, call Server.Transfer.

private void Button1_Click
(object sender, System.EventArgs e)
{
Server.Transfer("anotherwebform.aspx");
}

Destination Web Form

private void Page_Load
(object sender, System.EventArgs e)
{
//create instance of source web form
WebForm1 wf1;
//get reference to current handler instance
wf1=(WebForm1)Context.Handler;
Label1.Text=wf1.Name;
Label2.Text=wf1.EMail;
}


Vipin
GeneralRe: Hi , please how to send data through a hyperlink in asp.net 1.1 [modified] Pin
Mohammed Amine18-Jul-06 2:34
Mohammed Amine18-Jul-06 2:34 
GeneralRe: Hi , please how to send data through a hyperlink in asp.net 1.1 Pin
Vipin Venugopal18-Jul-06 19:43
Vipin Venugopal18-Jul-06 19:43 
QuestionASP GridView retrieveing data from cell Pin
StonePit18-Jul-06 1:44
StonePit18-Jul-06 1:44 
AnswerRe: ASP GridView retrieveing data from cell Pin
Vipin Venugopal18-Jul-06 2:11
Vipin Venugopal18-Jul-06 2:11 
GeneralRe: ASP GridView retrieveing data from cell Pin
StonePit18-Jul-06 3:20
StonePit18-Jul-06 3:20 
GeneralRe: ASP GridView retrieveing data from cell Pin
minhpc_bk18-Jul-06 16:24
minhpc_bk18-Jul-06 16:24 
GeneralRe: ASP GridView retrieveing data from cell [modified] Pin
ozeegers19-Nov-06 0:25
ozeegers19-Nov-06 0:25 
QuestionWeb services Pin
momo00718-Jul-06 1:34
momo00718-Jul-06 1:34 
AnswerRe: Web services Pin
Jim Conigliaro18-Jul-06 2:07
Jim Conigliaro18-Jul-06 2:07 
Questiondatalist Pin
rajmani18-Jul-06 1:28
rajmani18-Jul-06 1:28 
AnswerRe: datalist Pin
Paddy Boyd18-Jul-06 1:35
Paddy Boyd18-Jul-06 1:35 
JokeRe: datalist Pin
Not Active18-Jul-06 2:26
mentorNot Active18-Jul-06 2:26 
AnswerRe: datalist Pin
Daniel Santillanes18-Jul-06 5:31
professionalDaniel Santillanes18-Jul-06 5:31 
Questionhey expers , how to do a text bobx changed ? Pin
Mohammed Amine18-Jul-06 1:27
Mohammed Amine18-Jul-06 1:27 
AnswerRe: hey expers , how to do a text bobx changed ? Pin
Paddy Boyd18-Jul-06 1:37
Paddy Boyd18-Jul-06 1:37 
GeneralRe: hey expers , how to do a text bobx changed ? Pin
Mohammed Amine18-Jul-06 1:48
Mohammed Amine18-Jul-06 1:48 
GeneralRe: hey expers , how to do a text bobx changed ? Pin
Not Active18-Jul-06 2:32
mentorNot Active18-Jul-06 2:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.