Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         QuoteEditor1.DataBind();
     }
 }
Esempio n. 2
0
 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();
     }
 }
Esempio n. 3
0
 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();
     }
 }