C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to display a Message Box in C#


Posted Date: 05 May 2008    Resource Type: Code Snippets    Category: ASP.NET WebForms
Author: Jaya KumarMember Level: Gold    
Rating: Points: 10



public void MessageBox(System.Web.UI.Page page, string Msg)
{
string MsgScript = "<script language='javascript'>alert('" + Msg + "')</script>";
if (!(page.IsStartupScriptRegistered("MessageScript")))
page.RegisterStartupScript("MessageScript", MsgScript);
}


MessageBox(this, "Rescord(s) Added Successfuly !");




Responses

Author: akku    08 May 2008Member Level: Silver   Points : 2
i was just thinking abt this one,,, thank u....


Author: Binu Kumar    09 May 2008Member Level: Silver   Points : 2
So Nice

I was also looking for this

thanks


Author: santhoshkumar    09 May 2008Member Level: Gold   Points : 2
Good. Thank you



Author: Jagadevi basawaraj    22 May 2008Member Level: Silver   Points : 2
Hello
Can we use above code in ASP.NET
I am trying to use But its not working
help me


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How do you create a permanent cookie?
Previous Resource: Creating and Executing Batch Files Progrmatically using C#
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET WebForms


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use