In code behind Home.aspx.cs:
protected void Page_Load(object sender, EventArgs e)
{
string bID = Request.QueryString["Id"];
if (string.IsNullOrEmpty(Id))
{
Response.Redirect("Here.aspx?", true);
}
ViewState["Id"] = Id;
link.NavigateUrl = String.Format(link.NavigateUrl, Id);
}
I don't have any problem with passing the Id to url in 2nd page. But what I want right now is, on my Here.aspx, I have 3 textboxes which supposed to be filled by the Id, Name and Address of the certain Id that passed from the Home.aspx. Tried many but had no luck at all. Any help would be appreciated. By the way, I'm using asp.net with c#. Thanks in advance. God Bless
Pankaj PandeyPosted May 28, 2013, 2:54 AM
pass these three values from textboxes andread all on next page
and do your operation as your need.
Ravi ShekharPosted May 28, 2013, 2:21 AM
Petro TiburcioPosted May 28, 2013, 2:00 AM
txtpid.Text = Request.QueryString["id"];
and for the Name and Address, I have tried this code but nothing shows:
Ravi ShekharPosted May 28, 2013, 1:50 AM
Sunny SharmaPosted May 28, 2013, 1:50 AM