alert in csharp.................................................................................

Posted by Anu_dgr8 under ASP.NET on 5/26/2010 | Views : 2135 | Status : [Member] | Replies : 2
i have a checkbox and a submit button in my form..in cs file,on click of this button,i am checking if the checkbox is checked..if yes i am doin some operation...but in else,i want to 1st confirm something using alert,and then only do some operations..i dont know how to use alert in cs file..cn somebody help me out???????

Thanks and Regards,
Hoosha Boosha



Responses

Posted by: Vuyiswamb on: 5/26/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
What you need a java-script Confirm box that i answered here

http://www.dotnetfunda.com/forums/thread2028-i-have-problem-with-java-script.aspx

Thank you for posting at Dotnetfunda
[Administrator]

Anu_dgr8, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: BangaruBabu on: 5/27/2010 [Member] Starter

Up
0
Down
ImageButton lnkDelete = new ImageButton();

lnkDelete = (ImageButton)e.Row.FindControl("ImageButton2");
lnkDelete.OnClientClick = String.Format("return confirm('Are you sure to Delete the News');");


BangaruBabu Pureti
http://bangarubabupureti.spaces.live.com/

Anu_dgr8, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response