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 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeesh MenothPosted Jul 6, 2015, 7:47 AM
Then you can use the trigger method in asp.net