mohit | Shared With: Everyone - Jul 24 2007 | development, asp.net, performance, c#, .net
Some great tips in here.
Quoted: Web App Follies: Keep Sites Running Smoothly By Avoiding These 10 Common ASP.NET Pitfalls -- MSDN Magazine, July 2006
...
LoadControl and Output Caching
Sessions and Output Caching
Forms Authentication Ticket Lifetime
View State: The Silent Perf Killer
SQL Server Session State: Another Perf Killer
Uncached Roles
...
mohit | Shared With: Everyone - Jul 24 2008 | development, .net, microsoft, confusion, asp.net
So do you need to install the .net 3.5 framework to run .net 3.5 assemblies, or will these assemblies work with .net 2.0?
Quoted: Yesterday I had a discussion on an internal Microsoft Developers meeting about the status of .NET 3.5. We had presented that .NET 3.0 is an extension of .NET 2.0, and not a new version. My statement that the status of .NET 3.5 is the same, it is basically .NET 2.0 with extra features, was received sceptically.
Just to prove I'm right, here my observations.ShareViewed: 11 Times
mohit | Shared With: Everyone - Apr 24 2008 | html, xhtml, todo, development, chaya, c#, asp.net, programming
I am going to use this to clean up the html for some of the sites I maintain. The author (Omar Al Zabir, CTO of pageflakes) is one of the best .Net developers around.
Quoted: Convert HTML to XHTML while applying tag and attribute filters in order to produce nice and clean HTML for web posting.; Author: Omar Al Zabir; Section: C#; Chapter: Languages
ShareViewed: 56 Times
mohit | Shared With: Everyone - Mar 25 2008 | events, development, c#, asp.net, codesmell
Quoted: Whether you put your logic before or after calling base really depends on the scenario. Personally I always call base last, at the bottom of the method, just because in general I think it makes sense for my component/control to do its own 'X' before raising the 'X' event for external listeners to respond to. If I want to know about anything those external listeners have done to me, then I could have more code after calling base. But let me just say I can't really even think of a time where this should matter. If you end up with code that needs to worry about this, then just pause and consider your design, it's a CodeSmell. You should be able to design it in a manner that doesn't depend on such subtlety.
ShareViewed: 9 Times
mohit | Shared With: Everyone - Mar 20 2008 | asp.net, development, c#, validation, .net, programming
The problem with calling Validate in Page_Load is that your controls may not be ready to be validated (i.e. they need to be Loaded before they are ready to be validated).
Quoted: One potentially confusing thing about this timing is that the validators will not have been evaluated at the time Page_Load is triggered. The benefit of this is that it gives you a chance to programmatically change property values affecting the validity of the page, such as enabling or disabling certain validators.
...
If this timing is not to your liking and you prefer to evaluate everything in Page_Load, you can do this by explicitly triggering the validation during this event by calling Page.Validate.ShareViewed: 3 Times
mohit | Shared With: Everyone - Mar 20 2008 | development, c#, asp.net, .netSome nice .Net "Cheat Sheets"
ShareViewed: 2 Times
mohit | Shared With: Everyone - Mar 03 2008 | asp.net, microsoft, development, c#, web development, todo
Quoted: The recent announcement that ASP.NET will soon get an alternate engine in the ASP.NET Model View Controller framework (MVC - see last month’s editorial) has brought out some renewed discussion of the merits and shortcomings of Web Forms and the potential need for an alternate mechanism of building...
ShareViewed: 26 Times
mohit | Shared With: Everyone - Feb 29 2008 | javascript, asp.net, development, c#, validation, faves
You need to use an ASP:Button and not just an input if you want client-side validation in ASP.Net.
Quoted: The onclick attribute, along with the script, is added inside the AddAttributesToRender method of the Button control. The WebForm_DoPostBackWithOptions function can be examined in the rendered web resource JavaScript file within Visual Studio 2005, as explained in the above section. This function is in the resource file named WebForms.js. The function takes an argument of type WebForm_PostBackOptions. This function is also responsible for invoking the Page_ClientValidate function, which sets the value of the Page_IsValid member. The complete validation process triggered by the click of a button process can be summarized in the workflow below.
ShareViewed: 16 Times
mohit | Shared With: Everyone - Feb 26 2008 | asp.net, development, c#, microsoft, technology
Great blog for truly understanding ASP.NET (if you need to and want to, of course).
Quoted: ASP.NET and .NET from a new perspective
ShareViewed: 3 Times
mohit | Shared With: Everyone - Dec 11 2007 | facebook, asp.net, development, social networking, c#
This looks much more complete than Microsoft's official version.
Quoted: I've been playing with Facebook for a few days and am impressed. This post shares some thoughts as well as introduces a new open source project, Facebook.NET, a framework optimized for developing ASP.NET-based Facebook applications in C# or VB.NET.
ShareViewed: 52 Times
mohit | Shared With: Everyone - Dec 11 2007 | development, facebook, asp.net, c#, social networking
Quoted: The following outlines the steps I took to create a new Facebook application written in ASP.NET using VS.NET 2005. I have not tested this in VS.NET 2003 so your mileage may vary there.
ShareViewed: 97 Times

Send Mohit a friend request or a personal message instead.