Monday, December 10, 2007

How to Register User Controls and Custom Controls in Web.config:::::::::::::::

u neednt register user controls in every page of a webapplication, instead register it in web.config as below
-------------------------------------------------------------------------------
<_system._web>
<_pages>
<_controls>
<_add _tagprefix="_" _src="_" _tagname="_header">
<_add _tagprefix="scottgf" _src="_~/_Controls/_Footer._ascx" _tagname="_footer">
<_/_controls>
<_/_pages><_/_system._web>
-------------------------------------------------------------------------------
Use this in the webpage as below
-------------------------------------------------------------------------------

<_html>
<_body>
<_form _id="_form1" _runat="_server">
<_scottgu:_header _id="_MyHeader" _runat="_server">
<_/_form>
<_/_body>
<_/_html>
-------------------------------------------------------------------------------
Reference::::: http://weblogs.asp.net/scottgu/archive/2006/11/26/tip-trick-how-to-register-user-controls-and-custom-controls-in-web-config.aspx

Top Ten New and Exciting Features in ASP.NET 2.0:::::::::::::::::

http://www.theserverside.net/tt/articles/showarticle.tss?id=WhatsNewASPNET

TO enable readonly and then read the same for a aspnet control:::::::::::::::::vvvvvvvvvimp

_txtFromDate._Attributes._Add("_ReadOnly", "_ReadOnly");
_txtToDate._Attributes._Add("_ReadOnly", "_ReadOnly");

Hence, set _readonly="_readonly", so v can even retrieve the value. If v say _readonly=_true, then it can just be viewed but never be able to get the value.


NOTE::
Cache::::::: not user specific
Session::::: user specific
Command object :::::::: used to command the database


.NEt 3.0 overview::::::::::::::::::::::::::::::::::::
http://nilangshah.wordpress.com/2007/07/10/net-framework-30-introduction-and-useful-resources/

Master page tricks and tips:::::::::::::
http://www.odetocode.com/Articles/450.aspx

No comments: