HI,

I want to Display Confirm box after certain condition using c# code.
is there any tool avaolable for that. and also,

while using Javascript alert the page getting blank.

if (!Page.IsClientScriptBlockRegistered("mytest"))
            Page.RegisterClientScriptBlock("myrest", "<script> window.alert('Hello')</script>");

for server side you can use

msgbox ("hello")

Its recommened that you use alert messages on clientside than on server side

for client side : confirmation message

btnDelete.Attributes.Add("onclick", "return confirm('Are your sure?');")

normal messages

btnDelete.Attributes.Add("onclick", "alert('hello world');")

pls. check converter to convert the above code to c#

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.