protected void btnSearch_Click(object sender, EventArgs e) { DataView dv = (DataView)SqlNotes.Select(new DataSourceSelectArguments()); if (dv.Count == 0) { lblmsg.Text = "No Result Found"; } else { lblmsg.Text = ""; } }
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { SqlNotes.Update(); Server.Transfer("StudShowNotes.aspx?docid=" + GridView1.SelectedDataKey.Value); }