Tag | MVC Posts

All right, so it may have been a day or two since my last post. I was hoping I'd have the option to post-date to make it look like I was a much more diligent blogger than I really am, but oh well. Apart from just wanting to look like I blog more regularly than once a quarter, there's actually a lot of material to cover. I'm not sure exactly how I want to accomplish this, so there might be a spate of blogs close together just to cover all the things I've worked on so far and the challenges involved. ...
Well, here we are again. Last time, we talked about project structure and came up with the one we’ll use for this series. Next we’ll talk tools. We’ll talk tools like Tim Taylor talks tools: with lots of grunts for my favorites and only a little explanation about what the tools do.) This is mostly because there is LOTS of material on the interwebs about all of these tools. I tend to favor the tools that are the most widely used for two main reasons: they have been battle tested by the largest crowd ...
This is a part of EXT JS Tutorial In this article I will cover information about creating, submitting and validating a forms with Ext JS library. Submitting form to the server will be based on ASP.NET MVC page, so create a new MVC project in Visual Studio and add a EXT JS library into it. How to do it I have written here. So let’s create our first form. How to create a simple form – first example. var form = new Ext.form.FormPanel({ //(1) renderTo: Ext.getBody(), //(2) url: 'Home/SubmitForm', frame: ...
Commerce Server 2009 was the single biggest upgrade to the Microsoft e-commerce platform in nearly 10 years. A large proportion of the changes are the introduction of a single API covering the multiple business logic implementations required within an e-Commerce site. In former releases business concepts such as inventory, catalogue, order management, user profiling, and marketing had each been separated into their own domain logic and thus each had a unique API which made it difficult for new developers ...
This was originally an email I sent to .NET team in my company, then decided to share as a blog post. The problem: Let’s say you have a complex application, and this application (or part of it) runs very slowly. No bug s in results, no errors or exceptions, but it just so slow! Now you want to know which part of your code is the reason, which method(s) you need to go and modify., which methods take so long to execute or consume so much memory/CPU. How would you know that? Let’s say you want to improve ...
Goal: jQuery AutoComplete in ASP.NET MVC Framework with callback to customize result Platform/Environment: Asp.Net Mvc version 1 jQuery 1.3.2 Autocomplete - jQuery plugin 1.0.2 Quick Solution: Here I am simply returning a list of account names: $('#Name').autocomplete( $('#ajaxListMatchingAccount... { delay: 10, minChars: 3, matchSubset: 1, matchContains: 1, cacheLength: 10, autoFill: true, mustMatch: false, selectFirst: true, max: 15 } ); ajaxListMatchingAccountName... - this is a ...
In this short article I would like to show how to upload an image file to the server using Ext JS library and ASP.NET MVC. First step is create a new ASP.NET MVC project and add to him the Ext JS library. I have written here how to do it. We will use a user extension called Ext.ux.form.FileUploadField to upload a file. It is not included in the library, so add to project these files: - FileUploadField.js - FileUploadField.css Now let’s add a new form with the fileuploadfield field Ext.onReady(function() ...
In a previous post, I showed how to submit an AJAX form in MVC with the jQuery Thickbox and the built-in MVC AJAX helpers. If you read that post first, it will show the complete context for how to simply submit an AJAX form that is being rendered inside a jQuery Thickbox with built-in MVC AJAX helpers. But what if you want to stick to a pure jQuery solution? That is also simple enough to do. Instead of using the Ajax.BeginForm() method, you can use the jQuery Form Plugin. The code is almost identical ...
A relatively common scenario you might want in your application is the ability for a user to click a link that pops up a little dialog to submit some information. For example, let’s say you have this form where the user could click the “Contact this person” link: After clicking this link, it pops up the following dialog where the user can type in their message: Finally, once the user submits their message, it shows a little confirmation: This scenario can be implemented with MVC with very few lines ...
This is a part of EXT JS Tutorial In this part of the Ext JS tutorial I would like to show the Ext.MessageBox class. In the first part, where I showed how to add Ext library into MVC project, I have put there a Ext.Msg.alert to test the installation. Actually the Ext.Msg it is an alias for Ext.MessageBox class. Both can be used interchangeably. Ext.Msg.prompt Ok, so let’s create a first dialog to see how it’s look like. Let it be a Ext.Msg.prompt. This method displays a message box prompting to user ...
This podcast accompanies the August 12th, 2009 edition of the MSDN Flash newsletter. It includes an interview with Mike Ormond discussing the new stuff in ASP.NET 4.0 plus an opportunity to ask Mike “Which are you? MVC or WebForms?”. Other areas discussed in the intro section include the RTM of Windows 7, the UK launch event of Expression 3 and Silverlight 3 plus the results of the poll of how developers scored in the Joel test. P.S. Apologies on the delay in publishing this podcast – but I did have ...
Well, I crashed and burned tonight. I knew the information, but I had one small problem, that kept my demo from working. I added the SchemaNameConvention to the Data project for handling database schemas, and added it to the Fluent NHibernate conventions list. I SHOULD NOT, however, have changed the code for getting the Id of the domain objects. What this does, is it looks at the object and determines, by domain signature attributes, which property mappings need to be mapped as an Id not a property. ...
Ext JS is a very powerful javascript UI library which allows you to create a rich internet applications. Ext JS is very easy in use, in learn and has very intuitive API. Supports all major web browsers (IE, Opera, Firefox, Safari). Starting with this post I would like to initiate a series of articles explaining the nuances of how to use a basics Ext aspects in web developments with ASP.NET MVC and how to create a great-looking user interfaces in web apps. Links to all related articles to this tutorial ...
This is a part of EXT JS Tutorial To successfully carry out everything that has been described in this article you need: Normal 0 21 false false false PL JA X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:Standardowy; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.000... line-height:115%; ...
Speaker Lee Brandt is a Senior Consultant with Adventure Tech Group, Inc. in Overland Park, Kansas. He has been programming professionally for over 10 years and developing solutions in .NET and C# since the early beta releases. He is an advocate for behavior-driven development, design patterns and agile methodologies. Topic Getting Started with S#arp Architecture ASP.NET MVC is all the rage lately. There are also several peripheral projects that compliment ASP.NET MVC development (MVCContrib, NHibernate, ...
In an effort to continually improve as a developer, one of the things I do is read lots of books. Recently I read Rails for .NET Developers by Jeff Cohen and Brian Eng. Overall, I would definitely recommend this book to any ASP.NET developer that wants to learn more about Rails or wants to better understand the concepts behind MVC. Given that ASP.NET MVC was heavily influenced by Ruby on Rails, I wanted to learn more about Rails so that I could have a better understanding of how MVC evolved the way ...
Create a rss or atom feed is very simple in asp.net mvc. In V1.0 there isn’t a build-in mechanism to work with feeds, however we can very quickly build our own. All we have to do is create a xml structure accordance with their specification and new ActionResult derived class to handle the result. But let’s start form beginning. The first of all, we need to create a new MVC project and call it e.g. RssFeed. The data for feeds will be taken from database, so we have to build model. Let’s create a new ...
In my previous blog post, I have discussed about how to get asynchronous JQuery treevew to work with ASP.NET Webservices, and we identified that, to make a successful ASP.NET webservice call using JQuery the request must be POST request, the content type of the request must be “application/json; charset=utf-8”, and the data parameter of the the $.ajax() method must be passed as a string. We also looked at the tweaks that we need to do to the jquery.treeview.async.js file to get that working. However ...
When I wrote the first post in this series, there was tremendous amount of interest generated and also a lot of feedback requesting to post some of the advanced features. Like I said earlier, ASP.NET 4.0 has lots of new features some of them as simple as Page.Title whereas so as big as caching improvements. This post covers one such feature which is Routing in Webforms. Although Routing was available even in .NET 3.5 SP1, (check this excellent post by Phil Haack on implementing Routing in ASP.NET ...
I blogged a while ago about creating a series of posts on building an ASP.NET MVC application. To be honest I had already built one. It took me three months. And I haven’t touched it for about two months, so I thought at least I can share it with you geek readers. The main difference between MVC in Rails and MVC in ASP.NET is that Rails generates the infrastructure from the commands you type, as for the ASP.NET MVC part you are responsible for building the infrastructure. What do I mean when I say ...
So today I poked the proverbial sleeping bear that is the web-dev community by making this statement on Twitter: I'm a day in to using jquery and I'm already questioning why having an abstraction over a script-kiddie language is a good idea. This of course resulted in a flood of tweets in response asking if I was joking, suggesting that I fill my purse for the ensuing fight, and Caleb Jenkins yelling “One Flag”. I think I convinced people to put down the pitchforks and douse the torches (us Canadians ...
Artykul z serii “W dzungli Codeplex” Projekt: ASP.NET MVC Starter Kit Strona domowa projektu: http://mvcmembership.codepl... Typ projektu: Biblioteki + kod zródlowy do bezposredniego uzycia + kod widoków Status projektu: Stable – 07.08.2009, nastepny release przewidywany dla ASP.NET MVC 2.0 (Preview 1/2) Zakres projektu: kontrolek i widoki w postaci platformy do zarzadzania uzytkownikami MembershipProvider i RoleProvider Platforma: ASP.NET MVC 1.0, ASP.NET MVC 2.0 Docelowe uzycie: projekty ASP.NET ...
In two previous posts, I talked about ways to create your own HTML Helper to generate a radio button list. In the first post I leveraged the FluentHtml library to create a table layout. In the second post I switched this to using a div instead of a table. The crux of the issue was that I wanted to make sure the the “id” and “name” attributes were set correctly and MVC out of the box doesn’t seem to do this properly. Recently I discovered a way to successfully do this without “wrapping” the FluentHtml ...
Suppose you have a simple sequential screen flow in your application like this: One typical scenario for this is that each screen has its own associated Controller (for the example we’ll say Controller1, Controller2, etc. but obviously they would have meaningful names in the real world). When the user submits Screen1 then the code Controller 1 will have something like this: 1: return this.RedirectToAction("Index", "Controller2"); In fact, each controller would have to have code like this that essentially ...
Jestem programista .Net. I jestem programista wygodnym. Lubie poswiecac czas na szukanie narzedzi, które w przyszlosci pozwola mi oszczedzic czas. No i najwazniejszym pytaniem jest oczywiscie – czy to jest oplacalne? Czy wiecej czasu zaoszczedze uzywajac tych narzedzi/projektów/przydatnych kodów zródlowych, niz strace na ich wyszukiwanie? Do tego trzeba tez doliczyc obciazenie spowodowane przystosowaniem do nowych technologii i poswiecenie jednego projektu na pastwe losu (bo zawsze moze sie nie udac ...
As predicted, I came around to using some radio buttons. As you might guess by now, I didn't like the HTML or the implementation in the current MVC release. As you may expect, I wrote my own :-) The implementation is fairly simple and straightforward. It extends System.Web.MVC.ViewPage, takes a list of objects, allows for selection of one of the radio buttons, supports orientation and supports selection of both the value the radio button submits and the display string for that item independently. ...
The MVC framework does not come with a built-in RadioButtonList comes standard in ASP.NET web forms. The MVC Futures assembly (which can be downloaded here) does come with this HtmlHelper but there are some issues with it including the ones described here by Elijah Manor. He concludes that the method in the futures assembly isn’t very useful and states, “To get around this I ended up writing a foreach creating individual Html.RadioButton and labels.” However, he did not show the code he wrote to ...
The need As certain as the sun rising tomorrow, there will come the point where you will want to display a list or grid with paging. While many solutions exist, and many component developers are coming in with robust solutions, a simple and satisfactory solution can be created fairly easily. Implementation Why create a pager from scratch? Several reasons: 1) You want to control the pager completely – display, style and all. 2) You don't like the idea of JavaScript paging, which will load your hundreds ...
In this Issue: Ian T. Lackey(2), Shawn Wildermuth, David Anson, Jesse Liberty(2), Scott Marlowe, Gavin Wignall, Brad Abrams, and Robby Ingebretsen. Shoutouts: John Papa's latest article is available in MSDN Magazine: Binary Encoding and Handling Faults in Silverlight 3 Stefan Olson has his own version of: Bugs fixed (or not) in Silverlight 3 RTW David Kelley has announced an MSDN Webcast: geekSpeak: Composite Application Development (Level 200) András Velvárt gave me this link which is a promo for ...
Ogloszenia techniczne dotyczace wszystkich nastepnych postów: uwagi w tekscie, których nie ma w oryginale, oznaczone sa kwadratowymi nawiasami [ ]; tlumaczenia obowiazuje disclaimer. Translation of original post by Phil Haack: / Tlumaczenie oryginalnego posta napisanego przez Phil’a Haack’a: http://haacked.com/archive/... Uwaga! Ten post zostal napisany na podstawie ASP.NET MVC 2.0 Preview 1, a wiec w przyszlosci moga sie zmienic pewne szczególy implementacyjne. ...
In this Issue: Ian T. Lackey, Brad Abrams(2), Naughton(2, 3), Sergey Barskly, René Schulte, Jobi Joy, and Jafar Husain(2). Shoutout: Funny, I was a couple days away from writing Jeff Paries asking if he was ok and yesterday he popped up: We now return to our regularly scheduled program…. ... he's been updating his book... and that's great news! If you read blogs like I do sometimes, you may miss some of the goodness on Jesse Liberty's blog yesterday/today... He is turning up the heat on the new Open ...

Microsoft has released the latest and greatest version of it’s ASP.NET MVC project. Microsoft’s Scott Guthrie has an excellent overview of the new release on his blog.

Are you using ASP.NET MVC in your current web projects? Planning to in the future?

Have a day. :-|

Translation of original post by Scott Guthrie: / Tlumaczenie oryginalnego posta napisanego przez Scott’a Guthrie: http://weblogs.asp.net/scot... Zespól ASP.NET wlasnie opublikowal pierwszy preview nowej wersji ASP.NET MVC – MVC Version 2. Mozesz pobrac go tutaj. Preview 1 dziala w srodowisku .NET 3.5 SP1 i VS 2008, i moze byc zainstalowane równolegle z ASP.NET MVC 1.0 (co oznacza, iz nie pojawi sie miedzy nimi konflikt, a dotad dzialajace ...
Today.. ASP.NET MVC Version 2.0 preview one is release. There are many new features introduced as part of this.. you can download this from Here Support of areas, strong typed UI Helpers, Data Annotation validation are couple of them and many more features are there. To know more about the new features of this, look at scottgu's blog here. In this post you can also download the example application... This Version of MVC works with .NET 3.5 SP1 and VS 2008, and can be installed side-by-side on the ...
In this Issue: Erik Mork, András Velvárt, Don Burnett, Dan Wahlin, Brad Abrams, Imran Shaik, and Andrew Myhre. Shoutout: Terence Tsang has the alpha of his Resource Directory running and I think it looks great: Silverlight Resource Directory - alpha From SilverlightCream.com: MEF and Silverlight Erik Mork's latest SparklingClient podcast is up and he's talking MEF with none other than the man you'd want to... Glenn Block! Discovering Silverlight 3 – Deep Dive into GPU Acceleration András Velvárt ...
Head First Design Patterns Undoubtedly opinions change over time, and seeing as I’ve waited quite a while to review this book from when I began reading it I’ve had time for the book and its concepts to percolate. My final opinion is that this book does offer a good entry level look into design patterns, and for those who take the time to read through this book you will benefit greatly to continue onto its inspiration, the original Gang of Four read, or also onto Fowler’s Patterns of Enterprise Application ...
Seeing that I can use a DataBoundControl such as DataList, and binding it to a source control is achievable – what next? Data bound controls contain various templates. The usual suspects are the item template and alternating template (for a repeating object, with possible varied style), the header and the footer templates (for enclosing HTML pre/post wrap or header / footer effects). Under MVC, all events are out the window. So we're not concerned at all with event hookup. We might want to provide ...
Incorporating the jQuery Grid With ASP.NET MVC Scenario: You have an ASP.NET MVC application and don't want to custom build smart controls like the ASP.NET GridView, ListView, etc, that support sorting and paging, as well as filtering and searching for data, and all of this using Ajax. Solution: The jQuery Grid plug-in. What tools/plug-ins do I need? jQuery version 1.3 and up jqGrid version 3 and up (this post references version 3.4.4) A strong cup of coffee In the past you had to also add the jQuery ...
Last year when MVC was still in CTP, I blogged about using MVC ComponentController and ViewUserControls to render widgets. When MVC CTP4 was released, the ComponentController was eliminated from the framework and the RenderAction() helper method was introduced. Rob Conery has a good post that discussed that here. Despite the ComponentController being eliminated from the framework, I still frequently get questions about the older blog post as well as asking for the code sample to work with the current ...
When I set up my first KiGG site, I was surprised to discover that I had to manually publish articles. I assumed it would be an automated process that would run once a day. Since there are times I may not be able to log into my website, I set about figuring out how to automate the process. I should note that during this process, I didn’t use best practices. I had one requirement: make a program that I can schedule to publish stories on KiGG. I wasn’t really sure what I would need to go about doing ...
Normal 0 false false false MicrosoftInternetExplorer4 st1\:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} ...
Allow me to quote here some emails I sent to the the Dot NET developers group in my company, Injazat, or, as we call ourselves, Ninjazat. I thought it’ll be useful to share some with you as well. · ASP.NET MVC - 20 Hours of FREE Video Tutorials · LINQ FAQ o LINQ FAQ for Newbie’s o LINQ FAQ Part 2 · How we handle application configuration · ScottGu ASPNETMVC Session Video Available Now (Part 1/2 & 2/2) · Web Validation: Best Practices and Tutorials · Building a Single Sign On Provider Using ASPNET ...
Normal 0 false false false MicrosoftInternetExplorer4 st1\:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} ...
Technorati Tags: MVC,ASP.NET,Extension Methods,Html Helper A lot of hype around MVC these days. So, of course, yours truly is working on some project utilizing MVC. While brushing the dust off my raw HTML tag memory and designing the obvious: lists, grids, repeated item displays and the such, I thought "why not use the asp.net controls instead?" For one, most of the ASP.NET data bound controls have a rich site of event post backs to hook up. MVC says: no dice! You can't rely on the event dispatch ...
The scenario: A web app is using the OutputCacheAttribute to set a cache duration for data that has different life spans. The IDE: ASP.NET MVC with Visual Studio 2008 The environment: Web-App on IIS The data that is being retrieved varies greatly in terms of their lifespan: Some data is very static like States, Countries Other data is more fluid, especially during end-user testing, like the load of scripts that have to be fixed occasionally and pushed to production during the day. Especially early ...
Network Monitoring Your web app on the server has plenty of tools and ways to measure performance, as well as tools like SQL-Server Profiler for SQL databases. But how do you trace, track and debug client-side code interactively? The use of alerts has been useful but does not support an interactive way for you to interact with the web-page on the fly. To make matters worse, even if you place some traces into your js code to help find the slow functions, etc, network latency may be another cause of ...
I was going to put this on twitter but it’s a bit longer to tweet. Last week I shared some videos on Google Reader and twitter from Microsoft’s MSDN Chopsticks video website. If you don’t know it, it’s a VERY nice videos website with much content on very interesting topics and very recent products as well as different experience levels of content. http://www.microsoft.com/be... Today, some other friends on twitter noticed the Chopsticks site and were wondering why it doesn’t allow ...
Summary: In this post we will discuss the tooling that is at our disposal and also some of the benefits or not so beneficial features it brings to the table. Content Introduction Tooling Benefits of using it Introduction ASP.NET MVC is Microsoft's way of getting on the MVC wagon. It offers a lot more control over the application you're building, no more WebControls ( personally I never and hope to never have to use it ), pure XHTML as W3C would have you doing anyways. At this moment, and I suspect ...
The ASP.NET MVC framework was just released as a preview when I started to write my first book (ASP.NET 3.5 Social Networking). In the early days of design decisions for my book I was faced with the problem of building with the MVP pattern or the new MVC pattern/framework. At that time there was next to nothing regarding the use of the ASP.NET MVC framework (proper or improper). Shortly after I got started with my project (which I chose to do in MVP) I was asked to do a review for the ASP.NET MVC ...
If you are the minority who have been following my blog from the beginning you would know I am an avid practitioner and developer that centre on Microsoft SharePoint, and associated technologies. So some people may be thinking why write about Commerce Server? Is there any association between this and Microsoft Office SharePoint server (MOSS)? Well the answer is yes and no. In my earlier blog I briefly introduced Commerce Server, and this is hopefully the start of my series of articles introducing ...