hello,

plz tell me how to show some value in message box in asp.net using c# on the same page.

>msg box in asp.net using c#

First of all, read forum rules. If your question is belongs to asp.net(vb.net or c#) forum then post it in asp.net forum.

JavaScript method alert() is used to show message box.

yes.. those are two different languages....
In C# if you want to show something use
MessageBox.show( "Message..you want to display" );
In asp.net
you can use Client side script..actually a JavaScript
alert ( "Messag..You want to display " );

I am adding a code previously used

string Eklendi;
            Eklendi = "<script>" + "alert('hello!!!' )" + "</script>";
            Page.RegisterStartupScript("Javascript", Eklendi.ToString());
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.