How can I use partial views in ASP.NET?
        Posted  
        
            by kavitha desai
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by kavitha desai
        
        
        
        Published on 2010-06-17T14:04:39Z
        Indexed on 
            2010/06/17
            14:13 UTC
        
        
        Read the original article
        Hit count: 545
        
I have done partial views in ASP.NET MVC but now I want to convert it to ASP.NET. I have used AJAX and JavaScript. How can I convert the following:
<a href="#" onclick="LoadPartialView('#MainContentDiv', '<%=Url.Action("AdminHome", "Admin")%>')">Home</a>            ,
<input type="button" value="Submit" onclick="LoadPartialViewPost('#MainContentDiv', '<%=Url.Action("ViewPage", "Controller")%>', $('form').serialize())" />
to ASP.NET, or in other words, how can I load a partial view in ASP.NET?
© Stack Overflow or respective owner