Passing Values between ASP.NET Web Forms - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Passing Values between ASP.NET Web Forms

srinivasvsrinivasv Posts: 1Member
For passing Values between ASP.NET Web Forms how to create the instance of [color=Red]Source.aspx[/color] page(Source WebForm) in [color=Red]Target.aspx[/color](Target WebForm ) page

Destination Web Form([color=Red]Target.aspx.cs[/color])

[color=Red]Not-Working code is shown below:[/color]

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

Sign In or Register to comment.