0

hai friends,

i cannot create the message box. the syntax i used is "MessageBox" . it gives the errror that namespace system.windows is not found. i searched with System.Windows i cannot found anything there.
so plz help

7
Contributors
9
Replies
10
Views
11 Years
Discussion Span
Last Post by plusplus
0

what messagebox? This is asp.net ... web pages.. what messagebox? message box is in windows forms projects not web pages.

Do you want to pop up a message to a user? you can use the javascript alert. Are you sure you understand the concept of asp.net? If not say so and we will try and explain it a bit

0

f1_fan is right
u can use msgbox in asp.net coz it will run on the server and not on the client side.
u can use alert fuction in the javascript, coz its client-side.

0

There is no message box in asp.net.
You can use this one.

Page pageCurr = HttpContext.Current.Handler as Page;
        if (pageCurr != null)
        {
            ScriptManager.RegisterStartupScript(pageCurr, pageCurr.GetType(), "aKey", "alert('" + "you message" + "');", true);
        }
0

use this instead of msgbox

ClientScript.RegisterStartupScript(Me.GetType(), "OhNo", "alert('Your Message');", True)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.