Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hiii
in my requirement i have to show jquery popup window in that pop up window i want to disply the gridview.

i am showing above two requirements very fine but the comming to gridview it is not showing am plasing it in master pages. y?? i didnt understand its very fine working in normal .aspx page..
can any one give me better suggestion to my mail id [Email Removed].


its urgent task i have to do??

code like this
JavaScript
<script type="text/javascript">
        $(document).ready(function () {
            $.ajax({
                type: "POST",
                contentType: "application/json; charset=utf-8",
                url: "WebForm3.aspx/BindDatatable",
                data: "{}",
                dataType: "json",
                success: function (data) {
                    for (var i = 0; i < data.d.length; i++) {
                       $("#gvDetails").append("<table><tbody><tr><td>" + (data.d[i].Consumption) + "</td><td>" + (data.d[i].MeterTimestamp) + "</td></tr></tbody></table>");
                    }
                },
                error: function (result) {
                    alert("Error");
                }
            });
        });
    </script>
Posted
v2
Comments
See in the console window of FireBug in FireFox, if there are any errors.

Hi,

I think after using master page grid id may vary use complete clikent id like this
JavaScript
$('#<%= txtProductName.ClientID %>')
 
Share this answer
 
v2
Thanks sir... its working fine....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900