Anas Ghanem
All about ASP.NET
-
Avoid session loss when using Cookieless sessions with XML Sitemap Provider
In march 2008 , I showed how to avoid losing session when using cookiless sessions with XmlSiteMapPorvider. I mentioned how to quickly fix this issue by handling the Data Bound events of Navigation controls . Since This issue is still reproducible in .Net 3.5 ,I published an article that discusses this issue in more details , Read the article.[Here]
-
Creating Custom Parameters for Data source Controls
Asp.net provide various types of parameters , like session parameter which get its value from session ,control parameter which get its value from form control , and there is also many other parameters each one used to read the parameter value from different location .
-
Development Tip #1: Wrap your Date Selector inside a User control
When developing web application, you will need to decide which date selector you are going to use , you may choose between the Caledar Extendar , or any other 3'rd party controls (like infragistics ,Telerik ,...).In the future , if you decided to change the date selector for some reason , you will need to go to all places in which you used the date selector and change the code to use the new date selector control !
-
Fixing DotNetNuke localization for child and dynamically loaded UserControls
The DotNetNuke localization engine depends heavily on the "LocalResourceFile" property which is contained in "PortalModuleBase" class which is must be the base class for the UserCotrols that needs to be used as a controls for the Module.
-
Implementing Outputcache with ListView Paging
The ListView Control Supports a lot of functionalities , one of those functionalities is the built in support for data paging .
-
Comparing ListView with GridView,DataList and Repeater
The ListView control is a new data presentation control that was added in ASP.Net 3.5.You may wonder why its added to the framework , and what it provide .
-
Hint: sort the ajax Toolkit controls Alphabetically after adding them to the toolbox
When you add the Aajx toolkit controls to your visual studio toolbox , the items will be added randomly and they will not be sorted, and so you will have many related controls like accordion and accordionpane where not adjacent ! see the image below :
-
Conditionally Hide some days in the Calendar control
You may wonder how to hide some days in the ASP.NET standard calendar control. for example if you want to hide the week end days ( Saturday and sunday) , you can simply handle the DayRender event which is called for every day in the calendar control :
-
How to get the readonly textbox value on the server
In ASP.NET 2.0 and Newer versions , the readonly TextBox will ignore the submitted text , this change due to security reasons .
-
Differences between Web Application Project(WAP) and website Projects when specifying the Type settings attribute
When configuring a custom providers , or registering HttpHandlers and HttpModules , or using any other configurations sections that needs to specify the type settings attribute , you will need to correctly specify the type by specifying a correct Namespace and Assembly .