{Log in or Register}

How-to: Comments in ASP.NET

July 23rd, 2008 No Comments   Posted in ASP.NET, Programming

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:
More »

How-to: create page “Site offline” in ASP.NET

July 22nd, 2008 No Comments   Posted in ASP.NET

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.