Pop Up dialog box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Manny Chohan

    Pop Up dialog box

    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
  • Scott Mitchell [MVP]

    #2
    Re: Pop Up dialog box

    Manny Chohan wrote:[color=blue]
    > 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.[/color]

    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
    Build web apps and services that run on Windows, Linux, and macOS using C#, HTML, CSS, and JavaScript. Get started for free on Windows, Linux, or macOS.


    Cheers!

    --

    Scott Mitchell
    mitchell@4guysf romrolla.com
    eSports News, Results, upcoming Matches & live Matches. Learn tricks and guides in the esports space. ✅ We cover CS:GO, Dota 2, LOL, Overwatch & PUBG. 


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

    Comment

    Working...