示例#1
0
    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 = "";
        }
    }
示例#2
0
 protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
 {
     SqlNotes.Update();
     Server.Transfer("StudShowNotes.aspx?docid=" + GridView1.SelectedDataKey.Value);
 }