• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# UI.ImageClickEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: ImageButton1_Click

 protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
 {
     this.PlaceHolder1.Visible = true;
     this.PlaceHolder2.Visible = false;
     this.PlaceHolder3.Visible = false;
     Label1.Text = "Tìm Kiếm Sinh Viên";
 }
开发者ID:nlavu,项目名称:web-doanhoi-mhx-2k11,代码行数:7,代码来源:TimKiem.aspx.cs


示例17: ibtnPublish_Click

        void ibtnPublish_Click(object sender, ImageClickEventArgs e)
        {
            for (int i = 0; i < gvNews.Rows.Count; i++)
            {
                CheckBox chkItem = (CheckBox)gvNews.Rows[i].FindControl("chkItemUnique");
                if (null == chkItem)
                    continue;
                if (!chkItem.Checked)
                    continue;
                HtmlInputHidden hdnID = (HtmlInputHidden)gvNews.Rows[i].FindControl("hdnID");
                if (null == hdnID)
                    return;
                int _id = Convert.ToInt32(hdnID.Value);

                NewsItem _news = NewsItemManager.GetByID(_id);
                if (_news == null)
                    continue;

                _news.PublishFrom = new DateTime(1993, 1, 1).ToString("dd/MM/yyyy");
                _news.PublishTo = new DateTime(1992, 1, 1).ToString("dd/MM/yyyy");

                NewsItemManager.Update(_news);
            }
            BindGrid(10);
            AddMode();

            plcControls.Visible = false;
            upnlGrid.Update();
            upnlControls.Update();
        }
开发者ID:yalhami,项目名称:eXpresso,代码行数:30,代码来源:NewsAdmin_UC.ascx.cs


示例18: clearButton_Click

        protected void clearButton_Click(object sender, ImageClickEventArgs e)
        {
            fillUpnTable();
            fillProducts();

            Upn.Text = "";
            Upn2.Text = "";
            Product.Text = "";

            clearOperationTable1();
            clearOperationTable();

            clearProcesses();
            clearProcesses1();

            clearRecipeUpn1();
            clearRecipeUpn();

            RecipeUpn1.Enabled = false;
            upnEnable.Items[0].Enabled = false;
            upnEnable.Items[0].Selected = false;

            multisessionEnable.Items[0].Enabled = false;
            multisessionEnable.Items[0].Selected = false;

            FirstDIV.Visible = true;
            SecondDIV.Visible = false;

            HttpContext.Current.Session["operation"] = "no_op";
            HttpContext.Current.Session["IdUpn"] = null;
        }
开发者ID:dcanessa,项目名称:Proyecto-Boston,代码行数:31,代码来源:UpnManager.aspx.cs


示例19: Submit_Click

 protected void Submit_Click(object sender, ImageClickEventArgs e)
 {
     if (string.IsNullOrEmpty(UserName.Value) || string.IsNullOrEmpty(Password.Value) || string.IsNullOrEmpty(Code.Value))
         ClientScript.RegisterStartupScript(GetType(), "OnSubmit", "<script>alert('输入不能为空')</script>");
     else
     {
         if (Code.Value.ToLower() == Session["checkCode"].ToString())
         {
             List<UserModel>  list = bll.UserLogin(UserName.Value, Password.Value);                    
             if (list.Count == 0)
             {
                 ClientScript.RegisterStartupScript(GetType(), "OnSubmit", "<script>alert('用户名或密码错误')</script>");
             }
             else
             {
                 Session["User"] = list[0];
                 if (list[0].UserType == 1)
                     Response.Redirect("Admin/Default.aspx");
                 else
                     Response.Redirect("MyHouse/Default.aspx");
             }
         }
         else
             ClientScript.RegisterStartupScript(GetType(), "OnSubmit", "<script>alert('验证码错误')</script>");
     }
 }
开发者ID:wakaoyun,项目名称:dengqibin,代码行数:26,代码来源:Login.aspx.cs


示例20: searchDistanceImageButton_Click

        //protected void distanceGridView_RowDataBound(object sender, GridViewRowEventArgs e)
        //{
        //    e.Row.Cells[0].Visible = false;
        //    e.Row.Cells[1].Visible = false;
        //    e.Row.Cells[2].Visible = false;
        //    TableCell imageCell = new TableCell();
        //    TableCell nameCell = new TableCell();
        //    e.Row.Cells.Add(imageCell);
        //    e.Row.Cells.Add(nameCell);
        //    if (e.Row.RowType == DataControlRowType.Header)
        //    {
        //        e.Row.Cells[4].Text = "Name";
        //        e.Row.Cells[5].Text = "Bild";
        //    }
        //    if (e.Row.RowType == DataControlRowType.DataRow)
        //    {
        //        Mitglied mitglied = Datareader.getMitgliedByID(Int64.Parse(e.Row.Cells[2].Text));
        //        e.Row.Cells[4].Text = mitglied.mitgliedVorname + System.Environment.NewLine + mitglied.mitgliedNachname;
        //        ImageButton goProfileButton = new ImageButton();
        //        goProfileButton.Enabled = true;
        //        goProfileButton.ID = mitglied.mitgliedID.ToString();
        //        goProfileButton.Visible = true;
        //        //goProfileButton.ImageUrl = "Images/Template_redaccent/ButtonZumProfilNormal.png";
        //        goProfileButton.ImageUrl = "images.aspx?ImageID=" + mitglied.mitgliedID.ToString();
        //        goProfileButton.Width = 35;
        //        goProfileButton.Height = 50;
        //        goProfileButton.Click += new ImageClickEventHandler(directToProfileNew);
        //        e.Row.Cells[5].Controls.Add(goProfileButton);
        //    }
        //}
        //private void directToProfileNew(object sender, EventArgs e)
        //{
        //    //Session["profileUser"]
        //    ImageButton pushdBtn = (ImageButton)sender;
        //    Session["profileUser"] = pushdBtn.ID.ToString();
        //    Response.Redirect("profile.aspx");
        //    throw new NotImplementedException();
        //}
        protected void searchDistanceImageButton_Click(object sender, ImageClickEventArgs e)
        {
            Session["distanceSearch"] = double.Parse(distanceSearchTextBox.Text);
            Response.Redirect("advancedsearchresults.aspx");

            //Int64 currentUser = Int64.Parse(Session["currentUser"].ToString());
            //double distance = double.Parse(distanceSearchTextBox.Text);
            //List<DistancedMember> result = AdvancedSearcher.doDistanceSearch(distance, currentUser);
            //Nullable<double>[,] array1 = new Nullable<double>[result.Count, 2];
            ////Nullable<double>[] distanceArray = new Nullable<double>[result.Count];
            //int ctr = 0;
            //foreach(DistancedMember currentResult in result)
            //{
            //    //distanceArray[ctr] = currentResult.distance;
            //    array1[ctr, 0] = currentResult.mitgliedData.mitgliedID;
            //    array1[ctr, 1] = currentResult.distance;
            //    ctr++;
            //}
            ////distanceGridView.DataSource = distanceArray;
            ////distanceGridView.DataBind();

            //System.Collections.ArrayList arrList = new System.Collections.ArrayList();
            //for (int i = 0; i < result.Count; i++)
            //{
            //    arrList.Add(new ListItem(array1[i, 0].ToString(), array1[i, 1].ToString()));
            //}
            //distanceGridView.DataSource = arrList;
            //distanceGridView.DataBind();
        }
开发者ID:BennyFischer,项目名称:nomofv2,代码行数:67,代码来源:AdvancedSearch.aspx.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# UI.LiteralControl类代码示例发布时间:2022-05-26
下一篇:
C# UI.HtmlTextWriter类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap