protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { try { txtSDate.Value = dbc.getindiantime().ToString("dd/MMM/yyyy"); //bindsociety(); //txtpwd.Text = ""; //txtimg.Text = " "; ddlProduct = dbc.FillCombo(ddlProduct, "Select Id , Name from Product", "Name", "Id"); if (rdbsendall.Checked == true) { txtmob.Enabled = false; } else { txtmob.Enabled = true; } //gvbind(); // txtexpdate.Value = dbc.getindiantime().AddDays(1).ToString("dd/MMM/yyyy"); } catch (Exception ex) { } } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { lblDateTime.Text = String.Format("{0:ddd, MMM d, yyyy}", dbc.getindiantime()); btnsave.Text = "Save"; ddluser = dbc.FillCombo(ddluser, "select Id,Username from Users ", "Username", "Id");//where id <> 1 bindrole(); getdata(); } } catch (Exception ex) { ltrErr.Text = ex.Message; } }