

Archive for the 'ASP.NET' Category
How to do redirect by web.config in ASP.NET
Author: DeVoid
If you want create the mod_rewrite analogue and use links as mysite/user/DeVoid or send an user on other page - use web.config option urlMappings in ASP.NET:
<configuration> <system.web> <urlMappings enabled="true"> <add url="~/Article28.aspx" mappedUrl="~/MyNewBestArtile.aspx"/ > <urlMappings> </system.web> </configuration>
Using urlMappings you will be able to do your site on ASP.NET more attractive for an user
read comments (0)How-to: Comments in ASP.NET
Author: K_Den
When you create pages in ASP.NET - you must understand what you write. Comments help you write clean and clear code. Comments are the very important instrument of programmer. At the correct use of comments - his code is always clear a programmer and he can change him not reflecting.
Distinguish comments on the server-side and comments which are added to the outgoing HTML file.
If you want to write a comment which will be represented only inwardly aspx pages, and will not be visible an end user, use such syntax:
Read the rest of this entry »
How-to: create page “Site offline” in ASP.NET
Author: K_Den
Today I want to write about the some tricks of ASP.NET, which are very useful.
Sometimes, when you load new files into server or site temporary not work - you must notify users about it. If you use ASP.NET - you can do it easy! Create static html page with message about it and save as “app_offline.htm” (not *.html !!) into root directory of site. Now if users come in to your site they will see beautiful page. When a site will begin to work normally - delete file app_offline.htm.

