how can we get dataset with generic handler or jquery from Database
<p>Like for a single value i easily work, or also true false condition. 
like getting a single value from database</p>

<pre><code>                    string i = "";
                    cmd.CommandType = CommandType.StoredProcedure;
                    cmd.CommandText = "SelectPass";
                    cmd.Parameters.AddWithValue("@userID", context.Request.QueryString["id"]);
                    conn.Open();
                    SqlDataReader reader = cmd.ExecuteReader();
                    while (reader.Read())
                    {
                        i = reader["Password"].ToString();
                    }
                    reader.Close();
                    conn.Close();
                    if (i == "")
                    { context.Response.Write("False"); }
                    else
                    {
                        context.Response.Write(i);
                    }
</code></pre>

<p>and in client side easily showing the value in one variable.</p>

<pre><code> function abc()
{   
    $.get('\HandlerResetPass.ashx?id=' + $('#txtUserId').val()+'&amp;lbl='+ $('#lblPasswo').val(), callback);
    function callback(data)
    {

    if (data == "False")
    {
    alert('ID doesn\'t exist try again..!')
    return false;
    }
    else 
    {
    $('#tblPassWord').show();
    $('#tblprofile').hide();
    role = data;
    }
    }
}
</code></pre>

<p>But how working with A dataset.</p>
