Monday, 18 April 2011

Page Load Settings

protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Request.QueryString["GroupId"] != null && Request.QueryString["GroupId"].ToString() != "")
            {
                requestGroupId = Request.QueryString["GroupId"].ToString();
                lblMode.Text = "Edit";
                btnSave.Text = "Update";
            }

            if (!IsPostBack)
            {
                this.BindRecord();
            }

            txtGroup.Focus();

        }
        catch (Exception ex)
        {
            lblMessage.Text = ex.Message;
            lblMessage.CssClass = clsGlobal.css.SmallError;
            clsExceptionManager.Publish(ex);
        }

    }

No comments:

Post a Comment