Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

msgbox

Status
Not open for further replies.

INFORMAT

Programmer
Jan 3, 2001
121
BE
Hello!

I would like to know how I can show a msgbox at clientside using asp.net

if anyone has an idea?

 
Javascript. Only way.

if you're talking about some sort of error message, there are asp.net validator controls that you can use, and one of them (the Summary Validator) can be displayed as a messagebox.

But other than that, there's no way the server side code can trigger something on the client.

Jack
 
Hmm look up custom server controls and you will see the error of your ways

nuff said
 
?

Server side controls just write javascript back to the client for any client side events.

nuff said

;)

Jack
 
if you have the options set right is it not possible to just use msgbox("stuff")??
 
Depends what options you mean. On the validator?

Showing a msgbox is a client side event. There is no way WebServer A over in New York can trigger a message box on Client Machine B in San Diego or wherever. The only way is with javacript or vbscript, which will display the msgbox upon some event or action happening.

ie: the asp.net validator controls. When the page is rendered, all those controls do is write javascript to the page.

Jack

 
nvrmind I was slightly confused. Got it now thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top