C # Return page

Source: Internet
Author: User

Protected void page_load (Object sender, eventargs E)
{
Page. Title = dataclass. getapplication ("webname") + "-" + "system information ";
String Strid = request. querystring ["ID"];
If (! Ispostback)
{
Switch (Strid)
{
Case "1 ":
Lbl_prompt.text + = "successfully registered ";
Hlk_link.text = "back to homepage ";
Hlk_link.navigateurl = "index. aspx ";
Break;

Case "2 ":
Lbl_prompt.text + = "the user name already exists. Please reset it ";
Break;

Case "3 ":
Lbl_prompt.text + = "email already exists. Set it again ";
Break;

Case "4 ":
Lbl_prompt.text + = "the user name or password is incorrect. Please log on again ";
Hlk_link.text = "back to login page ";
Hlk_link.navigateurl = "login. aspx ";
Response. write ("<script language = 'javascript '> setTimeout (\" {location. href = 'login. aspx '} \ ", 5000); </SCRIPT> ");
Break;

Case "5 ":
Lbl_prompt.text + = "Logon successful ";
Hlk_link.text = "back to homepage ";
Hlk_link.navigateurl = "index. aspx ";
Response. write ("<script language = 'javascript '> setTimeout (\" {location. href = 'index. aspx '} \ ", 5000); </SCRIPT> ");
Break;

Case "6 ":
Lbl_prompt.text + = "you have exited safely ";
Hlk_link.text = "back to homepage ";
Hlk_link.navigateurl = "index. aspx ";
Response. write ("<script language = 'javascript '> setTimeout (\" {location. href = 'index. aspx '} \ ", 5000); </SCRIPT> ");
Break;

Case "7 ":
Lbl_prompt.text + = "you have successfully published information ";
Hlk_link.text = "back to homepage ";
Hlk_link.navigateurl = "index. aspx ";
Response. write ("<script language = 'javascript '> setTimeout (\" {location. href = 'index. aspx '} \ ", 5000); </SCRIPT> ");
Break;
Case "8 ":
Lbl_prompt.text + = "modification successful ";
Break;

Case "9 ":
Lbl_prompt.text + = "You have not logged on, please log on and use ";
Hlk_link.text = "back to login page ";
Hlk_link.navigateurl = "login. aspx ";
Response. write ("<script language = 'javascript '> setTimeout (\" {location. href = 'login. aspx '} \ ", 5000); </SCRIPT> ");
Break;

Case "10 ":
Lbl_prompt.text + = "modification successful ";
Hlk_link.text = "back to user center ";
Hlk_link.navigateurl = "usercenter. aspx ";
Response. write ("<script language = 'javascript '> setTimeout (\" {location. href = 'usercenter. aspx '} \ ", 5000); </SCRIPT> ");
Break;
Case "11 ":
Lbl_prompt.text + = "the user name or password is incorrect. Please log on again ";
Hlk_link.text = "back to login page ";
Hlk_link.navigateurl = "login. aspx ";
Response. write ("<script language = 'javascript '> setTimeout (\" {location. href = 'login. aspx '} \ ", 5000); </SCRIPT> ");
Break;

Default:
Break;

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.