Stories recently tagged with 'ASPNETMVC'

ASP.NET MVC: Compile Your Views for Release Build Only(developmentalmadness.com)

submitted by atifazizatifaziz(1000) 2 years, 5 months ago

Mark J. Miller shows how to setup an ASP.NET MVC application project to compile views based on WebForms engine in release builds only. You therefore get the speed during development but a final validation before release. read more...

add a comment |category: |Views: 37

tags: another

Supporting multiple submit buttons on an ASP.NET MVC view(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 2 years, 6 months ago

A while ago, I was asked for advice on how to support multiple submit buttons in an ASP.NET MVC application, preferably without using any JavaScript. The idea was that a form could contain more than one submit button issuing a form post to a different controller action. The above situation can be solved in many ways, one a bit cleaner than the other. For example, one could post the form back to one action method and determine which method should be called from that action method. Good solution, however: not standardized within a project and just not that maintainable… A better solution in this case was to create an ActionNameSelectorAttribute. read more...

add a comment |category: |Views: 836

tags: another

Facebook Connect Action Filter for ASP.NET MVC(beefycode.com)

submitted by beefarinobeefarino(110) 2 years, 6 months ago

One of Facebook Connect's basic features is to provide user identity to other web applications via the "Connect Button". Adding this feature to your ASP.NET site is already well documented by Clarity Consulting and others; here I will show you how I'm seamlessly folding this feature into the ASP.NET MVC request-handling pipeline using a custom Facebook Connect ActionFilterAttribute. read more...

add a comment |category: |Views: 118

tags: another

Localize ASP.NET MVC 2 DataAnnotations validation messages(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 2 years, 6 months ago

Living in a country where there are there are three languages being used, almost every application you work on requires some form of localization. In an earlier blog post, I already mentioned ASP.NET MVC 2’s DataAnnotations support for doing model validation. Ever since, I was wondering if it would be possible to use resource files or something to do localization of error messages. Here's how! read more...

add a comment |category: |Views: 830

tags: another

MvcMaps Preview 1 – A Unified Bing/Google Maps API for ASP.NET MVC(pietschsoft.com)

submitted by crpietschmanncrpietschmann(11.3k) 2 years, 6 months ago

I spent some time lately working on bringing some of the concepts of Web.Maps.VE to ASP.NET MVC. The concepts I’m referring to are Simplicity and Ease of Development in making the implementation of mapping within ASP.NET MVC applications as simple as possible along with the Flexibility and Customizability of the Base Mapping API itself. Then I thought, Since I’m building an abstraction layer to simplify Bing Maps development, why not implement it in a flexible manor as to be able to support other Mapping API’s as well? The result of such an effort in a nice Unified API that allows virtually the same code to be written when implementing either Bing Maps or Google Maps. In fact, all you need to do to change your application over to using one mapping provider instead of the other is to just change a single line of code. read more...

add a comment |category: |Views: 136

tags: another

ASP.NET MVC View Model Patterns(geekswithblogs.net)

submitted by johnrummelljohnrummell(1321) 2 years, 6 months ago

Since MVC has been released I have observed much confusion about how best to construct view models. Sometimes this confusion is not without good reason since there does not seem to be a ton of information out there on best practice recommendations. Additionally, there is not a “one size fits all” solution that acts as the silver bullet. In this post, I’ll describe a few of the main patterns that have emerged and the pros/cons of each. It is important to note that many of these patterns have emerged from people solving real-world issues. read more...

add a comment |category: |Views: 203

tags: another

Recording of my session at Remix 2009 - ASP.NET MVC(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 2 years, 7 months ago

Session recording of my remix09 talk: ASP.NET MVC Wisdom Abstract: "Building a Twitter clone in 60 minutes, featuring what's new in ASP.NET MVC 2 preview 1 and focusing on some of the core ASP.NET MVC features like security and routing." read more...

add a comment |category: |Views: 24

tags: another

Microsoft Ajax Library (Preview 6) and the Microsoft Ajax Minifier(weblogs.asp.net)

submitted by crpietschmanncrpietschmann(11.3k) 2 years, 7 months ago

The ASP.NET team today released a significant new update of the Microsoft Ajax Library (Preview 6). This update includes a bunch of new capabilities and improvements to our client-side AJAX library, and can be used with any version of ASP.NET (including ASP.NET 2.0, 3.5 and 4.0), and can be used in both ASP.NET Web Forms and ASP.NET MVC projects. Today’s release includes the following feature improvements: * Better Imperative Syntax: A new, simplified, code syntax for creating client controls. * Client Script Loader: A new client-side script loader that can dynamically load all of the JavaScript files required by a client control or library automatically, and executes the scripts in the right order. * Better jQuery Integration: All Microsoft Ajax controls are now automatically exposed as jQuery plug-ins. read more...

add a comment |category: |Views: 23

tags: another

A Simple ScriptManager for ASP.NET MVC(pietschsoft.com)

submitted by crpietschmanncrpietschmann(11.3k) 2 years, 7 months ago

The ASP.NET AJAX ScriptManager makes it really easy to include JavaScript references and register JavaScript blocks into the rendered Page output of an ASP.NET WebForms application. However nice the ScriptManager control is, it’s still just a WebForms control for use with ASP.NET AJAX; thus it’s use isn’t really supported with ASP.NET MVC. Also, to make things just a little more difficult, ASP.NET MVC doesn’t have it’s own “ScriptManager” implementation. This brings me to the point of posting this… I have worked out a really simple “ScriptManager” component for use with ASP.NET MVC, and I think it works really nice to help simplify the effort of including JavaScript blocks and references in a page read more...

add a comment |category: |Views: 46

tags: another

My ASP.NET MVC stack and why I chosen it(codeclimber.net.nz)

submitted by keyvankeyvan(4086) 2 years, 7 months ago

In this post Simone Chiaretta talks about the tools, components, and technologies he uses along with ASP.NET MVC to build web applications. read more...

add a comment |category: |Views: 584

tags: another

ASP.NET MVC Cheat Sheets(elijahmanor.com)

submitted by elijahmanorelijahmanor(1448) 2 years, 7 months ago

Most of you have seen many jQuery Cheat Sheets out in the wild, but as of recently there are now also many ASP.NET MVC Cheat Sheets to chose from. If you know of any other ASP.NET MVC Cheat Sheets, please let me know and I’ll add it to the above list. I hope these prove to be helpful for you. You might consider printing them out and posting them on your cubical walls ;) read more...

add a comment |category: |Views: 585

tags: another

NerdDinner with Fluent NHibernate Part 3 - The infrastructure(bengtbe.com)

submitted by bengtbebengtbe(470) 2 years, 7 months ago

This is the final post in a series of three where I'm going to see how we can change the NerdDinner project to use Fluent NHibernate instead of LINQ to SQL. In this post we are going to take a look at the Nhibernate infrastructure and the dinner repository. read more...

add a comment |category: |Views: 293

tags: another

Leveraging ASP.NET MVC 2 futures ViewState(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 2 years, 7 months ago

In my previous blog post, I called something “ViewState in MVC” while it is not really ViewState. To be honest, I did this on purpose, wanting to see people discuss this possibly new feature in MVC 2. Discussion started quite fast: most people do not like the word ViewState, especially when it is linked to ASP.NET MVC. As Phil Haack pointed out in a comment on my previous blog post, I used this foul word where it was not appropriate: "(…) I think calling it ViewState is very misleading. (…) what your serializing is the state of the Model, not the View. (…)" Let’s use this in a practical example. read more...

add a comment |category: |Views: 221

tags: another

ScottGu: Auto-Start ASP.NET Applications (VS 2010 and .NET 4.0 Series)(weblogs.asp.net)

submitted by JemmJemm(9604) 2 years, 8 months ago

"Today’s post covers a small, but nice, new feature that you can now optionally take advantage of with ASP.NET 4 - the ability to automatically startup and proactively initialize a web application without having to wait for an external client to hit the web server. This can help you provide a faster response experience for the first user who hits the server, and avoids you having to write custom scripts to “warm up” the server and get any data caches ready." read more...

add a comment |category: |Views: 351

tags: another

jQuery Star Rating with ASP.NET MVC(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 8 months ago

There are a number of jQuery star rating plugins to choose from. All have their pros and cons. For this site, I decided to implement the one from FyneWorks because it allows for split stars. Here's how I did it. read more...

add a comment |category: |Views: 200

tags: another

ASP.NET MVC MvcSiteMapProvider 1.0 released(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 2 years, 8 months ago

Back in March, I blogged about an experimental MvcSiteMap provider I was building. Today, I am proud to announce that it is stable enough to call it version 1.0! Download MvcSiteMapProvider 1.0 over at CodePlex. Ever since the source code release I did back in March, a lot of new features have been added, such as HtmlHelper extension methods, attributes, dynamic parameters, … I’ll leave most of them up to you to discover, but there are some I want to quickly highlight. read more...

2 comments |category: |Views: 297

tags: another