hi friends
i have a one problem that is first i fill up the form of student details after
those details will be placed in one gridview with linkbutton as studentid
what is my doubt is if i click that linkbutton on gridview those that button id information is open on popup for update purpose....
why problem is how can i open that popup by clicking on link button
please give me the code for this one please............
one hint:
---------
all the code will be placed inside the div
that code will be like this
public void lnkRenewalID_Click(object sender, System.EventArgs e)
{
//if (e.CommandName == "Text")
//{
// int id = int.Parse(e.CommandArgument.ToString());
//string tmp = "";
//tmp = "";
//Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MyScript", tmp);
LinkButton lbRenewalID = (LinkButton)sender;
Session["Renewalid"] = int.Parse(lbRenewalID.CommandArgument);
//ScriptManager.RegisterStartupScript(this.GetType(), "popupView", "switchPopupView('divSimplePopup');", true);
//divSimplePopup.Show();
//int i = int.Parse(Session["Renewalid"].ToString());
DataSet ds = new AddRenewalBF().SelectRenewalDtlForUpdate(int.Parse(Session["Renewalid"].ToString()));
RbtnRenewalOptionId.SelectedValue = ds.Tables[0].Rows[0]["RenewalOptionId"].ToString();
txtValidFrom.Text = ds.Tables[0].Rows[0]["ValidFrom"].ToString();
txtValidTo.Text = ds.Tables[0].Rows[0]["ValidTo"].ToString();
txtPaidAmount.Text = ds.Tables[0].Rows[0]["PaidAmount"].ToString();
txtPaidDate.Text = ds.Tables[0].Rows[0]["PaidDate"].ToString();
}
Loading

Om prakash SinghPosted Jul 7, 2011, 8:26 AM
Dorababu MekaPosted Jul 7, 2011, 8:12 AM
http://www.c-sharpcorner.com/UploadFile/diya0076/8190/
http://www.aspsnippets.com/Articles/Add-Edit-Update-Records-in-GridView-using-Modal-Popup-in-ASP.Net.aspx