Show messagebox

C

CMA

therenis no way to give a message box in asp.net like stand alone
applications. the problem is the page creating in the server, excecute at
the client. we need to send the message in to client anyway.
so u have to use javascript...

when u need to run the client side code...
as an example, i need to give a simple message "Hello" to the user when
loading the page...
what i need to do is...

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
string strMessage = "<script
language=javascript>alert('Hello');</script>"
Response.Write(strMessage);
}

i think you can now arrange your code as you need....

CMA
 

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

Members online

No members online now.

Forum statistics

Threads
474,091
Messages
2,570,604
Members
47,223
Latest member
smithjens316

Latest Threads

Top