Tuesday, 16 October 2012

Dataset.Select in Asp.Net C#


  //---------------------------------------------
            DataSet ds = (DataSet)ViewState["ds"];
            DataRow[] dr;
            dr = ds.Tables[0].Select("DDO_CODE='" + txtDdocode.Text.Trim() + "'");
            if (dr.Length > 0)
                ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(), "PopupScript", "alert('DDO CODE already Inserted ')", true);
            else
            {

 //-------------------------------------------

2 comments: