protected void btnSearch_Click(object sender, EventArgs e)
    {
        string serialno = txtAssets.Text.ToString();

        col = ObjConfigurationmst.Get_All_By_SerialNo(serialno);
        grdvwViewAsset.DataSource = col;
        grdvwViewAsset.DataBind();
        txtAssets.Text = "";
    }
 protected void btnSearch_Click(object sender, EventArgs e)
 {//Add Exception handilng try catch change by vishal 21-05-2012
     try
     {
         string serialno = txtAssets.Text.ToString();
         col = ObjConfigurationmst.Get_All_By_SerialNo(serialno);
         grdvwViewAsset.DataSource = col;
         grdvwViewAsset.DataBind();
         txtAssets.Text = "";
     }
     catch (Exception ex)
     {
         string myScript;
         myScript = "<script language=javascript>alert('Exception - '" + ex + "');</script>";
         Page.RegisterClientScriptBlock("MyScript", myScript);
         return;
     }
 }