0

I am use asp.net with C#.net...
my question is how to get message box at server side...

example is ..> we think there is the asp textbox in the asp page.if this textbox is empty message box [conform box] must appear with the message called "Are u really want to submit data without textbox null ??"...

How I solve this problem...Please help me... Thank you...

4
Contributors
8
Replies
9
Views
7 Years
Discussion Span
Last Post by iamchamith
0

btn.attributes.add("onClick",yourJavaScriptFunctionCallHere())

google around you'll get the idea...!

0

No dnanetwork ... That is not answer..it is client side message box...when i click button already show message box,if textbox null or not...
I want to show message box if only textbox is null,when button click event..otherwise
not need to show message box
thank u dnanetwork to help me

0

dude...you can control the messagebox through javascript...

script code will check..

if there is no error ( Textbox not empty) then return true and dont show the message box else show the message box and return false;

-1

use the RequireFieldValidator and validtionSummary contorl.
set the ShowMessageBox = "true"...I believe it will work for you..

No dnanetwork ... That is not answer..it is client side message box...when i click button already show message box,if textbox null or not...
I want to show message box if only textbox is null,when button click event..otherwise
not need to show message box
thank u dnanetwork to help me

Votes + Comments
Nope. Please read OP.
1
if (2 > 1) // Your Conditions
        {
            Response.Write("<script type=\"text/javascript\" language=\"javascript\">alert('Errrrr');</script>");

            /// OR
            ClientScript.RegisterStartupScript(GetType(), this.ClientID, "alert('Errorrrrrrrr');",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.