visit http://sggspals.org for more information.
Read More Articles.NET Framework Versions
1) .NET FrameWork 1.0
2).NET FrameWork 1.1
ASP.NET Versions
1.ASP.NET 1.1
2.ASP.NET 2.0
Visual Studio .NET
- Visual Studio .NET 2001
2.Visual Studio .NET 2003 - Visual Studio .NET 2005
In the KeyPresss Event-
e.KeyCode - Gives which charecter is pressed AscW(e.KeyCode) gives the Ascii value of Key Pressed
e.Handled =True means the KeyPress event is handled
Read More Articles- check before accesing usercontrol in containing Page for its existence as it may not be instantiated again -becoz it is cached
- Access Page Events from usercontrol itself (like Page_Load) 3.StaticPartialCachingControl object is added by Page Parser if the user control included in Page decalratively 4.PartialCachingControl object is added by Page Parser if the user control included in Page Programmatically using LoadControl
Cache is application Level object. Every key in cache is unique.
If you add item in Cache using -Cache.Add and if the item exists already in cache -exception generated If you add item in Cache using -Cache.Insert and if the item exists already in cache -it will be replaced.
Read More ArticlesIf Page Cache duration exceeds the UserControl Cached duration, UserControl will not be refreshed untill page expires.
If UserControl Cache expiration is greater than Page - It will remain till cached output expires. Reference:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconCachingPortionsOfASPNETPage.asp
- Page can be partially cached by making some of the controls on page into UserControl and setting the @OutPutCache Directive for userControl
@OutPutCache Directive
Applicable in : Page /UserControl
Syntax:
@OutPutCache
- Duration – No Of Seconds
- Location – It can be Server,Client,Any, DownStream (Proxy Server Or Client),None
- VaryByControl- comma separated string of Control ID’s
- VaryByCustom- comma separated Custom string – Explained in following para..
- VaryByParam- comma separated string – Querystring variables
- VaryByHeader- Comma separated string of HTTP headers, whose change changes the output cache
- Shared – True if Cached output shared across Pages (Only for UserControl)
For VaryByCustom – Override the method GerVaryByCustomString in Global.asax
This method gives the httpContext with the help of which you can get –Application level objects like Cache, Application and Session for the context . Arg gives the VaryByCustom string – you can return the value appropriately .
Ex.
If arg= “UserID” Return Session(“UserID”)
Read More Articles

Comments