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; } } }
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; } } }