protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { QuoteEditor1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (!string.IsNullOrEmpty(Request.QueryString["Id"])) { int quoteId = Convert.ToInt32(Request.QueryString["Id"]); QuoteEditor1.QuoteId = quoteId; } QuoteEditor1.DataBind(); } }
public void ChangeView() { if (View) { QuoteDetailView1.QuoteId = QuoteId; QuoteDetailView1.Visible = true; QuoteEditor1.Visible = false; QuoteDetailView1.DataBind(); } else { QuoteEditor1.QuoteId = QuoteId; QuoteDetailView1.Visible = false; QuoteEditor1.Visible = true; QuoteEditor1.Mode = EditionMode.Edit; QuoteEditor1.DataBind(); } }