Output with a Yes/no dialog box, the effect is: Click Yes, continue to add content, click No, return to their own definition of the page
<summary>
dialog box with ' OK '/' Cancel ' button
</summary>
<param name= The text information of the "StrText" > Dialog box </param>
<param name= "strURL" > redirected address </param>
public static void Messageboxyesno (String strText, String strurl)
{
HttpContext.Current.Response.Write ("<script language= ' JavaScript ' >var value;");
HttpContext.Current.Response.Write ("value=window.confirm (' + StrText + ');");
HttpContext.Current.Response.Write ("if (value==true) {window.location= '" + strURL + "';} </script> ");
HttpContext.Current.Response.Write ("</script>");
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.