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

C# ImageClickEventArgs类代码示例

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

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



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

示例1: Save_Click

    /// <summary>
    /// 添加
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Save_Click(object sender, ImageClickEventArgs e)
    {
        int num = 0;

        if (Request.QueryString["id"] != "" && Request.QueryString["id"] != null)
        {
            int id = Convert.ToInt32(Request.QueryString["id"]);
            userinfo = UserManageBLL.GetUserByid(id);
            userinfo.UserType = Convert.ToInt32(ddlUserType.SelectedValue);
            userinfo.Phone = txtPhone.Text.Trim();
            num = UserManageBLL.UpdateUser(userinfo);
        }
        else
        {
            userinfo = new UserManageMOD();
            userinfo.UserType = Convert.ToInt32(ddlUserType.SelectedValue);
            userinfo.UserPass = "123456";
            userinfo.UserName = txtUserName.Text.Trim();
            userinfo.TrueName = txtTrueName.Text.Trim();
            userinfo.Phone = txtPhone.Text.Trim();
            userinfo.LoginNum = 0;
            num = UserManageBLL.InsertUser(userinfo);
        }
        if (num > 0)
        {
            ScriptManager.RegisterStartupScript(Page, typeof(Page), "ListArea", "DetailsPageControl.CloseBox();alert('提交成功');DetailsPageControl.ReflushList('UserManage/UserManage.aspx');", true);
        }
        else
        {
            ScriptManager.RegisterStartupScript(Page, typeof(Page), "ListArea", "alert('提交失败');", true);
        }
    }
开发者ID:monkinone,项目名称:OrderPrinnt,代码行数:37,代码来源:AddUser.aspx.cs


示例2: btnGuardar_Click

    protected void btnGuardar_Click(object sender, ImageClickEventArgs e)
    {
        int numFilas = gridListaClausulas.Rows.Count;

        int contador = 0;
        for (int i = 0; i < numFilas; i++)
        {
            CheckBox AuxCheckBox = (CheckBox)gridListaClausulas.Rows[i].FindControl("chkClausulas");
            if (AuxCheckBox.Checked)
            {
                contador++;
            }
        }
        if (contador > 0)
        {
            for (int i = 0; i < numFilas; i++)
            {
                CheckBox AuxCheckBox = (CheckBox)gridListaClausulas.Rows[i].FindControl("chkClausulas");
                if (AuxCheckBox.Checked)
                {
                    SqlDataSource1.InsertParameters.Clear();
                    SqlDataSource1.InsertParameters.Add("ClausulasId", "");
                    SqlDataSource1.InsertParameters.Add("PolizaId",this.PolizaId);
                    SqlDataSource1.InsertParameters.Add("nombre", gridListaClausulas.Rows[i].Cells[2].Text);
                    SqlDataSource1.InsertParameters.Add("contenido", gridListaClausulas.Rows[i].Cells[3].Text);
                    SqlDataSource1.InsertParameters.Add("usuario", au.UserName);
                    SqlDataSource1.Insert();

                }
            }
        }
    }
开发者ID:royriojas,项目名称:RGEN2,代码行数:32,代码来源:vListaClausulasComunes.aspx.cs


示例3: btnQuery_Click

 protected void btnQuery_Click(object sender, ImageClickEventArgs e)
 {
     using (ISession session = new Session())
     {
         this.QueryAndBindData(session, 1, this.magicPagerMain.PageSize, true);
     }
 }
开发者ID:XtremeKevinChow,项目名称:rdroad,代码行数:7,代码来源:SaleByCategoryStat.aspx.cs


示例4: btnAccept_Click

 protected void btnAccept_Click(object sender, ImageClickEventArgs e)
 {
     if (!CreateChange())
         return;
     string command = "CloseAndRebind('')";
     RadAjaxManager1.ResponseScripts.Add(command);
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:7,代码来源:PermissionForm.aspx.cs


示例5: Save_Click

    /// <summary>
    /// 添加
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Save_Click(object sender, ImageClickEventArgs e)
    {
        int num = 0;

        if (Request.QueryString["id"] != "" && Request.QueryString["id"] != null)
        {
            int id = Convert.ToInt32(Request.QueryString["id"]);
            mod = ProductParamBLL.GetmodByid(id);
            mod.ParamContent = txtparamContent.Text.Trim();
            num = ProductParamBLL.Updatemod(mod);
        }
        else
        {
            mod = new ProductParamMOD();
            mod.CustomNo = txtcustomerNo.Text.Trim();
            mod.ParamContent = txtparamContent.Text.Trim();
            mod.ProductNo = txtproductNO.Text.Trim();
            num = ProductParamBLL.Insertmod(mod);
        }
        if (num > 0)
        {
            ScriptManager.RegisterStartupScript(Page, typeof(Page), "ListArea", "DetailsPageControl.CloseBox();alert('提交成功');DetailsPageControl.ReflushList('CustomerManage/ProductParamManage.aspx');", true);
        }
        else
        {
            ScriptManager.RegisterStartupScript(Page, typeof(Page), "ListArea", "alert('提交失败');", true);
        }
    }
开发者ID:monkinone,项目名称:OrderPrinnt,代码行数:33,代码来源:AddProductParam.aspx.cs


示例6: btnSubmit_Click

 protected void btnSubmit_Click(object sender, ImageClickEventArgs e)
 {
     if (rblSchoolList.SelectedIndex != -1)
     {
         UpdateHighSchoolID(strPortfolioID, rblSchoolList.SelectedItem.Value);
     }
 }
开发者ID:nehawadhwa,项目名称:ccweb,代码行数:7,代码来源:CP_NoPortfolio.ascx.cs


示例7: ImgDelete_Click

    protected void ImgDelete_Click(object sender, ImageClickEventArgs e)
    {
        try
        {
            string sql2 = "Delete deposit where [email protected]";
            SqlCommand cmd2 = new SqlCommand();
            cmd2.Connection = cn;
            cmd2.CommandType = CommandType.Text;
            cmd2.CommandText = sql2;

            cmd2.Parameters.AddWithValue("id", LblId.Text);
            cn.Open();
            cmd2.ExecuteNonQuery();

            cmd2.Clone();
            cn.Close();
            depositchk();

        }
        catch
        {

        }
        finally
        {
            cn.Close();

        }
    }
开发者ID:tahirayoub,项目名称:OnlineBankManagementSystem,代码行数:29,代码来源:DepositCheck.aspx.cs


示例8: ImgBtnLogin_Click

    protected void ImgBtnLogin_Click(object sender, ImageClickEventArgs e)
    {
        if (this.TxtUserName.Text == string.Empty)
        {
            Response.Write("<script language=javascript>alert('用户名不能为空!');location='Default.aspx'</script>");
            return;
        }
        else
        {
            if (this.TxtCode.Text == Request.Cookies["CheckCode"].Value)
            {

                string SqlStr = "select count(*) from tb_UserLogin where UserName='" + this.TxtUserName.Text + "'and UserPwd='" + this.TxtUserPwd.Text + "'";
                int a = ep.EXECuteScalar(SqlStr);
                if (a >= 1)
                {
                    Session["UserName"] = this.TxtUserName.Text;
                    Session["UserPwd"] = this.TxtUserPwd.Text;
                    Response.Write("<script lanuage='javaScript'>alert('恭喜您!!登录成功!');location='Default.aspx'</script>");//弹出对话框显示“恭喜您!!登录成功!”
                    Panel2.Visible = true;
                    Panel1.Visible = false;
                }
                else
                {
                    Response.Write("<script lanuage='javaScript'>alert('很遗憾!!登录失败!');location='Default.aspx'</script>");//弹出对话框显示“很遗憾!!登录失败!”
                }
            }
            else
            {
                Response.Write("<script language=javascript>alert('输入的验证码不正确!');location='Default.aspx'</script>");
            }
        }
    }
开发者ID:kinggod,项目名称:21SourceCode,代码行数:33,代码来源:Default.aspx.cs


示例9: ImageButton1_Click

 protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
 {
     Resume r = new Resume();
     r.City = txtCity.Text;
     r.CountryID = int.Parse(ddlCountry.SelectedValue);
     r.CoveringLetterText = txtCoveringLetter.Text;
     r.EducationLevelID = int.Parse(ddlEduLevel.SelectedValue);
     r.ExperienceLevelID = int.Parse(ddlExpLevel.SelectedValue);
     r.JobTitle = txtJobTitle.Text;
     r.JobTypeID = int.Parse(ddlJobType.SelectedValue);
     r.RelocationCountryID = int.Parse(ddlRelocationCountry.SelectedValue);
     r.ResumeText = txtResume.Text;
     r.StateID = int.Parse(ddlState.SelectedValue);
     r.UserName = Profile.UserName;
     r.PostedDate = DateTime.Now;
     if (Profile.JobSeeker.ResumeID != -1)
     {
         r.ResumeID = Profile.JobSeeker.ResumeID;
         Resume.Update(r);
     }
     else
     {
         int retval = Resume.Insert(r);
         Profile.JobSeeker.ResumeID = retval;
     }
     lblMsg.Text = "Your resume is successfully updated!";
 }
开发者ID:dineshkummarc,项目名称:JobSiteSK-CS,代码行数:27,代码来源:postresume.aspx.cs


示例10: ImgSumbit_Click

 protected void ImgSumbit_Click(object sender, ImageClickEventArgs e)
 {
     if (txtNewPwd.Text != txtNewPwd1.Text)
     {
         lblErrMsg.Text = "新密码输入不一致";
     }
 }
开发者ID:bindofn,项目名称:bindofn,代码行数:7,代码来源:PasswordManage.aspx.cs


示例11: ImgBtnCancel_Click

 protected void ImgBtnCancel_Click(object sender, ImageClickEventArgs e)
 {
     /*清空文本框*/
     this.TxtUserName.Text = "";
     this.TxtUserPwd.Text = "";
     this.TxtCode.Text = "";
 }
开发者ID:kinggod,项目名称:21SourceCode,代码行数:7,代码来源:Default.aspx.cs


示例12: btnImport_Click

    protected void btnImport_Click(object sender, ImageClickEventArgs e)
    {
        PurchaseOrderModel PurchaseOrderM = new PurchaseOrderModel();
        PurchaseOrderM.CompanyCD = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).CompanyCD;
        PurchaseOrderM.OrderNo = txtOrderNo.Value;
        PurchaseOrderM.Title = txtOrderTitle.Value;
        PurchaseOrderM.TypeID = ddlTypeID.SelectedValue;
        PurchaseOrderM.DeptID = hidDeptID.Value;
        PurchaseOrderM.Purchaser = hidPurchaseID.Value;
        PurchaseOrderM.FromType = ddlFromType.Value;
        PurchaseOrderM.ProviderID = hidProviderID.Value;
        PurchaseOrderM.BillStatus = ddlBillStatus.Value;
        PurchaseOrderM.FlowStatus = ddlFlowStatus.Value;
        PurchaseOrderM.ProjectID  = this.hidProjectID .Value;
      PurchaseOrderM.EFIndex =  GetBillExAttrControl1.GetExtIndexValue ;
           PurchaseOrderM.EFDesc =    GetBillExAttrControl1.GetExtTxtValue;
        string OrderBy = hidOrderBy.Value;

        DataTable dt = PurchaseOrderBus.GetPurchaseOrder(PurchaseOrderM, OrderBy);

        OutputToExecl.ExportToTableFormat(this, dt,
            new string[] { "订单编号", "订单主题", "采购类别", "采购员", "供应商", "金额合计", "税额合计", "含税金额合计", "单据状态", "审批状态", "是否已建单" },
            new string[] { "OrderNo", "OrderTitle", "TypeName", "PurchaserName", "ProviderName", "TotalPrice", "TotalTax", "TotalFee", "BillStatusName", "FlowStatusName", "isOpenBillName" },
            "采购订单列表");
    }
开发者ID:kosmos-zhang,项目名称:erp-aspnet,代码行数:25,代码来源:PurchaseOrderInfo.aspx.cs


示例13: IBDelete_Click

    protected void IBDelete_Click(object sender, ImageClickEventArgs e)
    {
        //ClientScriptManager CSM = Page.ClientScript;
        //if (!ReturnValue())
        //{
        //    string strconfirm = "<script>if(!window.confirm('Are you sure?')){window.location.href='MenuEditor.aspx'}</script>";
        //    CSM.RegisterClientScriptBlock(this.GetType(), "Confirm", strconfirm, false);
        //}

        LblMsg.Text = string.Empty;
        if (DDLItems.SelectedIndex < 0)
        {
            LblMsg.Text = "من فضلك اختار عنصر ثم اضغط حذف";
            return;
        }
        OleDbConnection Con = new OleDbConnection(constr);
        OleDbCommand cmd = new OleDbCommand(String.Format("Delete From MenuItem Where ItemID = {0}", DDLItems.SelectedValue), Con);
        try
        {
            Con.Open();
            cmd.ExecuteNonQuery();
            LblMsg.Text = "تم الحذف";
            LblMsg.ForeColor = System.Drawing.Color.Green;
        }
        catch (Exception ex)
        {
            LblMsg.Text = ex.Message.ToString();
            LblMsg.ForeColor = System.Drawing.Color.Red;
        }
        Con.Close();
        LoadData();
    }
开发者ID:EgyFalseX,项目名称:WebSites,代码行数:32,代码来源:MenuEditor.ascx.cs


示例14: IBAdd_Click

    protected void IBAdd_Click(object sender, ImageClickEventArgs e)
    {
        LblMsg.Text = string.Empty;
        if (TxtAdd.Text == string.Empty)
            return;
        string ReleaseDate;
        if (CReleaseDateAdd.SelectedDate != null)
            ReleaseDate = "'" + CReleaseDateAdd.SelectedDate.ToShortDateString() + "'";
        else
            ReleaseDate = "NULL";

        OleDbConnection Con = new OleDbConnection(constr);
        OleDbCommand cmd = new OleDbCommand(String.Format(@"Insert Into MenuItem (ItemName, Show_Hide, ItemInfo, ItemPic, ReleaseDate) VALUES ('{0}', 1, '{1}', '{2}', {3})",
        TxtAdd.Text, TxtAddInfo.Text, TxtAddImg.Text, ReleaseDate), Con);
        try
        {
            Con.Open();
            cmd.ExecuteNonQuery();
            LblMsg.Text = "تم الاضافه";
            LblMsg.ForeColor = System.Drawing.Color.Green;
            TxtAdd.Text = string.Empty;
        }
        catch (Exception ex)
        {
            LblMsg.Text = ex.Message.ToString();
            LblMsg.ForeColor = System.Drawing.Color.Red;
        }
        Con.Close();
        LoadData();
    }
开发者ID:EgyFalseX,项目名称:WebSites,代码行数:30,代码来源:MenuEditor.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_guanJiaoZhenNo.Value = "";
     Pager_DocumentShare.CurrentPageIndex = 1;
     LoadDataBind(strWhere);
     UP_DocumentShare.Update();
 }
开发者ID:monkinone,项目名称:OrderPrinnt,代码行数:12,代码来源:GuanJiaoZhenImgManage.aspx.cs


示例16: img_logout_Click

 protected void img_logout_Click(object sender, ImageClickEventArgs e)
 {
     Session["UserName"] = "";
     Session["UserTypeId"] = "";
     Session["UserId"] = "";
     Response.Redirect("Default.aspx");
 }
开发者ID:hotveryspicy,项目名称:work_sneha,代码行数:7,代码来源:dialzone.master.cs


示例17: ImageButton1_Click

    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        string strMsg = "";

        if (this.txtDateStart.Value == "" && this.txtDateEnd.Value == "")
            strMsg += "请选择要查询的时间段!\\r\\n";
        if (strMsg != "")
        {
            MessageBox.Show(this, strMsg);
            return;
        }

        string strWhere = "1=1";

        if (this.ddlColl.SelectedIndex != 0)
            strWhere += " and CollCode='" + this.ddlColl.SelectedValue + "'";

        if (this.txtCollCode.Text != "")
            strWhere += " and CollCode='" + this.txtCollCode.Text + "'";

        if (this.ddlCoalKind.SelectedIndex != 0)
            strWhere += " and CoalKindCode='" + this.ddlCoalKind.SelectedValue + "'";

        if (this.txtDateStart.Value != "")
            strWhere += " and EffectTime>='" + this.txtDateStart.Value + "'";
        if (this.txtDateEnd.Value != "")
            strWhere += " and EffectTime<='" + this.txtDateEnd.Value + " 23:59:59'";

        strWhere = Server.UrlEncode(strWhere);
        string strTitle = Server.UrlEncode(System.Configuration.ConfigurationManager.AppSettings["Customer"] + "煤炭规费征收明细");
        string strDate = Server.UrlEncode("统计日期:从" + this.txtDateStart.Value + "到" + this.txtDateEnd.Value);
        string strOperator = Server.UrlEncode(CookieManager.GetCookieValue("UserName"));
        //string strOperator = "tangxu";
        ClientScript.RegisterStartupScript(Page.GetType(), "", "LoadUrl(\"" + strWhere + "\",'" + strOperator + "','" + strTitle + "','\"" + strDate + "\"')", true);
    }
开发者ID:SaintLoong,项目名称:HanCheng_CoalTraffic_BS,代码行数:35,代码来源:TaxItemInfoStat.aspx.cs


示例18: Delete_Click

 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Delete_Click(object sender, ImageClickEventArgs e)
 {
     System.Text.StringBuilder sb = new System.Text.StringBuilder();
     for (int i = 0; i < rpt_userinfo.Items.Count; i++)
     {
         CheckBox chk = rpt_userinfo.Items[i].FindControl("chkPro") as CheckBox;
         if (chk.Checked)
         {
             HiddenField hidd = rpt_userinfo.Items[i].FindControl("hiddId") as HiddenField;
             sb.Append(hidd.Value + ",");
         }
     }
     if (sb.Length == 0)
     {
         ScriptManager.RegisterStartupScript(Page, typeof(Page), "ListArea", "alert('您没有选择任何项');", true);
         return;
     }
     else
     {
         try
         {
             UserManageBLL.Delete(sb.ToString().Substring(0,sb.ToString().Length-1));
             LoadDataBind(strWhere);
         }
         catch
         {
             ScriptManager.RegisterStartupScript(Page, typeof(Page), "ListArea", "alert('出现错误!请重新尝试!');", true);
         }
     }
 }
开发者ID:monkinone,项目名称:OrderPrinnt,代码行数:35,代码来源:UserManage.aspx.cs


示例19: btnSaveNewPwd_Click

    protected void btnSaveNewPwd_Click(object sender, ImageClickEventArgs e)
    {
        RegisterUserBLL objUser = new RegisterUserBLL();
        Property objProp = new Property();

        objProp.UserID = txtUserID.Text;
        objProp.OldPassword = txtOldPwd.Text;
        objProp.Password = txtNewPassword.Text;

        string user = (string)Session["User"];

        try
        {
            if (objUser.ChangePassword(objProp, user))
            {
                string str = "alert('Password Changed Successfully...');";
                ScriptManager.RegisterStartupScript(btnSaveNewPwd, typeof(Page), "alert", str, true);
            }
            else
            {
                string str = "alert('Failed to Change Password, Please try again...');";
                ScriptManager.RegisterStartupScript(btnSaveNewPwd, typeof(Page), "alert", str, true);
            }
            ClearControls();
        }
        catch(Exception ex)
        {
            objNLog.Error("Error: " + ex.Message);
        }
    }
开发者ID:aptivasoft,项目名称:Adio,代码行数:30,代码来源:ChangePassword.aspx.cs


示例20: btnAssignPharmacy_Click

    protected void btnAssignPharmacy_Click(object sender, ImageClickEventArgs e)
    {
        objNLog.Info("Event Started..");
        try
        {
            string userID = (string)Session["User"];
            int flag = 0;
            foreach (ListItem li in lstPhrmTechNames.Items)
            {
                if (li.Selected == true)
                {
                    objPhrmInfo.SetPharmacyTechPharmacy(li.Value, ddlPharmacyNames.SelectedValue);
                    flag = 1;
                }
            }
            if (flag == 1)
            {
                string str = "alert('Pharmacy Assigned Successfully...');";
                ScriptManager.RegisterStartupScript(btnAssignPharmacy, typeof(Page), "alert", str, true);
            }

        }
        catch (Exception ex)
        {
            objNLog.Error("Error : " + ex.Message);
        }
        objNLog.Info("Event Completed..");
    }
开发者ID:aptivasoft,项目名称:Adio,代码行数:28,代码来源:PharmacyTech.aspx.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# ImageData类代码示例发布时间:2022-05-24
下一篇:
C# ImageButton类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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