Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Request.Params["TutorialType"] == "Sound")
         {
             dataPaging1.Count = sb.getSearchSoundCount(Request.Params["TypeID"], "");
         }
         else
         {
             dataPaging1.Count = vb.getSearchVideoCount(Request.Params["TypeID"], "");
         }
         if (RepSound.Items.Count == 0 && RepVideo.Items.Count == 0)
         {
             dataPaging1.Visible = false;
         }
     }
 }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Request.Params["TutorialType"] == "Sound")
         {
             dataPaging1.Count = sb.getSearchSoundCount(Request.Params["TypeID"], Request.Params["SearchKey"]);
         }
         else
         {
             dataPaging1.Count = vb.getSearchVideoCount(Request.Params["TypeID"], Request.Params["SearchKey"]);
         }
         if (dataPaging1.Count == 0)
         {
             dataPaging1.Visible = false;
             PanelNone.Visible   = true;
         }
     }
 }