Anas Ghanem

<ItemTemplate ".Net Tips" runat="Weblogs.asp.net" Country="WestBank" />

Browse by Tags

All Tags » ASP.NET (RSS)
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...
Posted: Jul 13 2008, 01:01 AM by anas | with 3 comment(s)
Filed under:
Why The Images displayed in IE but not in FireFox ?
I noticed there is a lot of articles that is specified an incorrect images path that only works in IE , those articles used the backslash ("\") character in the Images paths , note that using backslash in the images URL is incorrect ! instead we must...
Posted: Jul 13 2008, 01:00 AM by anas | with 1 comment(s)
Filed under:
Building a color selector control
This article will show you how to create a color selector control that will looks like the image in the right side. Read the full article on ASP.Net Wiki
Posted: Jun 22 2008, 11:32 AM by anas | with no comments
Filed under:
Avoid using the Session in The Page Constructor OR in Page Local Variables
While I'm helping the Folks on asp.net forums, I noticed that there is a lot of develoeprs trying to access the Http Session in Page Constructor ! Most of them used this to Implement a kind of Secured Base Page that checks the session value ,and if its...
Posted: May 07 2008, 10:50 PM by anas | with 5 comment(s)
Filed under: ,
Preventing the Deleted Users from logging to your site
while working with Forms Authentication and Membership services , if the user selects " remember me " check box in the login dialog ,the runtime will create a persistent authentication cookie for him, the persisted cookie is responsible to keep the user...
Posted: Apr 18 2008, 11:30 PM by anas | with 2 comment(s)
Filed under: ,
The Differences in Profile between Web Application Projects (WAP) and website
The profile services is a very helpful and easy way to add custom properties for your users which is not contained in the Standard MembershipUser Properties... for example , you may need to add the Marital status , Date of Birth, Address.... all of these...
Posted: Apr 12 2008, 09:46 PM by anas | with 2 comment(s)
Filed under: ,
Redirecting the Users to different pages based on there roles
while working with login control , you can redirect the users to a different pages base on there roles , to do this , you need to handle theLoggedIn event for login control which is fired after the user logged in successfully , Assume we have 2 roles...
Posted: Apr 12 2008, 09:19 PM by anas | with 5 comment(s)
Filed under: ,
Putting your website in a maintanance mode based on a weekly schedule
In this blog i will talk about how to redirect the website visitors to a page that display a " web site under maintenance" , you can implement this functionality in your Global application file ( Global.asax file) , you can use Application_BeginRequest...
Canceling Linkbutton Clicked Event when the User tries to click it Again
There is many reasons to prevent that , like preventing mutiple Database Calls , Or Even Preventing them from submitting the form twice and so save the bandwidth and server resources . this is a one solution for that Issue , Use a hiddenField control...
Posted: Mar 09 2008, 05:45 PM by anas | with 2 comment(s)
Filed under:
Tip/ Trick: Preventing Session Loss when using Cookieless sessions with TreeView and Menu controls
By default .net runtime uses the cookies to remember the session Id between the requests , but when using Cookie less sessions ,the runtime inserts the Session Id to the requested url , this way the runtime can remember the session id and prevent the...
More Posts Next page »