Skip to content Skip to sidebar Skip to footer

Update Panel And Modal Windows

I have my mainpage.aspx and then my mainDetails.ascx What I need is a way to populate and read the values from the modal. Right now the html variable is returning null. How do

Solution 1:

I found out a way of doing it.

in the mainDetail.ascx javascript I added the following:

        $('#modal-content div').each(function (index) {
            alert($(this).text());
            $(this).html("updated text now");
        });

Not only does this loop through each div in the modal window on the mainpage.aspx, but it also updates the text values in the div.


Post a Comment for "Update Panel And Modal Windows"