Click here to Skip to main content
12,830,941 members (38,766 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads


24 bookmarked
Posted 3 Jun 2010

Partial Rendering Control using JQuery in MVC 2

, 14 Jun 2010 CPOL
This article shows a web custom control that allows partial rendering using JQuery in an MVC 2 web application
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Register assembly="JqueryController" namespace="JqueryController" tagprefix="cc1" %>

<%@ Register src="../UserControl/ViewUserControl1.ascx" tagname="ViewUserControl1" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">

    Home Page

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript" >
    function CallBack() {        
        var args = CallBack.arguments;
    <form id="form1" runat="server">
    <h2><%: ViewData["Message"] %></h2>

    <cc1:JqueryController ID="JqueryController1" runat="server">
             <uc2:ViewUserControl1 ID="ViewUserControl11" runat="server"  />
    <input id="Post" type="button" value="button"  onclick="JqueryPost('Home','action=refreshTime')"/>
        To learn more about ASP.NET MVC visit <a href="" title="ASP.NET MVC Website"></a>.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


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


About the Author

Massimiliano Peluso "WeDev Limited"
Architect PeluSoft Limited
United Kingdom United Kingdom
I have been fascinated by software development since I was 10 years old. I'm proud of learned the first programming language with an Olivetti PC 128S based on Microsoft BASIC. I'm a Software Architect/Senior Developer with a strong background of all the developing Microsoft's technologies.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170326.1 | Last Updated 14 Jun 2010
Article Copyright 2010 by Massimiliano Peluso "WeDev Limited"
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid