The type or namespace name 'Configuration' does not exist in the namespace 'System.Web' This error will crop up if you try to use Configuration namespace in VS 2005 in the same way we used to access configuration namespace in VS 2003. In .NET 2.0, the ConfigurationManager class is the new mechanism to handle configuration information instead of ConfigurationSettings class in 1.x. This na...
There are already many posts on this hotly debated topic on Tables vs CSS-P (Div tags). Some good links are: http://www.hotdesign.com/seybold/index.html http://www.decloak.com/Dev/CSSTables/CSS_Tables_01.aspx Both posts are very contrasting and both strongly present pros/cons of using tables vs DIVs. But in my opinion, working with DIVs is kinda cool but there is a learning curve, wherea...
I was answering a query related to FormsAuthentication in ASP.NET 2.0 and got to know that the persistent cookies behavior has been changed in 2.0, means that they take the " timeout " value from the web.config file (even if we manually set the cookies expiry time). The documentation in MSDN( http://msdn2.microsoft.com/en-us/library/1d3t3c61.aspx ) is also incorrect in my opinion, which ...
I have found using a Base Page class in my web projects immensely useful. What exactly is a Base Page class? We know that all our web page code behinds derive from System.Web.UI.Page class as: public partial class Default4 : System.Web.UI. Page { ...} Now, many times we need to code the same thing in every page class, for example consider these scenarios: 1. Setting the culture of the cu...
Can we run both 1.1 and 2.0 web projects on the same Windows 2003 server? Many times I have answered this question on the forums , so thought of writing a post on the same. IIS 6.0 can run both ASP.NET 1.1 and 2.0 web applications simultaneously on the same server, if each version specific application is assigned a different application pool. Now what is an application pool? We know that...
Many times we would like to export our page as an Excel sheet, Word doc or PDF file. This can be simply achieved by changing the ContentType of the Response object and overriding the RenderControl method of the control to be exported: Page Load() { //bind data to data bound controls and do other stuff Response.Clear(); //this clears the Response of any headers or previous output Response...
I came across this interesting post on how to extend the Page directives in ASP.NET 2.0 by Scott and though of sharing it. See the link for details: http://weblogs.asp.net/scottgu/archive/2005/08/02/421405.aspx
Yesterday while browsing I came across an interesting article which talks about the death of J2EE in a pure SOA world. See this link for the complete article: http://searchwebservices.techtarget.com/originalContent/0,289142,sid26_gci1198211,00.html It basically says that: 1. J2EE will go the CORBA way but JAVA language will not be affected in any way 2. J2EE is well suited for platform i...
It's fast, easy and free! Submit articles, get your own blog, ask questions & give answers in the forums, and become a better developer, faster.
enter your email address:
What kind of email newsletter would you prefer to receive from CodeAsp.Net?18