Tag | ASP.NET Posts

Todays Deal of the Day from O'Reilly at http://shop.oreilly.com/pro... is CLR via C#, Third Edition at $23.99 "Dig deep and master the intricacies of the common language runtime (CLR) and the .NET Framework 4.0. Written by a highly regarded programming expert and consultant to the Microsoft® .NET team, this guide is ideal for developers building any kind of application-including Microsoft® ASP.NET, Windows® Forms, Microsoft® SQL Server®, Web services, and console applications. You'll ...
What a week it has been! The BUILD Conference just concluded http://www.buildwindows.com... and there were tons of announcements. This is one of the reasons I am passionate about this company. Even when I was outside Microsoft, the momentum and the focus they have on Developer audience simply amazes me and they continue to do it, years later. Windows Developer Preview BUILD is a developer conference which premiered the first Windows Developer Preview bits. Clearly, the developers ...
Do you know what happens when you create a new instance of a class? Why do we need a value type and a reference type? Do you know what is meant when the .NET framework is referred to as a “managed” platform? What is managed versus unmanaged code? Why do we need a .NET runtime? What is a memory leak; is that like an oil leak? All of these are questions that you should be able to answer as a Microsoft developer. If you can’t answer them all, then keep reading as the next series of research blogs that ...
Programming for Metro Metro is the future http://zd.net/rnT9VZ .NET is for old apps. WinRT replaces WPF & WCF. XAML is big. There were no Silverlight sessions. HTML 5 and Javascript ( Blend for HTML) are back in fashion – I wont dwell on this because web apps are (inconsistently) simplistic in concept and over-complex in development. Yes, all those XAML skills are portable, Silverlight (RIP) apps can run as Metro apps with a bit of fidgeting with namespaces – you just need to know what controls ...
The Visual Studio 11 Developer Preview was released to MSDN subscribers yesterday, and will be available in general release tomorrow (9/16). There's way too many new features to list them all here (for all the product highlights go to http://msdn.microsoft.com/e... but here are a few that interest me the most: Enhanced multi-monitor support .NET Framework regular expression syntax in Find and Replace IntelliSense enhancements for JavaScript JavaScript breakpoints ...
In the world of custom web application development a critical component of our success is the hosting environment and services. We can choose to deploy our web applications using 3rd party hosting providers such as GoDaddy.com, Rackspace, DiscountASP.NET, or another provider, or we can choose to deploy to on premise servers either virtual or physical. In either case the web application must be serviced up to consumers by a web server software such as Internet Information Service (IIS), which is included ...
I've been working lately on web application that uses Asp.Net MVC, WordPress and MySQL database. To communicate from .NET code to MySQL database using Entity Framework we installed MySql .NET Connector. It worked fine out of the box on developer's workstations but once deployed to hosted web server application started to throw following error: [NotSupportedException: Unable to determine the provider name for connection of type 'MySql.Data.MySqlClient.MyS... System.Data.Entity.ModelCon... ...
We have a webscraper ASP.Net application, that worked fine on developers and test environments, but didn’t work on some machines with more strict security settings. HttpWebRequest failed with System.Net.WebException: Unable to connect to the remote server It start working when my colleague added the site that application tried to access to his “Trusted Sites” zone using Internet Explorer. What we couldn’t understand, how it affected an application that ran under DIFFERENT account. I didn’t find any ...
The ViewModels in my current project had got quite complex; as well as properties copied from model objects, they increasingly had flags used by Views to know whether to render links or sub-sections. The logic which set these properties was bloating Controllers, so I factored it out into objects which populate all non-editable properties of a ViewModel; ViewModelBuilders. The system has the following components: ViewModels - objects which provide a View with the information it needs to be rendered. ...
Scott Guthrie of Microsoft has blogged about "HTML Editor Smart Tasks and Event Handler Generation (ASP.NET vNext Series)" at http://weblogs.asp.net/scot... Well worth a read! Next version of Visual Studio looks to be keeping up the improvement in developer productivity ...
At http://www.bbc.co.uk/news/t... there is a report on yet another SQL Injection attack. This time it is Nokiia's Developer network. How many other systems are vulnerable to such attack? If you run a Dot Net based web application, run FXCOP to check for vulnerabilities. Can't code withoutPowerful search and navigation in C#,VB, XML, ASP.NET, XAML and more ...
Today, O' Reilly are offering three book deals: 1) JavaScript Web Applications Use discount code: DD388 $13.99 (Save 50%) 2) Programming Microsoft ASP.NET 4 Use discount code: DDGRM $23.99 (Save 50%) 3) Big Data Now: Current Perspectives from O'Reilly Radar Price: FREE! (this third book is not available as a PDF so download one of the following readers) http://www.mobipocket.com/e... https://addons.mozilla.org/... Can't code withoutIn-depth ...

As you know Visual Studio 2011 has got some great features but it seems ScottGu has got some other stuff to show
See the new vNext cool features here
Enjoy the videso too.

Cheers
 

I found a blog post by Davy Brion (one of my favorite bloggers on the ‘net) that spoke about the .NET world’s current state. He mentioned that Microsoft’s products (such as WebMatrix and LightSwitch) are mainly geared toward what he calls “low-end” developers. At the same time, Microsoft is backing off on other products that more experienced and seasoned programmers like, such as IronRuby, IronPython, and the DLR (Dynamic Language Runtime). I certainly agree with some of his points. Applications ...
Today, I was testing a Web site for deployment and encountered the problem described in the subject of this post. However, the process leading up to realizing the true problem was far from clear. This post describes my initial experience, steps I took to isolate the true problem, and what I did to fix it. To put this in context, My project is an ASP.NET 4.0 Website. Bump! While testing, I encountered a System.Web.HttpException with the following message: File does not exist. with the following stack ...
I recently delivered a Zeollar session on Using HTML5 Local Storage in ASP.NET Applications Following it up with a blog post on the contents, since a few mentioned that the code was not better aligned/readable. Local Storage and Offline Web Applications are 2 promising features of HTML5 going around the web apart from the (already tired of?) Videos. Local Storage (persistent storage) is not entirely new since we had cookies ever since sliced bread (or seems to be so). But, the limitation of 4KB on ...
In this Issue: Asim Sajjad, Thomas Martinsen, Johan Danforth, Kunal Chowdhury, Loek van den Ouweland, XAMLNinja, WindowsPhoneGeek, Erno de Weerd, Sumit Dutta, and David Yack. Above the Fold: Silverlight: "Update XAP file" Thomas Martinsen WP7: "WP7 Ad Control and OutOfMemoryException" David Yack Shoutouts: Michael Palermo's latest Desert Mountain Developers is up Den Delimarsky is working on an 'alternative non-approval based Marketplace for Windows Phone': [Weekend coding] MetroPack – desktop Cydia ...
I am a reformed former JavaScript hater. In the 90s and early 2000s I muddled through JavaScript compatibility issues, poor performance and a lack of development & debugging tools. When ASP.NET came out, promising to hide me from the complexity of browser incompatibilities, I fully embraced server-side web development. This approach may have worked in 2002, but it does not today. The world's expectations have been reset by Ajax, Google Maps, mobile web sites, high performance JavaScript engines, ...
Issue: Due to an upgrade from .Net 2, 3.0 or 3.5 to .Net 4.0 or you are starting a new .Net 4.0 project, you may run into this message: A potentially dangerous Request.Path value was detected from the client Or A potentially dangerous Request.Form value was detected from the client Environment: .Net 4.0 MVC 3 (could be MVC 2 also because of the controller/action action filters that are available) Fix: Lets tackle the first issue: A potentially dangerous Request.Path value was detected from the client ...
In my previous post I have shown how we can use a C# function in the XSLT. Now I want to go one step further and use in the transformation the ASP.NET controls along with their events. Let's start from the sample xml data: <files> <file Id="F58C2962-AC0D-4C55-80A8... Name="file 1" Path="D:\Temp\" Extension="iso"/> <file Id="FDC1358E-D9C8-4A70-ABE0... Name="file 2" Path="D:\Temp\" Extension="jpg"/> </files> I want to create a table from it and for each ...
Excited to come speak at JaxCodeCamp this coming weekend, there are many amazing session and speakers! Jacksonville .NET Code Camp - http://jaxcodecamp.com What: All day geek fest focusing on code and not marketing fluff. When: Saturday, August 27, 2011 All day (registration opens at 7:00am) Where: Univeristy of North Florida - 1 UNF Drive, Jacksonville FL 32246 Cost: Free! Sessions will range from informal "chalk talks", hands on labs, to presentations. All are welcome to attend and speak. We will ...
Official Site | Samples | Download | Documentation | Forum | Twitter Introduction jqChart takes advantages of HTML5 Canvas to deliver high performance client-side charts and graphs across browsers (IE 6+, Firefox, Chrome, Opera, Safari) and devices, including iOS and Android mobile devices. Some of the key features are: High performance rendering. Animaitons. Scrolling/Zoooming. Support for unlimited number of data series and data points. Support for unlimited number of chart axes. True DateTime ...
When testing in ASP.NET MVC3, one of the common elements you might want to test is authorization. Although the framework does most of the heavy lifting for ASP.NET Membership and authorization it is still worthwhile to be able to write a test to show that the proper Authorization tag is in place. You might think that it’s as easy as calling the method on the controller with a proper context, but that’s not the case. When you call the methods directly on the controller the authorizations are skipped. ...
There are many reasons that you may want to add email capability to your Windows Phone 7 application. There are a number of ways you can communicate information out from an application. The mechanism for sending email from your WP7 application is the EmailComposeTask API. The difference between this API and the one that you would use for an ASP.NET application is that it opens a screen to allow the user to select an account to use and then creates a message which the user then has to send. This makes ...
Wijmo is an awesome tool from ComponentOne. The goal of this tool is to help us web developers rapidly develop MVC applications with interfaces richer than WebForms. Main Features: 1.Over 30 UI Widgets with everything from interactive menus to rich charts. 2.MVC scaffolding automation. This means that Wijmo generates rich interactive Views and Controllers for your entire Model. Free Trial DownLoad: http://www.componentone.com... In this review we'll take a look at Wijmo ...
Today's $10 Deal of the day from Apress at http://www.apress.com/97814... is Beginning ASP.NET 4 in VB 2010 "The most up-to-date and comprehensive introductory ASP.NET book you'll find on any shelf, Beginning ASP.NET 4 in VB 2010 guides you through Microsoft's latest technology for building dynamic web sites. This book will enable you to build dynamic web pages on the fly, and assumes only the most basic knowledge of Visual Basic. " Can't code withoutInstant VB.NET code generation in Microsoft ...
Download is at http://stylecop.codeplex.co... This is still an "Alpha" release: "Exactly the same rules as 4.5 but built for compatibility wit JetBrains R#6. Current alpha Status Installer working Inline analysis working and underlining the stylecop issues found as you type Context menus working BulbItems working Many QuickFixes from bulbitems working Code cleanup working now Options pane working now" I will try it and report. Passionate aboutOutstanding productivity tool for ASP.NET ...
Part of the fun of being a consultant is that the technology you use changes from day to day. Recently it is WCF which, while knowing the concepts of since it came out I haven’t used up until now. The nice thing is that it really isn’t any harder to develop for than a normal ASP.NET web service. A couple of the attributes change and which project type you start with is different, but it is still message based services. Just like the method of a web service needs a Webmethod attribute a method in ...

At http://weblogs.asp.net/kencox/archive/2010/08/24/fed-up-with-system-data-metadata-edm-objectitemassemblyloader.aspx there is an interestign article about problems encountered with  Entity Framework.

I have a client that desired to have the MOSS 2007 capability of My Links but in no way wanted My Sites in SharePoint 2010. I took some steps that gave them the capability of My Links by creating a personalized web part that could be linked to in a modal. It worked, However, in addition, they didn’t want users without web admin rights to see the SharePoint ribbon. The result was that admins could use the web part and the personalization data would be kept by SQL in the personalization database. Members ...
Everyone has a journey. You start off young & stupid, and 2 decades later, you're closer to understanding the nature of reality. That’s one of the main goals in life, to seek knowledge (justified, true beliefs – pick any 2 J ). I must have read 5000 books in my life. From some of my readings it could be construed that reality computes itself, It from Bit. From others, it can be concluded that Entropy is decreased by increased rates of computation, and in the short span of human civilization, ...
Had a great time again this year at St. Louis Day of .NET. Thanks to everyone who attended my sessions. Based on feedback it seems like I'll need to do a presentation on SQL Server Compact next year. Doesn't seem to be a lot of awareness on this great product. But a lot can change in one year. As promised, the PowerPoint slides and code samples can be found on my SkyDrive here. Here is what you get. Customizing BlogEngine 2 PowerPoint (Slides and notes) How to configure BlogEngine to use ASP.NET ...
Its been a while since I played with Web forms, AJAX stuff. I was curious in checking out, particularly how the AJAX Control Toolkit which used to be my favorite in the past is evolving. There is a new release of AJAX Control Toolkit, just hot off the oven. You can download the binaries from http://ajaxcontroltoolkit.c... Now, while the regular way we have downloaded and used AJAX Control Toolkit is by visiting the above codeplex page and download the latest version, there is also a newer ...
I'm an Asp.Net web developer, but the truth is, I always preferred the MVC than WebForms. Especially what I hate in WebForms is the update panel control. I have always problems with it when I want to use it in my current scenario, so easier to me is to write some jQuery code and do the controls refresh manually. I know that, there are situatios when I can't skip the update panels, so this post is a reference for my future battles. A simple example of one update panel with button and some labels. ...
In this Issue: Kunal Chowdhury(-2-), Mike Talbot, Michael Washington, Davide Zordan, Pontus Wittenmark(-2-), WindowsPhoneGeek, Pete Brown, Dhananjay Kumar, Erno de Weerd, Jesse Liberty(-2-), Peter Torr, Derik Whittaker, and MIchael Crump. Above the Fold: Silverlight: "Creating a Silverlight 5 Helper for ASP.NET MVC3 Razor" Pete Brown WP7: "Page State–Step by Step" Jesse Liberty LightSwitch: "Using the Telerik Rich Text Editor In Visual Studio LightSwitch" Michael Washington Shoutouts: Laurent Bugnion ...
I am a firm believer that, regardless of the framework you use, if the framework is good it provides you all of the things you need. I believe ASP.Net MVC 2 is good and therefore provides me everything I need. This means I don't need to write a significant amount of custom UI code (jQuery, MVC Ajax, etc.) to do things that should be considered "standard". One of these pretty standard things submitting a form via Ajax. MVC provides for this very well with Ajax.BeginForm. The contents of the form are ...
In this Issue: Oren Gal, Oscar Agreda(-2-), Michael Washington, Mike Gold, John Papa, Paul Sheriff, Jesse Liberty(-2-), András Velvárt, and Derik Whittaker. Above the Fold: Silverlight: "here is a Complete Silverlight Business Application using MVVM" Oscar Agreda WP7: "SurfCube on Mango Part 2– The SystemTray" András Velvárt LightSwitch: "WCF RIA Service: Combining Two Tables" Michael Washington Shoutouts: Michael Crump's articles on OData at Silverlight show have been pulled into an eBook: My eBook ...
I often find it hard to convert a date string into the date I desired. I'm not sure is it only me or any of you encounter the same problem before. Whenever I tried to do something like: var myDate = new Date(dateString); I will always get Today's date, instead of the value i stored in the dateString variable. And most of the time, when people show you sample codes on how to make comparison between date string by converting them into Date, it normally won't work for me. One of the reason could be ...
This blog has been relocated to http://blachniet.com. See this post at it's new home: http://blachniet.com/2011/0... is post is meant to be a more straightforward overview of my previous post. The previous post got a little long and turned into a walthrough. If you need a walkthrough of this, check out that post at http://geekswithblogs.net/b... So in my new exploration ...
This morning I got the information that the Windows Azure Tools for Visual Studio 2010 - August 2011 Upgrade had been released. The version of this new upgrade is 1.4.40727.1601 with the Windows Azure SDK v1.4.20407.2049. This upgrade includes some awesome features that I was looking forward for a long time, which are: Profiling the application running in Windows Azure. New ASP.NET MVC 3 web role template. Multi-configuration files in one cloud project. More validation in the service package and ...
After writing this post, I realized that it is obnoxiously long, and maybe includes a little bit too much hand-holding. Nevertheless, I decided to post this very detailed step-by-step walkthrough of implementing a simple AJAX form in MVC3 with Razor. I'm probably going also post a shortened version of this topic for those that don't need a complete walkthrogh. So I've been attempting to dive into ASP.NET MVC 3 lately, and have hit plenty of bumps along the way. This is my first encounter with any ...
Desde que escribí mi primer post sobre como utilizar JqGrid con asp.net (http://geekswithblogs.net/... he recibido varias consultas sobre como realizar un maestro detalle utilizando este control de jquery. Antes de comenzar debo mencionar que para mostrar un maestro detalle con JqGrid tenemos dos opciones: 1. Realizarlo con un subgrid 2. Utilizar dos JqGrid separados Así que, teniendo esto en cuenta, el objetivo de este post será ...
What is Common Service Locator?Today we have many Inversion of Control/Dependency Injection Containers like NInject,StructureMap,Unity,.. etc in the .NET world.Most of these vary quite widely in terms of configuration and initialization/registration of the instances.But they provide more or less similar interface while resolving the dependencies and returning object instances.Common Service Locator framework extracts these commonalities out and provides an abstraction on top of these IoC/DI containers.This ...
Normal 0 false false false EN-GB X-NONE X-NONE /* 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-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Calibri","sans... mso-bidi-font-family:"Times New Roman";} There remains a lot of complacency concerning ...
ASP.NET Detect and alert forms authentication timeout With help from & thanks to PsychoCoder at http://www.dreamincode.net/... 1. Add sessionState to web.config <system.web> <sessionStatetimeout="1"... /> <!--minutes e.g. 120 = 2 hours--> 2. Add FormsAuthentication to web.config <authenticationmode="For... <!--timeout minutes (needs to be the same as in sessionState above) e.g. 120 = 2 ...
I have a need for a highly responsive web page that must at least appear to be "pushed" information from the server as it happens, much like you'd see with an HTTP protocol based chat window. The client will utilize JavaScript, and will use JQuery and its UI plugins, and will use its AJAX support to call the requests that will only return when there is data to be "pushed". I know HTML 5 includes support for WebSockets, but I feel it is too soon to rely on them, as the spec is not yet finished and ...
Introduction One of the first things I wanted to do after installing the Azure AppFabric June CTP was to create an AppFabric application that used the Bing Map SOAP services. That was when I hit my first roadblock. There is currently no option in the AppFabric Application Designer to add a reference to an external service. After asking around in the forums I learned that I should build an external service to do this. There is currently very little documentation on creating external services for Azure ...
At http://tv.jetbrains.net/vid... there is an excellent video on what is new in ReSharper 6 I am very impressed by the CSS tools. Congratulations to JetBrains! I like the "Why is ReSharper suggesting this?" - this will settle many arguments. Passionate aboutProductivity Visual Studio add-in for C#,VB.NET, XML, XAML, ASP.NET and more ...
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. Can't code withoutAutomated code refactorings for C#, VB.NET,ASP.NET & XAML work across languages ...
MvcScaffolding is a tremendous productivity improvement for MVC developers. Earlier this year, Steve Sanderson posted the definitive 7-part series on MvcScaffolding which is a must-read for anyone serious about doing scaffolding. The best part about the scaffolding infrastructure is that MvcScaffolding is actually built on top of another package called T4Scaffolding. T4Scaffolding can be used as the basis for *any* scaffolding – not just MVC projects. To that end, we can enjoy the same power of MvcScaffolding ...