Avatar of mutlyp
mutlyp

asked on 

Conditional Dialog Box asp 2.0

I need a simple solution for a Conditional Dialog Box.
Here's what I need:
User clicks a button to add a comment. The app connects to the databases and checks to see if the user has already added a comment. If the user has already entered a comment, I need to have a modal dialog box popup telling the user that they can not enter another comment. The user would click on the OK button on the dialog box and it would close and go back to the original page.
How can I create that modal dialog box?
This is for asp 2.0 and please write in vb code.
Thanks
.NET ProgrammingASP.NETVisual Basic.NET

Avatar of undefined
Last Comment
Jorge Paulino
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

You can create a javascript Alert()
Avatar of mutlyp
mutlyp

ASKER

How would I call that alert from the code behind?
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

From the code behing you can use a msgbox

MsgBox("You message", MsgBoxStyle.Critical)
ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo