954,157 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to display the message box in asp.net

hai to all


how to display the message box in asp .net
why means while i am creating database i want to dispay a message like..


"connection is created" like this

how it is display

please give me the answer

krany18
Newbie Poster
19 posts since Nov 2008
Reputation Points: 10
Solved Threads: 0
 

Try to following code and it's insert after your connection string code.

Dim strMessage As String strMessage = "Connection is Created" 'finishes server processing, returns to client. Dim strScript As String = "" If (Not ClientScript.IsStartupScriptRegistered("clientScript")) Then ClientScript.RegisterClientScriptBlock(Me.GetType(), "clientScript", strScript) End If
sierrainfo
Junior Poster
144 posts since May 2008
Reputation Points: 10
Solved Threads: 9
 

HI,
To display a message box in asp.net you must use javascript in your html view of your form.Code is as followes.

In head teg of HTML View of your Web Form write the following code


To Call this function write the following code in ur Page_Load event code in (C#)

UrControlid.Attribute.Add("OnClick","return showMsg();");

I hope It will work.

jazz.learner
Newbie Poster
5 posts since Nov 2008
Reputation Points: 10
Solved Threads: 0
 

or u can assign string to label control and show the label control at top of ur web form.

priyankaa
Newbie Poster
4 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You