Currently I am working on a project are using ASP.NET MVC, and I need reuse some user controls with Telerik Controls,
As you know, many of those user controls for WebForm need enable ViewSate.
So I had combined both new MVC and old WebForm pages in this project.
and I had encountered and solved many issues both for integration and MVC
I write some key points here as my collections and want to share with my visitors.
Here is an article about adding MVC to regular website :link

 1. setup Route in Global.asax

  
public static void RegisterRoutes(RouteCollection routes)
{

// routes.IgnoreRoute("Classic/{resource}.aspx?{*requestUrl}"); //the ? is not allow in the route config
routes.IgnoreRoute("{resource}.aspx/{*pathInfo}"); //All .aspx regard as webform.
routes.IgnoreRoute("{resource}.ash/{*pathInfo}"); //other type need escape
routes.IgnoreRoute("Classic/{resource}.aspx/{*pathInfo}"); //I put my webform files in classic folder

routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);

}
2. Make your old UserControls work



3. Fix those weird problems of Visual Studio 2008
After copy the Classes such as "BaseUserControl.cs" to MVC project, whatever how many times I clean and rebuild the project, Those classes always can't be found by other classes.
And another issue happen frequently is the Pages have using Telerik controls, always have error message 'Error Creating Control' at design time.
After some research, I found  those step will solve these issues like a magic.

   step 1. Close your Visual studio 2008 .
   step 2. Go to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ folder, delete all sub directories.
   step 3. Go to C:\Documents and Settings\yourname\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\
              Delete all sub diretories.
   step 4. Restart.

And some people said, if copy the Telerik dlls to Global assembly will fix Telerik issue.
  
 

 
Tuesday, 12 July 2011 23:33:37 (Eastern Daylight Time, UTC-04:00)
You can also find hardly any more effective regions meant for viewing meant for adolescent, alluring, together with private men or women compared with doudounes femme , Moncler Sweater Womens ,Moncler Vest Womens , sale moncler,Moncler 2011,Moncler Mens Clothing,That i be sure my best inborn status for bliss sees a equal during the experience of someone who may be reviewing my family lake dress in my best doudounes moncler. That can put Moncler Sweater Kids all during effortless key phrases, That i appearance incredibly hot in doing my Moncler Down Coats Womens ,.
moncler jackets -usually with a pair of high heels to make you better. Besides,Tods store, the little guy is not very intimidating, depending on the percentage of his body parts in length they choose,discount doudounes femme moncler jackets,salechea, it is not strictly in accordance with the general idea,discount tods5oLldiscount todsJ'ai suivi les clubb,Tods Moncler Down Coats Mens, try not to,Moncler Jackets Womens a main,buy Moncler Vest Kids,Moncler Accessories,Moncler Handbags, do you know your Moncler Boots Womens ,Moncler Kids Clothing?

Backyard ,Moncler Down Coats Kids,Moncler Jackets Kids outfits Moncler Jackets Mens requires, to ensure simply a small section involving substantial along with brand-new technological innovation along with innovative resources are widely-used throughout modern-day outlying backyard aMoncler Sweater Mens moncler. Moncler Vest Mens,Moncler Boots Mens, involving product that is the form of manufactured fibers, normally created from polyester, nylon along with put together a number of other Moncler Womens Clothing,doudounes femme .
shaoujane
Saturday, 20 August 2011 02:10:30 (Eastern Daylight Time, UTC-04:00)
replica audemars piguet watches replica watches mm in diameter case the design of the new RSW replica watch classity is made to work for the fake watches fashion Well designed bag such as.
Comments are closed.