Geeks With Blogs
Mayank Sharma May 2009 Entries
Disable CSS Friendly Adapters
There are two ways to disable the CSS Friendly Adapters in ASP.NET: 1. In the Browser file Adapters for a specific control type can be disabled by just commenting out (deleting) the type of control adapter in the browser file. The effect is global and will affect all the controls of this type. For examle, to disable the adapter for GridView type: <!--<adapter controlType="System.Web.UI.... adapterType="CSSFriendly.Gr... />--> 2. At the control level Adapter ......

Posted On Wednesday, May 27, 2009 1:12 AM

Return SqlDataReader from a method
.NET's SqlDataReader class is based on an active connection to the database. This means that while the SqlDataReader is in use, the SqlConnection that is serving the SqlDataReader is open and cannot be used anywhere else. That is why, returning an SqlDataReader from a method is not stright forward like returning a DataTable or a DataSet. To read more about SqlDataReader, please see SqlDataReader class. Though it is not straight forward, it is very simple. Here's a piece of code that would let you ......

Posted On Tuesday, May 26, 2009 1:58 AM

Copyright © bullpit | Powered by: GeeksWithBlogs.net