Pop Up dialog box

G

Guest

Hi guys, I am using VB .NET. I have a function in codebehind which validates
the user credentials against stored data in database. How can i cause the
script to pop up dialog box when login fails. I know we can set the label
text and visibility to true. However is it possible to cause dialog box to
appear in case if it fails.

thanks

manny
 
S

Scott Mitchell [MVP]

Manny said:
Hi guys, I am using VB .NET. I have a function in codebehind which validates
the user credentials against stored data in database. How can i cause the
script to pop up dialog box when login fails. I know we can set the label
text and visibility to true. However is it possible to cause dialog box to
appear in case if it fails.

Sure, it's possible. Just have your code-behind class squirt out the
necessary JavaScript (basically, an alert(msg);). I discuss how to
provide such functionality - along with how to accomplish a bevy of
other common client-side tasks - at the following article:

Working with Client-Side Script
http://tinyurl.com/3w474

Cheers!

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top