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


C# ImageClickEventArgs类代码示例

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


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


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