Progress bar not working with update panel in side gridview when we click on check box which is inside gridview..
function Show() {
document.getElementById('div_Loader').style.display = 'block';
}
function Hide() {
document.getElementById('div_Loader').style.display = 'none';
}
window.onload = Hide;
<%--
$(document).ready(function () {
$("#div_Loader").hide();
});
function Show() {
$('#div_Loader').show();
}
function Hide() {
$('#div_Loader').hide();
}
--%>
AutoPostBack="true" />

<%-- --%>
AutoPostBack="true" />
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindGridview();
}
}
protected void Unnamed1_CheckedChanged(object sender, EventArgs e)
{
// Page.ClientScript.RegisterStartupScript(this.GetType(), "Hide", "Hide();", true);
}
protected void BindGridview()
{
SqlConnection con = new SqlConnection("Data Source=BRIJESH\\RRIJESH;Initial Catalog=Test;Integrated Security=True");
con.Open();
SqlCommand cmd = new SqlCommand("select * from tbl_emp", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
grid1.DataSource = ds;
grid1.DataBind();
}
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Rajeesh MenothRank #118 · 18.4K reputationPosted Jul 6, 2015, 3:47 AM EDT
Then you can use the trigger method in asp.net