Wednesday, March 14, 2012

Link button in html

<asp:LinkButton ID="btnAddExt" runat="server" OnClick="LinkButton1_Click">Add Customer</asp:LinkButton>&nbsp;&nbsp;

  protected void LinkButton1_Click(object sender, EventArgs e)
        {
            try
            {
                Session["DVMode"] = MessageConstants.GeneralConstants.Insert;
                Response.Redirect("AddCustomer.aspx");
            }
            catch (Exception ex)
            {
                Logger.WriteException(ex);
            }
        }

No comments:

Post a Comment