Hi i am linked the child aspx page with parent aspx page. when i click the button in parent aspx page the child aspx page opening. and when i click the OK button in the child aspx page, it has been closed no problem and now i want to pass the string value from the child aspx page (code behind) to parent aspx page textbox
How is possible?
How to pass string value of child aspx to the parent aspx
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sanjeeb LenkaRank #301 · 8.3K reputationPosted Nov 24, 2013, 7:44 PM EST
selva kumarRank #2,987 · 483 reputationPosted Nov 24, 2013, 9:03 PM EST
refer below code it may helpful to u..
in .cs add this event:
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "passdata")
{
Response.Redirect("~/studprof.aspx?T_ID=" + e.CommandArgument.ToString());
}
}
now you can able to get the id in new form. just get that id and pass that id to database to get the info of particular id.
to get the id in next page:
string id = Request.QueryString["T_ID"];