TipsOnLips.net

Your .net tips and tricks source

About the author

Author Name is someone.
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010


Pair Class (ASP.NET)

An interesting and useful class which is used to store two related objects.

The Pair class does not encapsulate its object references, First and Second, in properties; it exposes them directly to all calling code as public class fields.

The Pair class can be used in several ways in page state persistence implementations. The most common use is as a container for both the ViewState and ControlState collections. In this case, the First property is used for ViewState, and the Second for ControlState

 Source URL: http://msdn2.microsoft.com/en-us/library/system.web.ui.pair.aspx


Categories: ASP.NET | C#
Posted by developer on Wednesday, February 20, 2008 4:58 AM
Permalink | Comments (0) | Post RSSRSS comment feed

How to Register User Controls and Custom Controls in ASP.NET

1) How to Register User Controls and Custom Controls in Web.config

2) Creating and Using User Control Libraries 

3) Register Custom Controls In Web.config 


Categories: ASP.NET | VS 2005 | VS 2008
Posted by developer on Monday, February 18, 2008 7:48 AM
Permalink | Comments (0) | Post RSSRSS comment feed

LosFormatter Class (ASP.NET)

This class serialises the view state for a Web Forms page. It cannot be inherited.

 Source URL http://msdn2.microsoft.com/en-us/library/system.web.ui.losformatter.aspx


Categories: ASP.NET
Posted by developer on Friday, February 15, 2008 11:12 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Visual Studio 2008 Product Comparison

If you are looking for a URL to compare all versions of the Visual Studio 2008 editions, here we go:

http://msdn2.microsoft.com/en-us/vstudio/products/cc149003.aspx


Posted by developer on Tuesday, February 05, 2008 3:16 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Scope_Identity and NOCOUNT (ADO and SQL Server)

When we have the following ADO.NET code:

int returnValue = command.ExecuteNonQuery();

which calls a SQL Server stored procedure that includes this statement:

NOCOUNT ON

The returnValue will always be -1 if the NOCOUNT was set to ON, therefore we need to remove the

NOCOUNT ON to get the number of records affected from the Command.ExecuteNonQuery().


Categories: SQL Server
Posted by developer on Friday, February 01, 2008 7:59 AM
Permalink | Comments (0) | Post RSSRSS comment feed