use Jquery load to load content in adiv?

Posted by Khalid Omar on Stack Overflow See other posts from Stack Overflow or by Khalid Omar
Published on 2010-03-27T10:57:59Z Indexed on 2010/03/27 11:03 UTC
Read the original article Hit count: 385

Filed under:
|
|
|

simply i'm doing a test i have a div called test and mvc action in the client controler the view

and the controler

    public string testout()
    {
        return DateTime.Now.ToString();
    }

and i'm using jquery to update the div

        $("#B1").live("click", function() {

                $("#test").load("/client/testout");

            return false;
        });

first time a click the bottun i see the date and time in the div test second time i click the botton nothing changed

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc