Skip to main content

Lindsay Donaghe's Library tagged mvc   View Popular

26 May 08

UFrame: goodness of UpdatePanel and IFRAME combined - Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

A replacement for UpdatePanel in ASP.Net that lets you basically create an iFrame in the HTML using a div instead so the page is able to interact with the parent page's DOM. An option for cross-domain page embedding as well. Worth playing with.

msmvps.com/...panel-and-iframe-combined.aspx - Preview

asp.net mvc libraries downloads codesnippets web development

09 May 08

MVC On II6 Without the ".mvc" Extension - ASP.NET Forums

This thread has some instructions on how to use the IIRF plugin for rewriting the urls for MVC. May have to implement this soon.

forums.asp.net/...2117962.aspx - Preview

asp.net iis urls mvc codesnippets web development

    •  Sorry this took so long to get out to you, but here is a walk through of getting this working:  (note, please don't be offended by the bolding, it's for internal devs who don't always read docs well Smile

      1. Make sure the .Net 3.5 Framework is installed.
      2. Find IsapiRewrite4.dll and IsapiRewrite4.ini at http://cheeso.members.winisp.net/IIRF.aspx
      3. Copy the IsapiRewrite4.dll and IsapiRewrite4.ini file to a
        directory of your choosing on the target web server. We've been using %WINDIR%\system32\inetsrv\System32\inetsrv MAKE SURE YOU PUT BOTH FILES IN THE SAME DIRECTORY!!!
      4. Click the Configuration button under the Virtual
        Directory/Website tab and add a mapping for .mvc mapping to .Net 2.0
        framework. The extension is .mvc, use Limit to: GET, POST, HEAD, and
        make sure that "Verify that file exists" is UNCHECKED
      5. Install the IIRF isapi filter at the "Web Site" level using the information on where you installed it from above.
      6. Restart the World Wide Web Publishing service

      Here's our IsapiRewrite.ini file:

      1    RewriteLogLevel 3
      2 RewriteLog c:\logs\IIRF\rewrite
      3
      4 #This will rewrite one level deep if you are on localhost. In other words
      5 #if your url is http://localhost/MyDevEnvironment/[controller]/[action]/[id] it will
      6 #be able to rewrite it to http://localhost/MyDevEnvironment/[controller].mvc/[action]/[id]
      7 RewriteCond %{HTTP_HOST} ^.*localhost.*$
      8 RewriteRule (?!.*\..*)^/([^/.]+)/([^/.]+)(.*)$ /$1/$2.mvc$3 [L]
      9
      10 #This will rewrite root level if you are NOT on localhost. In other words
      11 #if your url is http://www.HeyThisIsACoolMVCSite.com/[controller]/[action]/[id] it will
      12 #be able to rewrite it to http://www.HeyThisIsACoolMVCSite.org/[controller].mvc/[action]/[id]
      13 RewriteCond %{HTTP_HOST} ^(?!.*localhost.*)$
      14 RewriteRule (?!.*\..*)^/([^/.]+)(.*)$ /$1.mvc$2 [L]
       Let me know if you need any help or have any more questions... 

       

08 May 08

How to enable pretty urls with Asp.Net MVC and IIS6 : Bia Securities

Even though MVC works fine from the default web, it has problems with virtual directories and requires using the wildcard or something like the routing solution suggested here.

biasecurities.com/...urls-with-asp-net-mvc-and-iis6 - Preview

asp.net mvc routing web development codesnippets troubleshooting urls iis

Jeff Meyer's Blog - Deployment Fun with ASP.Net MVC Preview 2

Jeff describes his workarounds for some of the deployment issues with ASP.Net MVC CTP 2 on an ISP using a Virtual Directory.

jeffmeyer.name/...tFunWithASPNetMVCPreview2.aspx - Preview

asp.net mvc web development troubleshooting iis

28 Apr 08

... In Which We Discuss HTML-Encoding : Rob Conery

Discussion and some responses about HTML encoding in MVC as a means to prevent XSS. Gives some good links to XSS examples and resources.

blog.wekeroad.com/...which-we-discuss-html-encoding - Preview

xss asp.net mvc web development security

Steve Sanderson’s blog » Blog Archive » ASP.NET MVC: Prevent XSS with automatic HTML encoding

Tutorial with demo code you can use to change the default behavior of <%= ... %> so that the output is Html encoded. Useful for prevention of XSS but not tested in many situations yet for robustness.

blog.codeville.net/...s-with-automatic-html-encoding - Preview

asp.net mvc security xss web development codesnippets downloads tutorials

27 Apr 08

Blocking Direct Access To Views in ASP.NET MVC

Handy bit of code in web.config to prevent people from navigating directly to a view.

haacked.com/...ng-direct-access-to-views.aspx - Preview

asp.net mvc codesnippet security web development

17 Apr 08

MVC - Community Blogs

A community for ASP.Net MVC sponsored by Microsoft.

weblogs.asp.net/...default.aspx - Preview

asp.net mvc community web development resources

16 Apr 08

MVCToolkit URL Bugs - ASP.NET Forums

Some examples of how the Routes table changes the generated urls.

forums.asp.net/1197244.aspx - Preview

asp.net MVC web development codesnippets troubleshooting

ASP.NET MVC: Using UserControls Usefully : Rob Conery

Some variations on how to use UserControls in Views with examples of calls to RenderUserControls and parameters.

blog.wekeroad.com/...vc-using-usercontrols-usefully - Preview

asp.net mvc web development codesnippets tutorials

Url Routing Debugger

Code that you can hook into your MVC project to tell you where your requests are being routed.

haacked.com/...url-routing-debugger.aspx - Preview

asp.net mvc troubleshooting web development tools codesnippets downloads

Simplicity: RenderUserControl from Controller

Example of how to render a control and pass the HTML back from the controller without having to render the view. Handly for dynamic partials.

www.brianclubb.com/...renderusercontr.html - Preview

asp.net MVC ajax web development codesnippets rendering

15 Apr 08

Using the ComponentController in ASP.NET MVC CTP 2 - Mike Bosch's Blog on .NET

One of several articles that Mike Bosch has done on MVC (lots of good information here). This one is on how to use the RenderComponent to create a "partial", though there's some contention in other camps whether you should or not. There's also a bug that needs to be fixed with an extension to RenderComponent that can be found here: http://claudiomeschini.blogspot.com/2008/04/aspnet-mvc-i.html

weblogs.asp.net/...controller-in-asp-net-mvc.aspx - Preview

asp.net mvc web development codesnippets tutorials rendering

Dominando el Dominio?: ASP.NET MVC I : RenderComponents y bugs

This fixes a bug in RenderComponent that has an error casting expressions in the lambda expression if you pass in a variable to the controller method. Setting up an extension fixes it everywhere. Nice.

claudiomeschini.blogspot.com/...aspnet-mvc-i.html - Preview

asp.net mvc codesnippets troubleshooting web development

14 Apr 08

ASP.NET WebForms and MVC in the same Project

Quickstart guide on how to use MVC with existing ASP.Net Web Applications. Nice that the two can coexist and you don't have to do a giant conversion to start using MVC.

chadmyers.com/...d-mvc-in-the-same-project.aspx - Preview

asp.net MVC codesnippets tutorials web development

ASP.NET MVC Framework - ScottGu's Blog

Intro to ASP.Net's version of MVC. Some of the code has changed since the March 2008 preview, but the concepts are nicely defined here.

weblogs.asp.net/...asp-net-mvc-framework.aspx - Preview

asp.net mvc web development codesnippets tutorials

Using jQuery with ASP.NET MVC

Awesome. Just what I've been looking for! JQuery integration with the ASP.Net MVC model. Sweet!

www.chadmyers.com/...g-jquery-with-asp.net-mvc.aspx - Preview

asp.net mvc ajax jquery tutorials codesnippets web devleopment

Nikhil Kothari's Weblog : Ajax with the ASP.NET MVC Framework

"This post presents a few basic Ajax features (similar to partial rendering and behaviors in terms of concepts) running on top of the ASP.NET MVC framework... some early ideas, experimentation and app-building results."
Some debate about this approach as to whether it's trying to "sneak" the post-back model back in.

www.nikhilk.net/Ajax-MVC.aspx - Preview

ajax mvc web development asp.net codesnippets tutorials downloads

1 - 20 of 20
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo