Click here to Skip to main content
16,012,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i write code for prompt message in asp.net with c# language in coding part? please give me best code..
Posted

You can try http://www.4guysfromrolla.com/welcomead/[^] this out.

In addition, A Simple ASP.NET Server Control: Message Box & Confirmation Box[^] would give you a server side message box control.

You can always look at using a simple alert message box on the Javascript side.
 
Share this answer
 
You can do it using:
MSDN: RegisterClientScriptBlock Method[^] OR
MSDN: RegisterStartupScript Method[^]

Using them, you can inject the scripts into a page from server side and based on certain condition (and specific to page.)
For samples on how to use it: How to Use RegisterClientScriptBlock & RegisterStartupScript[^]
Inject javascript from server - Sample[^]
 
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