Tag | ASP.NET Posts

HTML5 introduces markup-level functionality for rich graphics, animation and web multimedia. It also supports a richer web application functionality and extends the client capabilities with local storage. Many pundits see it as the next generation web - web 3.0 if you like - and an open standard replacement for propriety plug-ins, Microsoft Silverlight and Adobe Flash. But, for all its new features, HTML5 is still only the end product. This article looks at HTML5 from the web programmer's point of ...
I had a major problem this week with an MVC app. All of a sudden, all the styles and images stopped working. Man, I spent hours on this trying all sorts of stuff. I setup a new project and stuff worked. So what the heck is up. Then I started playing around one item at a time to figure out what was going on. Eventually I thought, hm, I was working on debugging routes. So lets try the global.asax file items. Well, a line of code was lurking there that I picked up from the route debugger sample (http://haacked.com/archive... ...
Here’s a quick start introduction to the ADO.NET Entity Framework Code First Development Pattern. For a more complete (but still intro) walkthrough, check out ScottGu’s blog. At the time of this writing, you’ll need the EF 4.1 Release Candidate. After EF 4.1 is released you’ll no doubt be able to find it on the ADO.NET team blog. 1. Create a new empty ASP.NET MVC2 Web Application, add a reference to System.Data.Entity. If using the EF4.1 RC - add a reference to the EntityFramework dll that comes ...
Last week, I was interviewed by Zandra Nilocas from Microsoft Philippines. It was my first time experience to talk about something in front of the camera so it's not surprising that I looked like an idiot in that interview (you know swiveling my chair back and forth without noticing it). Anyway in the interview we talked about ASP.NET WebForms, MVC and Web Matrix in general and just to elaborate a bit of what we talked about and to clarify things out, I have decided to write this post... WebForms ...

In one of my project we had a scenario where we have to update a multi select choice column in sharepoint list from out client application. The asp.net way of comma seperated way was tried but didnt work for us. After lot of trial and error we found that the value should can updated as a string array.

oList["MultiChoiceColeName"] = new string{"FirstVal", "ThirdVal", "lastVal"};

Today's $10 Deal of the Day from Apress at http://www.apress.com/97814... is Pro ASP.NET Extensibility gives readers an in-depth insight in the new language model within ASP.NET, going beyond the introductory treatment of the topic available elsewhere by providing lots of practical tips and tricks from an experienced developer ...
Thanks to everyone who attended my session at Philly Code Camp 2011.1. It was a very fun and interactive session for me, and I hope it was an informative and helpful session for you as well. I apologize for the delay in getting the presentation materials uploaded since I was busy catching up with work from last week this morning. The Database backup file (.bak) included in the zip file will have to be restored on your SQL Server. Please let me know if anything doesn't run (or) compile or you are ...
In February I did a post about moving to DiscountASP.Net TFS Hosting from SVN. I promised to give some feedback a few months later to say how we were finding it. Well, it has been 2 months and no headaches yet. So far we have been running 5 projects on TFS on DiscountASP.Net service with work items / bug items and web access and the service has been 100% stable. So good job DiscountASP.Net If anyone is interested in finding out more about their hosting solutions I am quite happy to give them a plug ...
NB: an improved version of this module is here. Today I wanted to build something into an ASP.NET MVC application to impose a size limit on uploaded files. I wanted to: Use an HttpModule so I could get at the upload before any Controllers got involved, and Redirect the request if the file was too big I did this without much fuss, but the redirect ended up at an ASP.NET "Maximum request length exceeded" error page. I found this solution using custom error pages on Stackoverflow, and this one reading ...
In this Issue: Michael Crump, Jeremy Likness, Matthew Delisle, Xianzhong Zhu, Nigel Sampson, Jeff Prosise(-2-), Andrea Boschin, Mike Ormond, Jeff Wilcox, and Bil Simser. Above the Fold: Silverlight: "Silverlight Scaling and Anti-Aliasing Issues" Jeremy Likness WP7: "AgFx Windows Phone App and Data Caching Framework" Jeff Wilcox Shoutouts: The tool Mike Ormond discussed in a post listed below is WP7 Screenshot Tool by Cory Smith DiscountASP.NET has a post up about the latest SQL Injection attack going ...
Full Disclaimer: Since I am on the GeeksWithBlog.NET Influencer list, I was issued a free 1-year subscription to DiscountASP.NET TFS2010 remote hosting. With that said, the thoughts/opinions located below are my own. I’ve always like Team Foundation Server. The main thing that I’ve hated about it was installing/maintaining it. I’d rather spend that time learning more about things such as Silverlight/WPF/WP7. I really didn’t know what to expect as we use another source control at work and I’ve never ...
In the run up to Microsoft’s MIX conference, next week in Las Vegas, a new post on the Silverlight Team Blog from Microsoft Developer Division VPs Walid Abu-Hadba, Scott Guthrie and Soma Somasegar prov ides new clarification of Microsoft’s position on Silverlight and HTML 5. Read the post and interpret it for yourself. My take is this: given the current landscape of Smartphone and tablet OSes, only HTML 5 can let you reasonably target all of them, so Microsoft’s going to bring you greatly improved ...
There has been quite a furore in the last couple of weeks about a blog article published by David Barrett entitled "CEO Friday: Why we don’t hire .NET programmers". You can find it at http://blog.expensify.com/2... Along with about half the global development community, I tried to post a response, but comments were already closed. I had all but forgotten the article until, a few minutes ago, up popped a daily .NET newsletter with a headline linking ...
Few months ago I wrote a series of articles regarding how to Insert, Update, Fetch and Delete data in the form using LINQ to SQL. You can view the series of articles below: Inserting Data to Database using LINQ to SQL Fetching Data from Database and Populating fields in the Form using LINQ to SQL Editing, Updating and Deleting Data in the Form using LINQ to SQL In this article I'm going to demonstrate the basics on how to work with MS Entity Framework. Basically in this part I'm going to show you ...
I had an ASP.NET MVC project with URLs like this: Customers/customerX (the details page of Customer 'customerX') ...defined by this route in RouteTable.Routes: RouteTable.Routes.MapRoute( "CustomerDetails", "Customers/{customerName}", new { controller = "Customers", action = "Details" }); ...and leading to this action method: CustomersController.Details... customerName); I then found the appropriate Customer object in the action method, and creates a ViewModel for the Details View. The thing ...
Today's $10 Deal of the Day from Apress at http://www.apress.com/ecomm... is Pro ASP.NET Extensibility Pro ASP.NET Extensibility gives readers an in–depth insight in the new language model within ASP.NET, going beyond the introductory treatment of the topic available elsewhere by providing lots of practical tips and tricks from an experienced developer ...
I'm just getting to grips with MVC linq etc etc and came across what looks like a common stumbling block. For the more experienced of you reading this please refrain from shouting "Dumbass" at me. All the tutorials are either Code First examples or they create the database from scratch in the App_Data directory. All well and good for a tutorial that need to be easily portable to the readers computer, but not very helpful when setting up a full scale MVC application. My first problem was my lack of ...
In this Issue: Michael Washington, Michael Crump, Alex Knight, Benjamin Roux, Nigel Sampson, and Jeff Prosise(-2-). Above the Fold: Silverlight: "[Silverlight] How to watermark a WriteableBitmap with a text" Benjamin Roux WP7: "My 10 tips for designing phone apps" Alex Knight Lightswitch: "LightSwitch and HTML" Michael Washington From SilverlightCream.com: LightSwitch and HTML Michael Washington's latest Lightswitch post is up on CodeProject... and he's creating an ASP.NET page that communicates ...
This article is Part 2 of the series “Producing and Consuming OData in a Silverlight and Windows Phone 7 application.” Producing and Consuming OData in a Silverlight and Windows Phone 7 application. (Part 1) – Creating our first OData Data Source and querying data through the web browser and LinqPad. Producing and Consuming OData in a Silverlight and Windows Phone 7 application. (Part 2 ) – Consuming OData in a Silverlight Application. Producing and Consuming OData in a Silverlight and Windows Phone ...
I recently had the pleasure of being the guest on Joe Stagner’s podcast. We discuss several new technologies in the Microsoft technology stack including the new WCF Web APIs, MVC 3, and more. We also talk about being a Microsoft MVP and working for a Managed Microsoft Gold Partner. The direct link to the podcast is: http://www.msjoe.com/2011/0... Thanks to Joe for having me on the show ...
In this Issue: Michael Wolf, Colin Eberhardt, Kunal Chowdhury, Benjamin Roux, Nigel Sampson(-2-), Jeff Prosise(-2-), Jeremy Likness, and Beth Massi. Above the Fold: Silverlight: "Useful Value Converters" Nigel Sampson WP7: "A Smarter TextBlock Control for WP7" Michael Wolf More WP7: "Metro In Motion Part #2 – ‘Peel’ Animations" Colin Eberhardt From SilverlightCream.com: A Smarter TextBlock Control for WP7 Michael Wolf's latest post is about a "Smart" textbox for WP7, meaning if it looks like a phone ...
Back in August I blogged about an issue I was having with VS.NET 2010. I had installed it on a clean pave of Windows 7 64-bit, but I was getting weird issues with the designer for ASP.NET and I couldn’t add EF files into my projects. The weirdest part was that when I went to the properties of my project, the framework version drop list was empty…no frameworks, 2, 3, 3.5, or 4, were listed! Now to be sure, my graphics above are tongue in cheek, and the VS.NET team has actually been fantastic in reaching ...
I’d like to invite you to a set of 2 webinars targeted for Visual WebGui newbies and beginners as part of the new completely free evaluation program for the Visual WebGui Experience. Visual WebGui (VWG) has gained its fame for its simplicity that lets core Microsoft developers, develop rich ASP.NET Ajax based Web, Cloud or Mobile applications just the way they are used to developing desktop .NET apps. With over 200,000 .NET developers that have adopted Visual WebGui to write over 35,000 VWG applications ...
In this Issue: Pontus Wittenmark, Vikram Pendse, Paul Sheriff, Nokola, Peter Kuhn, Jesse Liberty, and WindowsPhoneGeek. Above the Fold: Silverlight: "That Time App" Pontus Wittenmark WP7: "New Fantasia Painter, Windows Phone 7 Source Code Pack 1, New License" Nokola Shoutouts: Jesse Liberty announced that he is Keynoting at Pre-Mix ROCK in SoCal ... check out that link and you'll find other folks there as well :) Karl Shifflett announced New Book Available: Developer’s Guide to Microsoft Prism 4 ...
ASP.NET Export n GridViews to Excel Thanks to awesome article by Matt Berseth http://mattberseth.com/blog... http://forums.asp.net/t/152... //Web Page Call to ExcelExport Class protected void lnkExport_Click(object sender, EventArgs e) { //creating the array of GridViews and calling the Export function GridView[] gvList = new GridView[] { gvPlateList, gvPlateDetails }; ExcelExport.Export("Deliver... gvList); } //ExcelExport Class using System; ...
In this Issue: Roy Dallal, Mike Snow, Jesse Liberty, Chris Koenig, John Papa, Jeremy Likness, Michael Crump, Chris Rouw, and Beth Massi. Above the Fold: Silverlight: "Clean Design-Time Friendly ViewModels: A Walkthrough" Jeremy Likness WP7: "WP7 Insights #3: Storing User State - Activating and Deactivating" Chris Rouw Shoutouts: Shawn Wildermuth announced a new version of his "Phoney Tools": Phone Tools v0.6 Released - Breaking Change! ... breaking changes and some new stuff too. Takeshi Eto at DiscountASP.NET ...
UPDATE: Scott Hanselman has a NuGet package to automate many of these steps and you should check it out, http://www.hanselman.com/bl... This is in continuation with Part 1 of the article, so you may want to check it out before reading this, in case you haven’t already. Next, we need to enable the Global.asax. We will open up the Global.asax and add the following two references in the namespaces ...
UPDATE: Scott Hanselman has a NuGet package to automate many of these steps and you should check it out, http://www.hanselman.com/bl... Today, at Tech Ed India 2011, I delivered this session – Web Forms vs. MVC choosing the right one for web development. Although its a tricky topic, it was worth clarifying some of the patterns to decide between Web Forms and MVC. One of the demo scenarios I took ...
ASP.NET MVC provides many built-in HTML Helpers. With help of HTML Helpers we can reduce the amount of typing of HTML tags for creating a HTML page. For example we use Html.TextBox() helper method it generates html input textbox. Write the following code snippet in MVC View: <%=Html.TextBox("txtName... It generates the following html in output page: <input id="txtName" name="txtName" type="text" value="20" /> List of built-in HTML Helpers provided by ASP.NET MVC. ActionLink() - Links ...
The economics of IT is changing rapidly, and organizations are searching to widen and secure availability of their systems and at the same time lower costs which is exactly what the cloud meant to do. Running your systems on Microsoft’s Windows Azure cloud for example would improve and secure the availability, accessibility and scalability (both up and down) of your systems and support the new IT economics. However, in order to take advantage of the cloud's promise of lower cost of ownership, the ...
Employee Info Starter Kit is an open source ASP.NET project template that is intended to address different types of real world challenges faced by web application developers when performing common CRUD operations. Using a single database table ‘Employee’, it illustrates how to utilize Microsoft ASP.NET 4.0, Entity Framework 4.0 and Visual Studio 2010 effectively in that context. Employee Info Starter Kit is highly influenced by the concept ‘Pareto Principle’ or 80-20 rule. where it is targeted to ...
Here is another way to access master page controls. This way has a bit less coding then my previous post on the subject. The scenario would be that you have a master page with a few navigation buttons at the top for users to navigate the app. After a button is clicked the corresponding aspx page would load in the ContentPlaceHolder. To make it easier for the users to see what page they are on I wanted the clicked navigation button to change color. This would be a quick visual for the user and is ...
This post is to report some differences when using MVC or IHttpHandlers if you’re attempting to set the Cache-control : max-age or s-maxage value under IIS7.x using the HttpResponse.Cache methods. [UPDATE]: 2011-3-14 – The missing piece was calling Response.Cache.SetSlidingEx... as follows: context.Response.Cache.SetC... context.Response.Cache.SetM... context.Response.ContentType = "image/jpeg"; context.Response.Cache.SetS... ...
A new release of Microsoft All-In-One Code Framework is available on March 8th. Download address: http://1code.codeplex.com/r... You can download individual code samples or browse code samples grouped by technology in the updated code sample index. If it’s the first time that you hear about Microsoft All-In-One Code Framework, please read this Microsoft News Center article http://www.microsoft.com/pr... or watch the ...
The CommonFilter and CommonData solutions on Codeplex have been updated post VS2010 SP1. The respective URLs are: http://commondata.codeplex.... http://commonfilter.codeple... CommonFilter is a cut-down version of CommonData containing just the filter functions. Common Data contains a vast number of useful functions for building ASP.NET web sites including: Lightweight reporting to a custome event log Filter functions for common types of data input ...
Employee Info Starter Kit is an open source project that is highly influenced by the concept ‘Pareto Principle’ or 80-20 rule, where it is targeted to enable a web developer to gain 80% productivity with 20% of effort with respect to learning curve and production. It is intended to address different types of real world challenges faced by web application developers when performing common CRUD operations. Using a single database table ‘Employee’, the current release illustrates how to utilize Microsoft ...
Ever wanted to have a simple jQuery menu bound with ASP.NET web site map file? Ever wanted to have cool css design stuffs implemented on your ASP.NET data bound controls? Ever wanted to let Visual Studio generate logical layers for you, which can be easily tested, customized and bound with ASP.NET data controls? If your answers with respect to above questions are ‘yes’, then you will probably happy to try out latest release (v5.0) of Employee Starter Kit, which is intended to address different types ...
As a post VS2010 SP1 installation activity, I am recompiling all my open source projects. The first is XHTMLFIX at http://xhtmlfix.codeplex.com/ This LGPL project has simple fixes to ASP.NET 2.0/4.0 to achieve XHTML compliance as measured by the W3C tests at http://validator.w3.org/ The XHTML project shows as untrue the commonly held belief that MVP or MVC are necessary for producing XHTML compliant web pages. Incidentally the other supposed advantage of MVP and MVC over web forms of easier testing ...
With the updates to Windows Azure CDN announced this week [1] I wanted to help illustrate the capability with a working sample that will serve up dynamic content from an ASP.NET site hosted in a WebRole. First, to get a good overview of the capability you can read the Overview of the Windows Azure CDN [2] content on MSDN. When you setup the ability to cache content from a hosted service, the requirement is to provide a path to your role’s DNS endpoint that ends in the path “/cdn”. Additionally, you ...
VS2010 SP1 is now available see: http://www.microsoft.com/do... http://weblogs.asp.net/jgal... Please note the warning: "Note: Do not install this service pack if you have downloaded and installed the stand-alone ‘Microsoft Windows SDK for Windows 7 and .NET Framework 4 (Windows SDK v7.1)’ and you are using the x64 or IA64 compilers that were included ...
For those who are interested: The course looks at the features of the ASP.NET MVC 3 framework, including the new Razor View Engine, the new unobtrusive AJAX features, NuGet Package Management and more.. http://www.asp.net/mvc/plur... Technorati Tags: ASP.NET MVC,ASP.NET ...
Last week I was fortunate enough to spend time in Redmond on Microsoft’s campus for the 2011 Microsoft MVP Summit. It was great to hang out with a number of old friends and get the opportunity to talk tech with the various product teams up at Microsoft. The weather wasn’t exactly sunny but Microsoft always does a great job with the Summit and everyone had a blast (heck, I even got to run the bases at SafeCo field) While much of what we saw is covered under NDA, there a ton of great things in the ...
I was facing a challenge yesterday that I was creating a Visual webpart and I wanted to validate the a submit button is only visible if the user checked a "I agree to terms" checkbox. Something was weired that I tested my code on a normal asp.net website and it worked perfectly while it had a different behaviour inside the webpart which is whenever I check the checkbox, the button is enabled but it will not fire the asp.net validators in client side. It posts back the page and then the validators ...
In the last month or so I have been able to test and experience first hand the offering from discountasp.net for hosted TFS 2010. This first part is a description of the setup process for the account itself and getting some additional information on what you will find through the portal on their site. Not long ago, I posted a little tidbit on hosting TFS. Through it I also did a shameless plug to my employer, our services and the type of hosting we recommend. So, wouldn’t me running on discountasp.net ...
In this Issue: Dennis Doomen, Peter Kuhn, Michael Crump, Joe McBride, Martin Krüger, Jeremy Likness, Manas Patnaik, Jesse Liberty(-2-), WindowsPhoneGeek(-2-). Above the Fold: Silverlight: "A highlighting AutoCompleteBox in Silverlight" Peter Kuhn WP7: "WP7 WatermarkedTextBox custom control" WindowsPhoneGeek Training: "" Shoutouts: Karl Shifflett announced that he and Josh Smith have heard the developers and released a demo: Mole 2010 Demo Released This is a somewhat older post, but the material is ...
If you're like me, you have a hard time keeping up with all the technologies out there. The reality is there's too many new technologies (languages, methodologies, tools, etc). One of the ways I try to keep up with everything is by using good ol' RSS feeds in conjunction with Google Reader. Google Reader is both an online aggregator of RSS feeds, and it also has a good companion app on Google Android. The nicest part of Google Reader for me is the "All Listings" view which gives me a reverse chronological ...
Want to win a trip to TechEd 2011? INETA NorAm is hosting a contest with our partners to see who can build an .NET application making effective use of reusable components to solve a problem. The Rules: Any .NET Application (WinForms, ASP.NET, WPF, Silverlight, Windows Phone 7, etc.) built in the last year (since 1/1/2010) using at least 1 component from at least 1 approved vendor. Then make a 3 - 5 minute Camtasia video showing your entry and describing what component(s) you used and why your application ...
I ran into this little error with MVC where a bunch of errors showed up about __o not declared. This was driving me nuts. Then I ran across this link that solved it. http://stackoverflow.com/qu... So, the solution is to put this into the top of the page like VS does for your site.master. <%-- The following line works around an ASP.NET compiler warning --%> <%: ""%> But what about other pages? Lets say you have a view that’s using your site ...
The Cloud and SaaS models are changing the face of enterprise IT in terms of economics, scalability and accessibility . Visual WebGui Instant CloudMove transforms your Client / Server application code to run natively as .NET on Windows Azure and enables your Azure Client / Server application to have a secured-by-design plain Web or Mobile browser based accessibility. Itzik Spitzen VP of R&D, Gizmox will present a webcast on Microsoft Academy on Tuesday 8 March at 8am (USA Pacific Time) explaining ...
A developer is asking how to select one radio button at a time if the radio button is inside the GridView. As you may know setting the group name attribute of radio button will not work if the radio button is located within a Data Representation control like GridView. This because the radio button inside the gridview bahaves differentely. Since a gridview is rendered as table element , at run time it will assign different "name" to each radio button. Hence you are able to select multiple rows. In ...