dpiteleconnect
asked on
How to pass data on a form using ModalPopupExtender with ASP.NET server code
I am trying to use a ModalPopupExtender to pop a form and edit a selected row in a grid view. Everything is in the same page but my information is not getting passed to the pop up. How can I pass this data to the form and what is the best event I can use to populate this form. I am not using java script and I wonder if this can be done with pure ASP.NET server code.
ASKER
I have tried that one and this one too, but still, it does not work. For some reason the text values do not show up when the pop up appears.
When I debug the text porperty gets the value assigned but is gone when the form shows up.
When I debug the text porperty gets the value assigned but is gone when the form shows up.
protected void gvUSOC_Patterns_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Select")
{
string id = gvUSOC_Patterns.DataKeys[0].Value.ToString();
txtUSOC_Pattern_Id.Text = id;
...
ModalPopupExtenderUSOC_Pattern.Show();
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes , I over look the update panel and that was the solution. That is how I can render the new results. Cool , thanks tetorvik, you rock!!!
See the full implementation from http://www.codeproject.com/KB/aspnet/GridView-ModalPopupExtend.aspx (needs registration to download source code)
Open in new window