コード例 #1
0
ファイル: updateprofile.aspx.cs プロジェクト: test2251/kanha
    protected void Page_Load(object sender, EventArgs e)
    {
        success.Visible  = false;
        nsuccess.Visible = false;

        fname.Focus();
        if (Page.IsPostBack == false)
        {
            clsregister obj             = new clsregister();
            List <clsregistrationprp> k = obj.find_rec_parent(Convert.ToInt32(Session["cod"]));
            if (k.Count > 0)
            {
                ViewState["regid"] = k[0].regid;
                fname.Text         = k[0].f_name;
                email.Text         = k[0].email;
                contact.Text       = k[0].contact;
                address.Text       = k[0].address;
                password.Text      = k[0].password;
                lastupd.Text       = k[0].lastupd;
            }
        }
    }