Hi, I have a very simple modal that has 2 buttons (Accept and Close).
In the Accept button, I would like to set my textbox with some value. But im not able to.
Here is my code:
default.aspx.vb
Protected Sub LookupCRDDDSTAccept()
txtCRDDDST.Text = "allo"
End Sub
default.aspx
<div class="modal fade" id="modalCRDDDST_Lookup" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" style="width:800px;margin:5px auto">
<asp:UpdatePanel ID="upModalCRDDDST_Lookup" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional">
<ContentTemplate>
<div class="modal-content" style="height:650px">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title"><asp:Label ID="Label12" runat="server" Text="CRDDDST - Lookup"></asp:Label></h4>
</div>
<div class="modal-body">
<div class="form-group">
<asp:Button ID="btnCRDDDST_Lookup_Accept" runat="server" Text="OK" CssClass="btn btn-primary" OnClick="LookupCRDDDSTAccept" style="width:100px"/>
<asp:Button ID="btnCRDDDST_Lookup_Close" runat="server" CssClass="btn btn-default" aria-hidden="true" Text="Close" OnClick="CRDDDSTLookup_Close" style="width:100px"/>
</div>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
Can someone please help me with this
Thanks
Fadi Awaragi