当前位置: 首页>>代码示例>>C#>>正文


C# UI.ImageClickEventArgs类代码示例

本文整理汇总了C#中System.Web.UI.ImageClickEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ImageClickEventArgs类的具体用法?C# ImageClickEventArgs怎么用?C# ImageClickEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ImageClickEventArgs类属于System.Web.UI命名空间,在下文中一共展示了ImageClickEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: deleteMessage_Click

        protected void deleteMessage_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                foreach (RepeaterItem item in listMessage.Controls)
                {
                    if ((item.FindControl("selectMessage") as CheckBox).Checked)
                    {
                        if (WhatList.Value.ToLower() == "new")
                        {
                            Mail.DeleteInputMessage(int.Parse((item.FindControl("message_id") as HiddenField).Value));
                        }
                        else if (WhatList.Value.ToLower() == "sent")
                        {
                            Mail.DeleteOutputMessage(int.Parse((item.FindControl("message_id") as HiddenField).Value));
                        }
                    }
                }
            }
            catch (Exception ex) {
                MessageError.Text = ex.Message;
                MessageError.Visible = true;
            }

            refreshMessage_Click(sender, e);
        }
开发者ID:juchok,项目名称:testKnowlige,代码行数:26,代码来源:mail.aspx.cs

示例2: ImageButton2_Click

 protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
 {
     if (Request.QueryString["mid"] != null)
     {
         Response.Redirect("~//topcare/admin//SubscriptionFeePayments.aspx?mid=" + Request.QueryString["mid"]);
     }
 }
开发者ID:joelzeal,项目名称:topcare-admin,代码行数:7,代码来源:MemberDetailsToolbarUserControl.ascx.cs

示例3: OKButton_Click

        protected void OKButton_Click(object sender, ImageClickEventArgs e)
        {
            if (OKClicked != null)
                OKClicked();

            Close();
        }
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:7,代码来源:PasswordConfirmDialog.ascx.cs

示例4: PDFButtonClick

        protected void PDFButtonClick(object sender, ImageClickEventArgs e)
        {
            string t = string.Empty;
            string t2 = string.Empty;
            if ((!string.IsNullOrEmpty(HiddenToField.Value)))
            {
                t = String.Format("{0:MM/dd/yyyy}", Convert.ToDateTime(HiddenToField.Value));
            }

            if ((!string.IsNullOrEmpty(HiddenFromField.Value)))
            {
                t2 = String.Format("{0:MM/dd/yyyy}", Convert.ToDateTime(HiddenFromField.Value));
            }

            //if (!string.IsNullOrEmpty(t))
            //    {
            //        t = null;
            //    }
            //    if (!string.IsNullOrEmpty(t2))
            //    {
            //        t2 = null;
            //    }

            Response.Redirect("IFrame/ExecutiveDownload.aspx?t1=" + t + "&t2=" + t2);
        }
开发者ID:haithemaraissia,项目名称:Advertise,代码行数:25,代码来源:Performance.aspx.cs

示例5: IbtnEnter_Click

 protected void IbtnEnter_Click(object sender, ImageClickEventArgs e)
 {
     B_User bll = new B_User();
     string vCode = this.Session["ValidateCode"].ToString();
     if (string.IsNullOrEmpty(vCode))
     {
         function.WriteErrMsg("<li>验证码无效,请刷新验证码重新登录</li>", "/User/Login.aspx");
     }
     if (string.Compare(this.TxtValidateCode.Text.Trim(), vCode, true) != 0)
     {
         function.WriteErrMsg("<li>验证码不正确</li>", "Login.aspx");
     }
     //根据用户名和密码验证会员身份,并取得会员信息
     string AdminName = this.TxtUserName.Text.Trim();
     string AdminPass = this.TxtPassword.Text.Trim();
     M_UserInfo info = bll.AuthenticateUser(AdminName, AdminPass);
     //如果用户Model是空对象则表明登录失败
     if (info.IsNull)
     {
         function.WriteErrMsg("<li>用户名或密码错误!</li>", "/User/Login.aspx");
     }
     else
     {
         if (SiteConfig.UserConfig.AdminCheckReg)
         {
             if (info.Status != 0)
             {
                 function.WriteErrMsg("<li>你的帐户未通过验证,请与超级管理员联系</li>", "/User/Login.aspx");
             }
         }
         bll.SetLoginState(info);
         HttpContext.Current.Response.Redirect("Default.aspx");
     }
 }
开发者ID:caisimongit,项目名称:cms-1,代码行数:34,代码来源:login.aspx.cs

示例6: imgNovo_Click

 protected void imgNovo_Click(object sender, ImageClickEventArgs e)
 {
     pnlDadosModelo.Visible = true;
     hfIdModelo.Value = string.Empty;
     LimpaCampos();
     lblMsg.Text = "Criando novo modelo...";
 }
开发者ID:rodrigocsouza,项目名称:SwapToolsFull,代码行数:7,代码来源:Modelos.aspx.cs

示例7: btnApprove_Click

        //Approve expense if expense exceeded show warning
        protected void btnApprove_Click(object sender, ImageClickEventArgs e)
        {
            ImageButton btn = (ImageButton)(sender);
            string[] arg = new string[2];
            arg = btn.CommandArgument.ToString().Split(',');
            int expenseId = Convert.ToInt32(arg[0]);
            decimal expenseTotal = Convert.ToDecimal(arg[1]);
            comBudget.CompanyBudget();

            //if (expenseTotal > comBudget.RemainingAmountAccounts)
            if (comBudget.IsBudgetExceeded(expenseTotal))
            {
                //DialogResult UserReply = MessageBox.Show("Approving this expense " + expenseTotal + " will cross the total monthly budget of the company. Do you want to approve?", "Important Question", MessageBoxButtons.YesNoCancel);

                //if (UserReply.ToString() == "Yes")
                //{
                //    expReportBuilder.AccountantActionOnExpenseReport(expenseId, emp.UserId, ReportStatus.ApprovedByAccounts.ToString());
                //}
                //else if (UserReply.ToString() == "No")
                //{
                //    expReportBuilder.AccountantActionOnExpenseReport(expenseId, emp.UserId, ReportStatus.RejectedByAccounts.ToString());
                //}

                lblBudgetWarning.Text = "Approving this expense for " + String.Format("{0:c}", expenseTotal) + " will result in the monthly company budget being exceeded, do you want to approve?";
                hdnExpenseId.Value = expenseId.ToString();
                ClientScript.RegisterStartupScript(this.GetType(), "BudgetWarningModal", "ShowBudgetWarningModal();", true);

            }
            else
            {
                expReportBuilder.AccountantActionOnExpenseReport(expenseId, emp.UserId, ReportStatus.ApprovedByAccounts.ToString());
            }

            InitializeRepeater();
        }
开发者ID:rikilingam,项目名称:32013-Assignment1,代码行数:36,代码来源:ProcessExpenses.aspx.cs

示例8: btn_deletepic_Click

        protected void btn_deletepic_Click(object sender, ImageClickEventArgs e)
        {
            string picurl = string.Empty;
                ImageButton button = (ImageButton)sender;
                GridViewRow row = (GridViewRow)button.Parent.Parent;
                picurl = row.Cells[3].Text.ToString();
                string FilePath = Server.MapPath("pic/") + picurl;
                try
                {
                    File.Delete(FilePath);
                    string commandString = String.Format("delete from  t_image where   urlname='{0}' ", picurl);
                    string result = dbkit.insertandUpdate(commandString);
                    if (result.Split('@')[0] == "true")
                    {
                        getinfo();
                        clearinfo();

                        dbkit.Show(this, "删除成功");
                        getpicinfo();
                    }
                    else
                    {

                        dbkit.Show(this, "删除失败");
                    }
                }
                catch (Exception ee)
                {
                    string aaaaaaaaa = ee.Message;
                }
        }
开发者ID:wongtseng,项目名称:RFGIS,代码行数:31,代码来源:_setapinfo.aspx.cs

示例9: btnUpdate_Click

        protected void btnUpdate_Click(object sender, ImageClickEventArgs e)
        {
            float f = 0;
            TextBox TxCosto = (TextBox)FormViewArticolo.FindControl("txCosto");
            TxCosto.Text = TxCosto.Text.Replace(".", ",");

            FormViewArticolo.UpdateItem(true);

            TextBox TxIDArticolo = (TextBox)FormViewArticolo.FindControl("txIDArticolo");
            TextBox TxImporto = (TextBox)FormViewArticolo.FindControl("txImporto");




            string sql = @"UPDATE    ListinoRighe
                        SET              Importo = @IMPORTO, DateMod = GETDATE()
                        WHERE     (IDArticolo = @IDArticoli) AND (IDListino = '1221/gen1')";
            SqlConnection cnn = new SqlConnection(SqlDataSource1.ConnectionString);
            SqlCommand cmd = new SqlCommand(sql, cnn);

            TxImporto.Text = TxImporto.Text.Replace(".", ",");
            float.TryParse(TxImporto.Text, out f);
            SqlParameter parImporto = new SqlParameter("@Importo", f);
            cmd.Parameters.Add(parImporto);
            SqlParameter parIDArticolo = new SqlParameter("@IDArticoli", TxIDArticolo.Text);
            cmd.Parameters.Add(parIDArticolo);
            cnn.Open();
            cmd.ExecuteNonQuery();
            cnn.Close();

            Response.Redirect(ViewState["PreviousPage"].ToString());
        }
开发者ID:PaoloMisson,项目名称:GATEvolution,代码行数:32,代码来源:ArticoliModifica.aspx.cs

示例10: btnDelete1_Click

        protected void btnDelete1_Click(object sender, ImageClickEventArgs e)
        {
            string strLink = "";
            try
            {
                var n_info = DB.GetTable<ESHOP_NEWS_ATT>().Where(n => n.NEWS_ATT_ID == m_att_id);

                if (n_info.ToList().Count > 0)
                {
                    if (!string.IsNullOrEmpty(n_info.ToList()[0].NEWS_ATT_FILE))
                    {
                        string imagePath = Server.MapPath(PathFiles.GetPathNews(m_news_id) + n_info.ToList()[0].NEWS_ATT_FILE);
                        n_info.ToList()[0].NEWS_ATT_FILE = "";
                        DB.SubmitChanges();

                        if (File.Exists(imagePath))
                            File.Delete(imagePath);

                        strLink = "news_attachment.aspx?type="+_type+"&att_id=" + m_att_id + "&news_id=" + m_news_id;
                    }
                }
            }
            catch (Exception ex)
            {
                clsVproErrorHandler.HandlerError(ex);
            }
            finally
            {
                if (!string.IsNullOrEmpty(strLink))
                    Response.Redirect(strLink);
            }
        }
开发者ID:htphongqn,项目名称:xinlinktube.com,代码行数:32,代码来源:news_attachment.aspx.cs

示例11: ImageButton2_Click

 //重置
 protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
 {
     this.txtUname.Text = "";
     this.txtPwd.Text = "";
     this.txtPwdagain.Text = "";
     this.txtUname.Focus();
 }
开发者ID:huaminglee,项目名称:Cooperative--Office-Automation-System,代码行数:8,代码来源:User_Add2.aspx.cs

示例12: btnOk_Click

 protected void btnOk_Click(object sender, ImageClickEventArgs e)
 {
     Model.User sessionUser = Session["User"] as Model.User;
     Model.User u = new Model.User() { UserName = sessionUser.UserName , UserPassword = txtOldPwd.Text};
     if (String.IsNullOrEmpty(u.UserName) || String.IsNullOrEmpty(u.UserPassword) || !cvPwd.IsValid)
     {
         return;
     }
     u.UserPassword = Common.SecurityHelper.Encrypt(u.UserPassword);
     if (!sessionUser.UserPassword.Equals(u.UserPassword))
     {
         Response.Write("<script>alert('密码修改失败!原密码有误')</script>");
         return;
     }
     BLL.UserBLL helper = new BLL.UserBLL();
     u.UserPassword = Common.SecurityHelper.Encrypt(txtPwd.Text);
     if (helper.Update(u))
     {
         Session.Abandon();
         Response.Write("<script>alert('密码修改成功!请重新登录~~');location.href='/Admin/login.html'</script>");
     }
     else
     {
         Response.Write("<script>alert('密码修改失败!请稍后重试')</script>");
     }
 }
开发者ID:XingsiStudio,项目名称:ArtGallery,代码行数:26,代码来源:UpdatePwd.aspx.cs

示例13: deptButton_Click

 protected void deptButton_Click(object sender, ImageClickEventArgs e)
 {
     System.Web.UI.WebControls.ImageButton imgButton = (System.Web.UI.WebControls.ImageButton)sender;
     if (imgButton != null)
     {
         if (imgButton.ID.Contains("department"))
         {
             drdDepartment.ClearSelection();
             drdDepartment_SelectionChanged(null, null);
         }
         else if (imgButton.ID.Contains("employee"))
         {
             drdEmployee.ClearSelection();
             drdEmployee_SelectionChanged(null, null);
         }
         else if (imgButton.ID.Contains("requisition"))
         {
             drdRequisitions.ClearSelection();
             drdRequisitions_SelectionChanged(null, null);
         }
         else if (imgButton.ID.Contains("items"))
         {
             drdItems.ClearSelection();
             drdItems_SelectionChanged(null, null);
         }
     }
 }
开发者ID:Soulrequiem,项目名称:final-project-whereever-whatever,代码行数:27,代码来源:Report.aspx.cs

示例14: OKButton_Click

        protected void OKButton_Click(object sender, ImageClickEventArgs e)
        {
            try
            {            
                var itemKey = ViewState["QueueItem"] as ServerEntityKey;
                var controller = new DuplicateSopEntryController();
                ProcessDuplicateAction action = ProcessDuplicateAction.OverwriteAsIs;
                if (UseExistingSopRadioButton.Checked)
                    action = ProcessDuplicateAction.OverwriteUseExisting;
                else if (UseDuplicateRadioButton.Checked)
                    action = ProcessDuplicateAction.OverwriteUseDuplicates;
                else if (DeleteDuplicateRadioButton.Checked)
                    action = ProcessDuplicateAction.Delete;
                else if (ReplaceAsIsRadioButton.Checked)
                    action = ProcessDuplicateAction.OverwriteAsIs;

                controller.Process(itemKey, action);
            }
            catch (Exception ex)
            {
                MessageBox.Message = String.Format(ErrorMessages.ActionNotAllowedAtThisTime, ex.Message);
                MessageBox.MessageType = MessageBox.MessageTypeEnum.ERROR;
                MessageBox.Show();
            }

            //((Default) Page).UpdateUI();
            Close();
        }
开发者ID:nhannd,项目名称:Xian,代码行数:28,代码来源:DuplicateSopDialog.ascx.cs

示例15: IBtn_Empty_Click

 /// <summary>
 /// 清空
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void IBtn_Empty_Click(object sender, ImageClickEventArgs e)
 {
     txt_biaoshiNo.Value = "";
     Pager_DocumentShare.CurrentPageIndex = 1;
     LoadDataBind(strWhere);
     UP_DocumentShare.Update();
 }
开发者ID:monkinone,项目名称:OrderPrinnt,代码行数:12,代码来源:BiaoShiImageManage.aspx.cs


注:本文中的System.Web.UI.ImageClickEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。