I am trying to show a modalpopup window after I do an insert to a database. What they want is a screen to popup with all the problems they just submitted to the db. the modalpopupexender keeps asking me for a targetcontrolId but I don't need one. How do I get around this. since the submit button they use to see modalpopup is part of a different panel.
Here is point where I insert to my DB. insertUpdateDelete(sql) Next then here is next code FillProblemGrid() 'Go get the problems via a private sub below txtFind.Text = String.Empty ddlSrpEvent.SelectedValue = SrpID pnlSRP.Visible = False pnlProblems_ModalPopupExtender.Show() 'popup the modal window that allows them to see problems Private Sub FillProblemGrid() Dim UnitId As String = lblHidSrpId.Text Dim PersId As String = lblHidSoldierId.Text sql = "Select q.strtask, Case WHEN ed.bitAnswer = 1 THEN 'NOGO' Else 'GO' end bitAnswer from tblSRPQuestion as q INNER JOIN tblSRPEventData as ed on ed.intQuestionId = q.intQuestionId Where bitAnswer = 1 " _ & "and intUnitSrpId = " & UnitId & " intPersonnelId = " & PersId myGridProblems.DataSource = getData(sql) myGridProblems.DataBind()
kldeutschthe modalpopupexender keeps asking me for a targetcontrolId but I don't need one. How do I get around this.
You could set the TargetControlID to a dummy button with style="display:none" or a hiddenfield.
I have tried setting it to a hidden linkbutton, but it gives me an error, i will try an html button and see what happens, but it seems it does not like it when i Hide the target control