Hi all
How can i test a text box to see if its not empty before poping up a Modal Popup Extender?
i.e. I dont want the Modal popup to display unless there is some text in the text box
The form has a button to bring up the modalpopup, the aspx is below
<
asp:Button ID="add_picture_btn" runat="server" Text="Add Picture" onclick="add_picture_btn_Click" />
<
cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="add_picture_btn" PopupControlID="Panel1" BackgroundCssClass="modal_BG" OkControlID="Ok_btn" CancelControlID="Cancel_btn" ></cc1:ModalPopupExtender>
I would also like to display an alert box telling the user to enter something in the textbox first before clicking the button
any code examples would be appreciated
Regards
Tino
Never argue with an idiot strangers cant tell the difference....