I am invoking a modal formview popup for edit and insert on a gridview selection. When the edit
button is first clicked, the popup shows up and on subsequent click it gives errors like
Microsoft JScript Error:Sys.InvalidOperationException:Two Components with the same id.
ctl100_ContentPlaceHolder1_ucopsphone11_mdlPopupPhone cannot be added to the application.
The ucopsphone11 is a grid user control within which I placed a modal formview.
1. How to make the modal popup work properly.
2. The update/cancel/command should be inside the popup formview or outside of the modal popup.
3. In the modalPopup usercontrol page_load event I was trying to set default mode. But it fires only once because
of (Not PostBack) during the page load. But when modalPopup is shown it is not fired.
I want to the use same modalPopup for edits/insert.
I have been struggling with this for more than a day.
I would appreciate if someone help me move forward with this.
Grid View Page
protected void GridViewAppPhone_SelectedIndexChanged(object sender,
GridViewRow row = GridViewAppPhone.SelectedRow;
int index = GridViewAppPhone.SelectedIndex; strkey1 = GridViewAppPhone.DataKeys[rows.RowIndex["id"].ToString()
Session["papp_id"] = strkey
View Complete Post