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

Sunny SharmaRank #223 · 11.1K reputationPosted May 27, 2013, 9:50 PM EDT
Ravi ShekharRank #673 · 3.6K reputationPosted May 27, 2013, 9:50 PM EDT
Petro Tiburcio14 reputationPosted May 27, 2013, 10:00 PM EDT
txtpid.Text = Request.QueryString["id"];
and for the Name and Address, I have tried this code but nothing shows:
Ravi ShekharRank #673 · 3.6K reputationPosted May 27, 2013, 10:21 PM EDT
Pankaj PandeyRank #642 · 3.7K reputationPosted May 27, 2013, 10:54 PM EDT
pass these three values from textboxes andread all on next page
and do your operation as your need.