2012-03-03 10 views
2

SQLデータソースとデータグリッドがWebページにあります。ページがロードされると、データグリッドが自動的にバインドされます。ボタンのクリックイベントまでどのように遅延させるのですか?SQLデータソースの使用

+3

ジャストボタンのクリック –

+0

にそれをバインドし@ AmenAyach別のボタンをクリックしてバインドを切断したい場合はどうしますか? –

答えて

1

ButtonToBindclickeventで

  • System.Web.HttpContext.Current.Session( "BindUnbind")= "B"
  • のResponse.Redirect( "Mypage.aspx")
ButtonToUnBindclickeventで

  • System.Web.HttpContext.Current.Session( "BindUnbind")= "U"
  • のResponse.Redirect( "Mypage.aspx")をPage_Load *

    場合に

* System.Webの.HttpContext.Current.Session( "BindUnbind")=グリッド

System.Web.HttpContext.Current.Session ELSEIF( "BindUnbind")に結合し、 "B"

  • = "U "その後、

    • アンバインドグリッド

    endifの

    System.Web.HttpContext.Current.Session(" BindUnbind ")="」

関連する問題