How would I add a javascript MessageBox in ASP.NET in the code behind pages using C#.
I have something like this in mind although I still cant get it quite right.
if (success == false)
{
HttpContext.Current.Response.Write("<SCRIPT LANGUAGE=""JavaScript"">alert('User name already exists')</SCRIPT>");
}
Kind regards
Below link will be helpful
http://msdn.microsoft.com/en-us/library/system.web.ui.page.registerclientscriptblock.aspx
http://dotnetslackers.com/articles/aspnet/JavaScript_with_ASP_NET_2_0_Pages_Part1.aspx