Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to use Javascript in update panel in Asp.Net




Introduction 

We all use Javascript on client side validation . but in case when we are using Update panel it does work. 

Solutions
Code on Design page on Aspx.

functionpageLoad(sender, args) {
            $(".addcourse").click(function () {
                $('#=hfShPnl%>').val('=valuehide%>');
                var prm = Sys.WebForms.PageRequestManager.getInstance();
                prm.add_endRequest(EndRequestHandler);
                function EndRequestHandler(sender, args) {
                    if ($('#=hfShPnl%>').val() == 1) {
                        $("#pnelentry").hide();
                    }
                    if ($('#=hfShPnl%>').val() == 0) {
                        $('#pnelentry').show();
                    }
                }
            });
}




This post first appeared on Pivot In SQL Server, please read the originial post: here

Share the post

How to use Javascript in update panel in Asp.Net

×

Subscribe to Pivot In Sql Server

Get updates delivered right to your inbox!

Thank you for your subscription

×