Tag | ASP.NET Posts

Since installing Option Pack 4 for Windows NT to get IIS running Classic ASP, we have all felt the lack of ease from Microsoft to actually create websites on a developer box. There has always been an expressed need to not need a custom configured machine to install Visual Studio and create web sites right away. Why must we open Windows Configuration and add all these pieces if a solution for our OS could be added to the development product line. My first development job was 10 years ago when I worked ...
Microsoft disgusts me. Out-of-the-box Asp.NET assumes that Google Chrome and Apple Safari are not "modern" browsers. In order to make use of some of the Asp.NET web controls with those browsers, you need to modify your web application (or the machine.config and GAC on every server in your web farm). This is simply inexcusable. This could have easily been corrected with a patch years ago, yet Microsoft forces all of us web developers using Asp.NET to modify every one of our web applications to work ...
OK, Lots of confusion around this pattern. I am also trying to wrap my head around this pattern and wanted to present what I have learned so far as well as my favorite links on the subject. I’m also working on a sample program that is from start-to-finish. Model View ViewModel is usually called: MVVM PresentationModel or just the plain ViewModel It is just an architectural pattern for Silverlight of WPF. It is designed to allow Designers to focus on the user experience instead of the business logic. ...
Recently we upgraded Web Farm web site to ASP.Net 4. We studied .NET Framework 4 Migration Issues and, fortunately, didn't found any serious issues, related to our site. Before all sites will be converted to .Net 4, for forms authentication cookies to work across .NET Framework versions, we've added <system.web> <machineKey validation="SHA1" /> </system.web> Tests were successfull on single computer, but when we started to test new version on Web Farm, we started to see intermittent ...
We at Tellago, Inc. had recently open sourced first version of BizTalk Data Services by Jesus Rodriguez and ESB ToolKit 2.0 Extensions by Dwight Goins on Codeplex. The BizTalk Data Services was more about based on Querying, Browsing for BizTalk Artifacts via RESTful interface. Today we have a new release for the BizTalk Data Services which is an extension of the earlier release. The new release v0.6 contains: · IUpdatable · Enabling and Disabling Receive Locations · Starting and Stopping Send Ports ...
Let’s develop a SharePoint WebPart for executing BAM SSIS Packages. The SharePoint site can be on remote server other than the BizTalk Database Server. This won’t be a fancy UI WebPart, just a basic dropdown to select a BAM SSIS Package and execute it. ;-) The approach I am used is of using a asp.net User Control hosted as a sharepoint webpart. There are bunch of different ways you can develop Sharepoint webpart. This is just one of them and easier one. Less error prone and easily debug able. · Create ...
It seems like typed datasets provide the same type of object layout as the entity framework. What's the difference and why should I use one or the other? We'll start at the fundamental difference: DataSets give you a basic in-memory database that you can query and fill from a data source such as a database. Queries against datasets are executed against in-memory data. Entity Framework gives you a translation layer that translates LINQ queries to your database's SQL dialect. Queries against the EF ...
In this Issue: Martin Naughton(-2-), Antoni Dol, SilverLaw, Jeff Handley, Pete Brown, and Ozymandias. Shoutout: snoutholder at the Silverlight SDK announced Get Started with Silverlight (New QuickStart Articles) From SilverlightCream.com: Silverlight Business Application Themes - ErrorWindow Issues Martin Naughton has a post up discussing Themes in RIA Services and problems with the new themes. He has those problems fixed and zipped up, plus a fix for binding to text resources and a change for the ...
Technorati Tags: asp.net Logging is an essential tool in every developer's arsenal. It helps the developer to identify problems faster by showing the state of an application at any given point. It is important after deployment, when admins have are the logs that are generated by your application. So it is absolutely necessary to be equipped with a logging framework which is easy to set up, easy to use, and extensible. For logging service my choice is log4net from Apache Software Foundation. It is ...
This question has come up a lot in recent weeks as early adopters move from prototyping with the platform to actually needing to deliver real applications. Whilst fundamentally you are using the same approaches and best practices for the Windows Azure Platform as you would use for a Web application or service (A good IIS7/ASP.NET based architecture is likely a good Windows Azure Platform architecture), there is still plenty of differences which impact on architecture. The good news is we are now ...
Technorati Tags: ASP.NET,ASP.NET MVC I wish I had discovered this before part 19. I've got some catching up to do… Evan Nagle's working / blogging / joking / cartooning his way through building an ASP.NET MVC 2 web site in what looks like the .NET world's answer to Why's (Poignant) Guide to Ruby: http://www.weirdlover.com/2... Looks like a bit more entertaining ride than NerdDinner or the Music Store ...
Videos of presentations from NDC 2010 are now available at: http://streaming.ndc2010.no... It looks like there are about 48 available. I'm particularly looking forward to: Mads Torgersen: "C# Quo Vadis?" (followed by a discussion on the future of C# with Mads, Eric Lippert, Gafter and Jon Skeet) Roy Osherove: "Beautiful Teams & Leaders" Greg Young: "5 reasons why projects using DDD fail" Jon Skeet: "If I Ruled the World - C# 5.0 According to Jon" Eric Evans: "What I've learned About DDD Since ...
Many times in the Career advice section at http://www.dotnetfunda.com/... we are asked this question What are the essential skills for a web developer? Rather than posting/reposting time and again, thought of writing a post about it. This post details what according to me and some of the well established people I know think about essential skills that a web developer should posses. You can find similar entry at Essential Skills for Web Developer in 2010 HTTP/TCP protocol from a very high overview ...
This week I had cause to check the rule on event log uniqueness. I was aware that only the first 8 characters were treated as unique. Did this rule still apply or did Windows Server 2008 relax the rule? I looked up my FAQ on forums at http://forums.asp.net/p/133... and found the catchall MSDN forum at http://social.msdn.microsof... You can see the thread of my question at: http://social.msdn.microsof... ...
Technorati Tags: .NET,Kansas City Thanks to the KC development community for a great free event. The Johnson County Community College provided very nice facilities. I’m the sort of guy who would willingly drive 4+ hours each way for a free XL (or “developer medium”, as Richard Campbell calls it) T-shirt, but got a lot more than that out of the event. Here's a recap of the sessions I attended: Why Kanban? speaker: Troy Tuttle Troy is a “pragmatic agilist” at AdventureTech (not AdventureWorks – I was ...
Technorati Tags: ASP.NET,ASP.NET MVC,MvcContrib I started looking at the MvcContrib grid earlier this week, and it looks promising. At the Kansas City Developer’s Conference today, Javier Lozano showed a demo using JqGrid. When I asked Javier about JqGrid, he said I might want to look at Telerik’s ASP.NET MVC Extensions Grid. Any recommendations would be welcome. (If you can give me a grid comparing the capabilities of each, that would be great ;) ...
It has been another fantastic year for TechEd North America. I always love my time here. First, I have to give a huge thank you to Ineta for giving me the opportunity to work the Ineta booth and BOF’s (birds of a feather). I can not even begin to list how many fantastic leaders in the .Net space and Developers from all over I have met through Ineta at this event. It has been truly amazing and great fun!! New Orlean’s has been awesome. The night life is hoppin’. In addition to enjoying a few (too ...
This list is in no particular order. Just the 10 best programming podcast that I have found so far. Stack Overflow Podcast - Jeff Atwood (of codinghorror.com) and Joel Spolsky (of joelonsoftware.com) discuss the development of their new programming community, StackOverflow.com. [This Podcast hasn’t been updated in a while, but its always great to hear more from Jeff Atwood] Hanselminutes - Hanselminutes is a weekly audio talk show with noted web developer and technologist Scott Hanselman and hosted ...
I'm in the process of evaluating how my team will upgrade our product from .NET 3.5 SP1 to .NET 4. I expected the upgrade to be pretty smooth with very few, if any, upgrade issues. To my delight, the upgrade wizard said that everything upgraded without a problem. I thought I was home free, until I decided to build and run the application. A big problem was staring me in the face -- I couldn't log on. Our product is using a custom ASP.NET Membership Provider, but essentially it's a modified SqlMembershipProvider ...
Register now at http://www.stlouisdayofdotn... The Date This year's conference will be held on Friday and Saturday, August 20-21, 2010, at the Ameristar Conference Center in St. Charles, Missouri. Sessions will begin at 8:00 a.m. and run through 4:30 p.m. on both days. Registration and sign-in will open at 7:00 a.m. on Friday morning, and will run throughout the event. The Venue Based on the almost unanimous feedback from last year's event, we are very excited to bring our conference ...
When I was working on the TalentOn project (Promotion in MSDN Chinese) I was asked to implement a functionality that makes the top menu items highlighted when the currently viewing page was in that section. This might be a common scenario in the web application development I think. Simple Example When thinking about the solution of the highlighted menu items the biggest problem would be how to define the sections (menu item) and the pages it belongs to rather than making the menu highlighted. With ...
While i was trying to setup some reports on a SPF 2010 site. After trying to add a Sql Reporting Webpart i get the error: Session state has been disabled for ASP.NET. The Report Viewer control requires that session state be enabled in local mode I never came across that error before when using RSWebaprts in Sharepoint 2007:) But i think is related to ASP.NET sessions state:( Any to fix it you would have to start to make sure the SharePoint Server ASP.NET Session State Service is enabled. Unfortunately ...
Technorati Tags: ASP.NET,ASP.NET MVC,localization In my last post, I talked bout creating a custom class inheriting from System.ComponentModel.Displ... to retrieve display names from resource files: [LocalizedDisplayName("Reme... public bool RememberMe { get; set; } That’s a lot of work to put an attribute on all of my model properties though. It would be nice if I could intercept the ASP.NET MVC code that analyzes the model metadata to retrieve display names to make it automatically ...
Technorati Tags: ASP.NET,ASP.NET MVC,localization The ASP.NET MVC HTML helper methods like .LabelFor and .EditorFor use model metadata to autogenerate labels for model properties. By default it uses the property name for the label text, but if that’s not appropriate, you can use a DisplayName attribute to specify the desired label text: [DisplayName("Remember me?")] public bool RememberMe { get; set; } I’m working on a multi-language web site, so the labels need to be localized. I tried pointing ...
MVC 2 includes an attribute for model metadata called the HiddenInput attribute. The typical usage of the attribute looks like this (line #3 below): 1: public class PersonViewModel 2: { 3: [HiddenInput(DisplayValue = false)] 4: public int? Id { get; set; } 5: public string FirstName { get; set; } 6: public string LastName { get; set; } 7: } So if you displayed your PersonViewModel with Html.EditorForModel() or Html.EditorFor(m => m.Id), the framework would detect the [HiddenInput] attribute metadata ...
After more time than I care to admit I have finally released a rudimentary Http Handler for serving compiled CoffeeScript from Asp.Net applications. It was a long and painful road but I am glad to finally have a usable strategy for client-side scripting in CoffeeScript. Why CoffeeScript? As Douglas Crockford discussed in detail, Javascript is a mixture of good and bad features. The genius of CoffeeScript is to treat javascript in the browser as a virtual machine. By compiling to javascript CoffeeScript ...
While ASP.NET provides an event base approach it is completely dismissed when working with AJAX and the richness of the server is lost and replaced with JavaScript programming and couple with a very high security risk. Visual WebGui reinstates the power of the server to AJAX development and provides a statefull yet scalable, server centric architecture that provides the benefits and user productivity of AJAX with the security and developer productivity we had before AJAX stormed into our lives. "When ...
La protección de las aplicaciones es un elemento que no se puede dejar por fuera cuando se elabora un sistema. Cada parte o elemento de código que protege nuetra aplicación debe ser cuidadosamente seleccionado y elaborado. Una de las cosas comunes con las que nos topamos en asp.net cuando deseamos trabajar con usuarios, es con la necesidad de poder redireccionarlos a los distintos elementos o páginas dependiendo del rol. Pues precisamente eso es lo que haremos, vamos a trabajar con el Web.config ...
so i figured this one out, as a newcomer to the web development scene from the telecom biz, where we dealt with low level hardware API's, and a C++ fanboy, i tend to be bothered by automagical code, yes i appreciate the effort that went into it, and i certainly appreciate the luxury it provides to get more things done, but i just don't get it. so i decided to change that, and start investigating the new MVC based web apps, and at first it was like hitting a brick wall, i knew MVC from MFC days, so ...
I've created my own version of UnhandledExceptionModule independantly of codePlex project in 2007, I've used code from http://support.microsoft.co... with considerations from http://www.eggheadcafe.com/... and done some refactoring. It also allows to use AppSettings["EventLogSource... The zip file also includes TestUnhandledExceptionWAP test project, that I used to investigate issue legacyUnhandledExceptionPolicy enabled="true" doesn't prevent ASP.NET application restarting ...
I am scheduled to give a presentation at the Miramar .Net User Group on July 13, 2010 about MVC and the new features in MVC2. This will be similar to the talk I gave a few days ago at the LI .Net User Group in NY, yet will have more advanced content since the Miramar .Net User Group already had an introduction to MVC in a previous meeting. Here is the topic and speaker bio: What's New in MVC2 We will start by briefly reviewing the basics of the Microsoft MVC Framework. Next, we will look at the new ...
Tomorrow, June 12th will be the NoVa Code Camp 2010.1 held at the Microsoft Technical Center in Reston, VA. What’s in store? Lots of great topics by some truly knowledgeable speakers from the mid-Atlantic region. This event will have four talks alone on Azure, plus sessions ASP.NET MVC2, SharePoint, WP7, Silverlight, MEF, WCF and some great presentations centered around best practices and design. The schedule can be found at: http://novacodecamp.org/Rec... ...
Welcome Readers!, I am starting out a new series on ASP.NET MVC skill building which will be posted over the next couple of weeks. Let me know your thoughts on the content, which I have planned and a couple of them has been taken from ASP.NET MVC2 Cookbook. (NOTE: Only the heading has been taken, the content will be not :)). Do let me know what you would like to see, or any additional inputs or ideas to cover in this topics. The 30 steps are oultined below for quick reference. Will start filling ...
This evening I had the pleasure of reading one of ThomasP’s blog posts on first class events. It was an excellent read, and I thought I would make a brief derivative of his post to explore some of the basics. In Thomas’s post he has a form with an ellipse on it that when he clicks on the ellipse it pops up a message box with the button clicked… awesome. Something that got me on the post though was the code similar to the one below… // React to Mouse Move events on the form let evtMessages = frm.MouseMove ...
In this Issue: Miroslav Miroslavov, Chris Klug, Beau, Christian Schormann(-2-), Dan Wahlin, Pete Brown, Michael S. Scherotter, Philipp Sumi, Andy Wigley, and Phil Middlemiss. Shoutouts: Mark Tucker set about learning Caliburn, and in the process is writing a Caliburn Book: Chapters 1-3 Jesse Liberty has a great link-laden post up about why we should all be learning/using Blend: Why Developers Should, Must, Do Care About The New Expression Blend be sure to read what he says about WP7 development, ...
The question came up today if we could use an “app_offline.htm” file along with HTML in that file that would reference images. First, I wasn’t 100% sure if the app_offline.htm would work, but it sure did. Since it’s just the Asp.net hosting process that detects the file, it circumvents loading any HttpApplications (SharePoint) beyond just serving up the HTML content. The second question was about having something more than text, specifically <img> tags. So, since the HttpHandlers are taking ...
In my previous blog I wrote an introductory post on services and how you can build services using the .NET frameworks Windows Communication Foundation (WCF) In this post I will show how to develop a real world application using WCF The problem During the last meeting we realized developers in Uganda are not so cool – they don’t use twitter so may not get the latest news and updates from the technology world. We also noticed they mostly use kabiriti phones (jokes). With their kabiriti phones they ...
Technorati Tags: ASP.NET,ASP.NET MVC,T4MVC I’m working on my first ASP.NET MVC project, and I really, really like MVC. I hate all of the “magic strings”, though: <div id="logindisplay"> <% Html.RenderPartial("LogOnUs... %> </div> <div id="menucontainer"> <ul id="menu"> <li><%=Html.Action... Dinner", "Index", "Dinners")%></li> <li><%=Html.Action... Dinner", "Create", "Dinners")%></li> <li><%=Html.Action... ...
Technorati Tags: .NET,ASP.NET,localization I have several related projects that need the same localized text, so my global resources files are in a shared assembly that’s referenced by each of those projects. It took an embarrassingly long time to figure out how to have my .resx files generate “public” properties instead of “internal” so I could have a shared resources assembly (apparently it was pretty tricky pre-VS2008, and my “googling” bogged me down some out-of-date instructions). It’s easy ...
I have come across 2 issues with deploying WCF services in a Silverlight solution, admittedly the one is more of a hiccup, and only occurs if you take the easy way out and reference your services through visual studio. The First Issue This occurs when you deploy your WFC services to an IIS server. When browse to the services using your web browser, you are greeted with “This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.”. ...
In this Issue: Michael Washington, Alan Beasley and Michael Washington, Miroslav Miroslavov, Max Paulousky, Teresa and Ronald Burger, Laurent Duveau, Tim Heuer, Jeff Brand, Mike Snow, and John Papa. Shoutouts: To pay homage to the Advanced Options button in Expression Blend, Adam Kinney posted: Expression Blend Advanced Options square wallpaper SilverLaw stood his drag and drop ripple on it's head for this one: Silver Soccer - A Case Study for the Flexible Surface Effect (Silverlight 4) From SilverlightCream.com: ...
I just got email notification that ASP.NET MVC2 in Action is complete. I had signed up for the Manning Early Access Program (MEAP), which allowed me to reserve a hardcopy of the book, a PDF of the completed chapters, and the PDF of the entire version 1 (ASP.NET MVC in Action) book all for $49.99. I’m working on my first MVC application, and it’s been a big help so far. Congratulations to Jeffrey Palermo, Ben Scheirman, Jimmy Bogard, Eric Hexter, and Matthew Hinze for completing what looks like a ...
The opinions mentioned herein are solely mine and do not reflect those of my employer Wanted to post this for a long time but couldn’t. I have been an ASP.NET Developer for quite sometime and have worked with version 1.1, 2.0, 3.5 as well as the latest 4.0. With ASP.NET 2.0 and Visual Studio 2005, came the era of AJAX and rich UI style web applications. So, ASP.NET AJAX (codenamed “ATLAS”) was released almost an year later. This was called as ASP.NET 2.0 AJAX Extensions. This release was supported ...
The .NET Framework version 4 includes enhancements for ASP.NET 4 in targeted areas. Visual Studio 2010 and Microsoft Visual Web Developer Express also include enhancements and new features for improved Web development. This document provides an overview of many of the new features that are included in the upcoming release. This topic contains the following sections: ASP.NET Core Services ASP.NET Web Forms ASP.NET MVC Dynamic Data ASP.NET Chart Control Visual Web Developer Enhancements Web Application ...
ERB is the default view templating system used by Ruby on Rails. Haml is an alternative templating system that uses whitespace to represent document structure. The example from the haml website shows the following equivalent markup: Haml ERB #profile .left.column #date= print_date #address= current_user.address .right.column #email= current_user.email #bio= current_user.bio <div id="profile"> <div class="left column"> <div id="date"><%= print_date %></div> <div id="address"><%= ...
This walkthrough describes how to convert a Visual Studio .NET 2002 or Visual Studio .NET 2003 Web project to a Visual Studio 2008 Web application project. The Visual Studio 2008 Web application project model is like the Visual Studio 2005 Web application project model. Therefore, the conversion processes are similar. For more information about Web application projects, see ASP.NET Web Application Projects. You can also convert from a Visual Studio .NET Web project to a Visual Studio 2008 Web site ...
Technorati Tags: .NET,WatiN,testing In addition to my automated unit, system and integration tests for ASP.NET projects, I like to give my customers something pretty that they can look at and visually see that the web site is behaving properly. I use the Gallio test runner to produce a pretty HTML report, and WatiN (Web Application Testing In .NET) to test the UI and create screenshots. I have a couple of issues with WatiN’s “CaptureWebPageToFile” method, though: It blew up the first (and only) time ...
I had a really fun evening doing “my final” EF 4.0 session last night (26th May 2010) at GL.NET based out of Gloucester (although secretly I made it into a IronRuby and Windows Azure session). They are a great crowd and Jimmy makes for a fantastic host + it is a very nice venue (Symantec offices in Gloucester, lots of parking, good room etc) + free pizza + free SWAG + trip to pub afterwards (the topics were very varied!). What more could you ask for? The next session is June 16th and will be on multi-tenanted ...
It has really been a head scratching task for me. I 've tried many options but nothing worked. Finally I found a workaround on google to achive this by TaskScheduler. PROBLEM When we run Teamsite user administration command line tool IWUSERADM.exe though ASP.Net it gives following error: Application popup: cmd.exe - Application Error : The application failed to initialize properly (0xc0000142). Click on OK to terminate the application. CAUSE No specific cause, it seems to be a bug, supposed to be ...