Problems encountered during data modification,

Source: Internet
Author: User
Problems encountered when modifying member information today:
Code As follows:
If (session ["userid"]! = NULL)
{
If (! Page. ispostback) // note that you must add this statement here. Otherwise, the statement cannot be modified successfully and the original data is always
{
Qiyevao qvo = (qiyevao) session ["userid"];
Qiyevao qvo1 = qdao. loaduser ("yzwdli", qvo. ID );
Fax. Text = qvo1.fax;
Email. Text = qvo1.email;
Password. Text = qvo1.password;
Name. Text = qvo1.qiyename;
QQ. Text = qvo1.qq;
Tel. Text = qvo1.qiyetel;
Username. Text = qvo1.userid;

Dropdownlist1.items. Add (New listitem ("male", "male "));
Dropdownlist1.items. Add (New listitem ("female", "female "));
For (INT I = 0; I <dropdownlist1.items. Count; I ++)
{
If (dropdownlist1.items [I]. value = qvo1.sex. Trim ())
{
Dropdownlist1.items [I]. Selected = true;
Break;
}
}

}


}
Else
{
Page. response. Redirect (".../userload. aspx ");
}

Concept
If (! This. ispostback) indicates the first load.

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.