We have several web user controls in one of our sites. These controls are all placed in a Controls sub directory. Many controls are created runtime and added to placeholders in the page. When we build this particular site (currently uses ASP.Net 3.5) we used to get this error message… The type or namespace name ‘Controls_XXXXX’ could not be found (are you missing a using directive or an assembly reference?) And design time Visual Studio …
Monthly Archives: April 2009
Which JSON Serializer to use?
This is an easy one, but just want to make a note for easy reference. JSON is more ubiquitous than ever these days in ASP.Net web development. From AJAX enables web sites to MVC AJAX, JSON is “the” data-interchange format we want to use. There are 2 possible class libraries that you can use in ASP.net to serialize objects to JSON and back. If you are using WCF and your custom objects are marked as …
New Resource Kit from MS: Kobe
Microsoft released Kobe (not Kobe beef) : Web 2.0 Service development Resource Kit. MSDN site says: Project Kobe is a getting started resource kit for planning, architecting, and implementing Web 2.0 applications and services using the Microsoft Platform. This resource kit is targeted toward technology decision makers, hands-on solution architects, development managers, and developers in the aspiring web startups community and in enterprises and businesses looking to invest in new Web 2.0 application/service development projects. …
A LINQ Thought
LINQ stands for Language Integrated Query. I want to stress on “Integrated” because I think the strength of LINQ comes from the fact that it is a data query engine that is integrated with .Net languages. This very reason gives us many features that we as developers are comfortable using in a language into our data manipulation operations. Lets take a simple example, In the above example, we are using simple string functions that are …
Internet Explorer 8.0 rollback to 7.0
Last week I installed Internet Explorer 8.0. This new edition of IE brings many good features, one I liked the best is web slices. I was happy with the new version and aha..this morning I wanted to work from home, tried to connect to my company network, and unfortunately we do not support IE 8.0 for remote desktop (yet!) and no FireFox too (!!!). So i had to go back to IE 7.0. To my …
GridView Sorting Trick when using Object Datasource with custom objects
When you are using Object DataSource in ASP.Net for GridView, if your select method is returning an object that is of type DataView, DataTable or DataSet, you will be able to get sorting automatically. But if you are like me and your architecture has a distinct DTO (Entity) layer, and you pass back and forth custom objects or generic list of these custom objects, then you are in less luck with GridView. If you are …
Ajax and ASP.Net EventValidation
By default in an ASP.Net webform, Event validation is turned ON. This is a security feature aimed at preventing injection attacks. But consider this scenario, your asp.net page is rendered with a drop down list with certain values, depending on some user selections, you did an AJAX call and modified the contents of this drop down list, when you do a postback on this page, asp.net will throw this error: Invalid postback or callback argument. …
Ajax Control Toolkit FAQ
Other day someone asked me why do we get many folders along with AjaxControlToolkit dll when we do site build. Simple answer is these are resource folders for the toolkit that enables it to support localization. If you do not wish to use them, you could simply delete all these folders and just keep the main dll in the root level. If you want to read a little bit more about this, go here. Here …

Recent Comments