Gertie Posted May 9, 2003 Posted May 9, 2003 I'm with my hands in my hair! I'm trying to make a messagebox that changes!! A normal message is no problem: just making a button and adding btnButton.attributes.add("onclick","return confirm('....');") But i want to do this depending on the value i test in a textbox!! So i have a textbox with a value in it. when it's empty when pressed on the btnButton then i want a message "Please fill in something", and when it's not a value from in my database (that i can test already easily) then it says "not in database" and else it says "found ...., do you want to....?" Can someone help me? Greetz Quote
zy_abc Posted May 14, 2003 Posted May 14, 2003 Is asp textbox or html textbox? Quote Thanks & Regards, zy_abc
zy_abc Posted May 20, 2003 Posted May 20, 2003 In the onClick of the ASP Button you can call a Sub in VBSCript runat=server. In the sub using Request.Form("textbox"), you can do validation and display the alert in JavaScript with the help of Response.Write or RegisterClientScriptBlock Hope this helps to solve the problem. Quote Thanks & Regards, zy_abc
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.