hi,
i am still not convinced with the message box in ASP.NET. What exactly i want is, my ASP.net page should redirect me to some other page when i click the OK buton in the message box. But the question is how to display the message box in ASP.Net using javascript.

For example when we click the logout button in this page it displays a message showing "Are you sure you want to logout". When we click ok it redirects us to some other page. I want to do this same stuff in ASP.net

Thats just javascript. If you have a button on your asp.net page, you can set the onclick event in the page load event:

Me.BtnLogout.Attributes.Add("onclick", _
                   "return confirm('Are you sure you want to logout?');")
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.