Geeks With Blogs

News

Server Error in Application An unhandled exception occurred during the execution of the current web request October 2006 Entries
Difference between Layers and Tiers (Layers vs Tiers)?
Tiers are physically separation of tiers means in different projects, dll or exe. When we talk about Layers means logical separation of tiers. Layers means way to organizing the code logically not physically. Tiers means code separation on network or process boundaries. There are few good articles Rocky's post http://dotnet.org.za/kevint... http://davidhayden.com/blog... Cheers!!! Mahesh ASP.NET Interview Questions | C# Interview Questions ......

Posted On Saturday, October 28, 2006 11:07 AM

Lazy Loading
Not to load code modules into memory until you are sure you are going to be required. Example: I am having Category and Sub-Category. Category can hold list of Sub-Category, but this sub-category is not require every time. I’ll load sub-category when it is required. I am using following code to achieve this. public class Category { // Other Geter Seter.. private List<SubCategory> _subCategories; /// <summary> /// Sub Categories /// </summary> public List<SubCategory> SubCategories ......

Posted On Thursday, October 26, 2006 9:42 AM

All selected values from a CheckBoxList ASP.NET
private Int32[] CheckboxListSelections(Syst... list) { ArrayList values = new ArrayList(); for (int counter = 0; counter < list.Items.Count; counter++) { if (list.Items[counter].Selected) { values.Add(list.Items[count... } } return (Int32[])values.ToArray(typ... } ASP.NET Interview Questions | C# Interview Questions | .NET Interview Questions | Dot Net Interview Questions | VB.NET Interview Questions | Oracle Interview Questions ......

Posted On Wednesday, October 25, 2006 5:20 PM

Live Search
Live Search Go to http://www.google.com/ Type in "search" Click "I'm Feeling Lucky" ASP.NET Interview Questions | C# Interview Questions | .NET Interview Questions | Dot Net Interview Questions | VB.NET Interview Questions | Oracle Interview Questions ......

Posted On Tuesday, October 24, 2006 10:06 AM

Microsoft .NET Pet Shop 4
Microsoft has released new version of .NET Pet Shop application. The .NET Pet Shop application is designed to show the best practices for building enterprise, n-tier .NET 2.0 applications. Full source code is available for download. This version is designed specifically for ASP.NET 2.0. . By using this new 2.0 features code base was reduced by 25%. These are the main changes in 4.0 release System.Transactions instead of Serviced Components. Generics for strongly typed collections instead of loosely ......

Posted On Monday, October 23, 2006 5:47 AM

Stored Procedures or SQL Text Queries (Embedded SQL Query)?
While designing DAL layer we normally stuck with one debate, Stored Procedures or Embedded SQL Query? I also faced the same problem. I searched on the internet, read some books and discussed with some friends. I am trying to compile all these discussion in single post. Stored procedures require only use the SqlCommand object to execute. Other way is to deal with SQL is to store your SQL statements as text (Embedded SQL Query) to be executed with SqlCommand objects. Different people will give you ......

Posted On Thursday, October 19, 2006 12:27 PM

DataSet or DTOs (Data Transfer Objects)
In three tier architecture when BL class calls DAL to retrieve data from the DB we are having two options to get these data one is DataSet/DataTable and another one is DTOs (Data Transfer Objects). DTOs are classes which mapped to the DB tables. For example if Category table in Db having fields ID, Name and Description in this case DTO class will only have three properties named ID, Name and Description. DataSet also having two options one is typed Dataset and another one is untyped dataset. We will ......

Posted On Thursday, October 19, 2006 11:37 AM

Difference between a Struct and a Class ?
The struct type is suitable for representing lightweight objects such as Point, Rectangle, and Color. Although it is possible to represent a point as a class, a struct is more efficient in some scenarios. For example, if you declare an array of 1000 Point objects, you will allocate additional memory for referencing each object. In this case, the struct is less expensive. When we create a struct object using the new operator, it gets created and the appropriate constructor is called. Unlike classes, ......

Posted On Wednesday, October 11, 2006 10:44 AM

Developer Highway Code - The drive for safer coding
This handbook provides security activity guidance, checklists and question lists for application architects and software developers who want to improve the security of the applications that they develop. Cheers! Mahesh maheshsingh21@hotmail.com ASP.NET Interview Questions | C# Interview Questions | .NET Interview Questions | Dot Net Interview Questions | VB.NET Interview Questions | Oracle Interview Questions ......

Posted On Wednesday, October 11, 2006 10:43 AM

IE7 is coming....
IE7 will be released this month. Check this out http://blogs.msdn.com/ie/ar... ASP.NET Interview Questions | C# Interview Questions | .NET Interview Questions | Dot Net Interview Questions | VB.NET Interview Questions | Oracle Interview Questions ......

Posted On Tuesday, October 10, 2006 11:28 AM

Managed Code and Managed Data
Managed code is code that is written to for the services of the Common Language Runtime (CLR). In order to target these services, the code must provide a metadata to the runtime. All C#, Visual Basic.NET, and JScript.NET code is managed by default. Visual Studio.NET C++ code is not managed by default, but the compiler can produce managed code by specifying a command-line switch (/CLR). Managed data—data that is allocated and de-allocated by the Common Language Runtime's garbage collector. C#, Visual ......

Posted On Tuesday, October 10, 2006 11:26 AM

Themes vs. Cascading Style Sheets
A theme is a collection of property defines the look of pages and controls. Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in a markup language(i.e HTML). Themes are similar to cascading style sheets in that both themes and style sheets define a set of common attributes that can be applied to any page. However, themes differ from style sheets in the following ways:. Themes are control-based, not HTML-based. Themes can define many properties ......

Posted On Tuesday, October 10, 2006 10:57 AM

WinFx (.Net Framework 3.0) Developer Namespace Reference
ASP.NET Interview Questions | C# Interview Questions | .NET Interview Questions | Dot Net Interview Questions | VB.NET Interview Questions | Oracle Interview Questions ......

Posted On Tuesday, October 10, 2006 9:52 AM

How to organize projects in .NET Application
.NET having solution files, project files and web project. Solution file can contains multiple project files as well as web project. Few days back I had to start building new .NET based application. I found few good things and try to share. First of all I am having multiple projects in the solution. Logical layers for my web application are: (user) -> UI -> [AL -> BLL -> DAL] -> (DB) [ -> DTOs ] [ -> ES ] UI = User interface AL = Application layer (handlers, as web pages and ......

Posted On Monday, October 9, 2006 11:35 AM

ASP.NET Interview Questions
From Mumbai User Group http://groups.msn.com/Mumba... From Scott's Blog ASP.NET Interview Questions ASPNET FAQ http://www.aspnetfaq.com/ Dave's Blog http://blog.daveranck.com/a... Thanks Mahesh ASP.NET Interview Questions | C# Interview Questions | .NET Interview Questions | Dot Net Interview Questions | VB.NET Interview Questions | Oracle Interview Questions ......

Posted On Monday, October 9, 2006 3:57 AM

EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database 'myDB', schema 'dbo'.
To resolve this there are some work workaround Re-run the aspnet_regsql.exe. If first one is not working for you then you have to “Add the user to the aspnet_Membership_FullAccess database role.” -- Add user to database role USE aspnetdb GO sp_addrolemember 'aspnet_Membership_FullAcce... 'Network Service' “Network Service” is your user name Related Post: Association, Aggregation, Composition object relationship Talent vs Attitude – Harsha Bhogle What we can learn from Babies ......

Posted On Saturday, October 7, 2006 6:40 AM

Passing CSV string as a SQL In Parameter
Some time we requite select * from tbl where id in (1,2,3) if we try like that declare @csv varchar(20) select * from tbl where id in (@csv ) Ooops.... error what's wrong with this... if you try to print this query you will get the query select * from tbl where id in ('1,2,3') error because @csv cannot be converted to int There is a simple way to resolve this exec ('select * from tbl where id in ( ' + @csv + ')' ) Cheers! Mahesh maheshsingh21@hotmail.com ASP.NET Interview Questions | C# Interview ......

Posted On Thursday, October 5, 2006 9:03 AM

Copyright © Mahesh Singh | Powered by: GeeksWithBlogs.net