Click here to Skip to main content
15,908,264 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how can use massagebox into asp.net width ie7 that don't have error
please help me
Posted

use
C#
Response.Write("<script>alert('Hello');</script>");
 
Share this answer
 
XML
<html>
<head>
<script type="text/javascript">
function show_alert()
{
alert("Project has been add");
}
</script>
</head>
<body>

<input type="button" onclick="show_alert()" value="Save" />

</body>
</html>
 
Share this answer
 
What u want to display in message box?
I u want to display a simple text message u can use javascript alert box.

C#
Page.RegisterStartupScript("page", "<script language='javascript'>alert('Your Text');</script>");
 
Share this answer
 
All of them gave good example...or try another way to use Messagebox using third party Dll like a messagebox.dll download from internet.

Use this code in code behind...

Msgbox.MessageBox.Show("Your massage");


Happy coding
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900