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?
Loading
selva kumarPosted Nov 25, 2013, 2:03 AM
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"];
Sanjeeb LenkaPosted Nov 25, 2013, 12:44 AM