コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         QuoteEditor1.DataBind();
     }
 }
コード例 #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();
     }
 }
コード例 #3
0
ファイル: QuoteView.ascx.cs プロジェクト: tuxevil/Grundfos
 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();
     }
 }