예제 #1
0
 protected void btnClear_Click(object sender, EventArgs e)
 {
     txtChildName.Text    = "";
     txtDateOfBirth.Text  = "";
     txtClass.Text        = "";
     txtStory.Text        = "";
     txtYearOfEnroll.Text = "";
     //BrowseImage1.DefaultImageUrl = "~/Photos/NoImage.jpg";
     BrowseImage1.LoadDefaultImage();
 }
예제 #2
0
 protected void btnClear_Click(object sender, EventArgs e)
 {
     txtMemberName.Text          = "";
     txtAddress.Text             = "";
     txtMobileNo.Text            = "";
     txtPassword.Text            = "";
     txtUserName.Text            = "";
     txtEmailId.Text             = "";
     ddlMemberType.SelectedIndex = 0;
     BrowseImage1.LoadDefaultImage();
 }
예제 #3
0
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     try
     {
         clsGallery objGellery = new clsGallery();
         objGellery.ProgramCode = Session["ProgCode"].ToString();
         objGellery.Photo       = (byte[])Session["Photo"];
         objGellery.FileName    = Session["FileName"].ToString();
         int i = objGellery.UploadProgramGallery();
         if (i > 0)
         {
             lblMsg.Visible = true;
             lblMsg.Text    = "Gallery Uploaded";
             BrowseImage1.LoadDefaultImage();
         }
     }
     catch (Exception ex)
     {
         lblMsg.Visible = true;
         lblMsg.Text    = ex.Message;
     }
 }