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


EnsureChildControl() (ASP.NET Controls)

 A method of Control class to ensure that the child controls are fully loaded before accessing their properties.

Categories: ASP.NET
Posted by developer on Thursday, January 17, 2008 4:10 AM
Permalink | Comments (0) | Post RSSRSS comment feed

INamingContainer Interface (ASP.NET Controls)

This interface ensures that all the child controls of your control get a unique ID.
This way your custom control can keep track of its constituent controls.

Source URL: http://www.bipinjoshi.net/articles/31cf8d3d-7f71-46f4-b847-3eea47a7f2f5.aspx 


Categories: ASP.NET
Posted by developer on Thursday, January 17, 2008 4:05 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Identify a Nullable Type (C#)

Use this test:

 if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) {…}

 Source: http://msdn2.microsoft.com/en-us/library/ms366789.aspx

Or

Using Reflection to Determine whether an Type is Nullable And Get the underlying Type


Categories: C#
Posted by developer on Monday, January 07, 2008 9:56 AM
Permalink | Comments (0) | Post RSSRSS comment feed