Ejemplo n.º 1
0
 protected void rdlGender_SelectedIndexChanged1(object sender, EventArgs e)
 {
     if (((RadioButtonList)FormViewCV.FindControl("rdlGender")).SelectedValue == "Male")
     {
         ((TextBox)FormViewCV.FindControl("genderTextBox")).Text = "Male";
     }
     else if (((RadioButtonList)FormViewCV.FindControl("rdlGender")).SelectedValue == "Female")
     {
         ((TextBox)FormViewCV.FindControl("genderTextBox")).Text = "Female";
     }
 }
Ejemplo n.º 2
0
    protected void FormViewCV_ItemCommand(object sender, FormViewCommandEventArgs e)
    {
        if (e.CommandName == "upload")
        {
            if (((FileUpload)(FormViewCV.FindControl("FileUploadCV"))).HasFile)
            {
                string fname = ((FileUpload)FormViewCV.FindControl("FileUploadCV")).FileName;
                ((FileUpload)FormViewCV.FindControl("FileUploadCV")).SaveAs(Server.MapPath("~/App_Themes/Theme1/") + fname);
                ((Image)FormViewCV.FindControl("Image4")).ImageUrl = "~/App_Themes/Theme1/" + fname;


                byte[] photo = ((FileUpload)(FormViewCV.FindControl("FileUploadCV"))).FileBytes;
                Session["photo"] = photo;
                //File.Delete("~/App_Themes/Theme1/" + fname);
            }
        }
    }
Ejemplo n.º 3
0
 protected void FormViewCV_ItemUpdating(object sender, FormViewUpdateEventArgs e)
 {
     Session["Date"] = DateTime.Parse(((TextBox)FormViewCV.FindControl("dobTextBox")).Text);
 }