HI all!
I searched now a little bit in the Forum but I did not find a answer to my problem. Perhaps anyone can help me..
I have a GridView on a page with a template colum in which I have button ... this button calls a modalpopup in which the user can enter a text and then hit ok.
After the ok button is pressed I will do a SQL-Command... but this is future.
Momantary situation is, that i can create the popup and after a click on the OK button it dissapears but I am not be able to get the Information from the text box, because no postback is done and also the the prcedure "SaveData" defindes in the ONCLICK will not be reached.
Did anyone know why??
Greetings
Sascha
Here is some Code from my Side:
TemplateColum in Grid (Works... shows the modal popup):
<asp:TemplateField HeaderText="RÜCK" ShowHeader="False">
<ItemTemplate>
<asp:ImageButton ID="ImgBtnSend" runat="server" CausesValidation="false"
ImageUrl="~/Images/S_T_MAIL.gif" Text="RÜCK" />
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
BackgroundCssClass="ModalBG" OkControlID="imgModPanOK"
PopupControlID="ModPanel" TargetControlID="ImgBtnSend">
</cc1:ModalPopupExtender>
<br />
</ItemTemplate>
Panel which will be displayed as Popup (Works)...
<asp:Panel ID="ModPanel" runat="server" Height="89px" Width="431px"
BackColor="White" BorderStyle="Groove">
<span class="style33">Vorgang an Markt zurückschicken</span><br />
<br />
<asp:Label ID="Label3" runat="server"
Text="Bitte geben Sie einen Rücksedegrund ein!" style="font-size: small"></asp:Label>
<br />
<asp:TextBox ID="txtRSGrund" runat="server"
style="font-family: Verdana; font-size: xx-small" Width="342px"></asp:TextBox>
<asp:Button ID="imgModPanOK" runat="server" Font-Names="verdana"
Font-Size="XX-Small" Text="OK" OnClick="SaveData" />
</asp:Panel>
SaveData defindes in the OnClick of the Button:
Protected Sub SaveData(ByVal sender As Object, ByVal e As EventArgs)
Dim s As String = HttpUtility.HtmlEncode(txtRSGrund.Text)
'...to be continiued
End Sub