Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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.

Thanks & Regards,

zy_abc

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...