Hi,
In my code I am wanting to assign the value of the ModalPopupExtender TargetControlID to a link button which is not in the same updatePanel.
What I have is a Case statement in my backend, and when the value is selected in the GridView using a LinkButton I set a session variable using the datakey, like:
Session("Session1") = GridView1.DataKeys(CInt(e.CommandArgument)).Value
What I want to do though is use that LinkButton to open up a ModalPopup box and then use the Variable in there, but I am getting the error:
The TargetControlID of 'ModalPopupExtender2' is not valid. A control with ID 'LinkButton2' could not be found.
Is there anyway I can get around this? I think it is because the Link button is not in the same update panel.
Thanks