tags:

views:

62

answers:

3

Is "region" a keyword in asp.net? If yes, then what does it mean and where would one use it?

+4  A: 

What do you mean keyword? ASP.NET is not a programming language.

If you're asking about C#, then no, region isn't a keyword. #region is something like a keyword, though.

John Saunders
It is a preprocessor directive *(Not worth posting a separate answer as you have covered the key points.)*
ChaosPandion
Also people should really start learning to use the tools giving to them before they hobble together a website...
ChaosPandion
It is a *compilator* directive (C# doesn't have a preprocessor)
wRAR
@wRAR - MSDN doesn't lie *(Well I hope so.)*. http://msdn.microsoft.com/en-us/library/ed8yd1ha.aspx
ChaosPandion
Sorry,I am asking about #region in C#.
@ChaosPandion: Ah, sorry :) Btw, they are called *pre-processing directives* in ECMA-334.
wRAR
@Chaos: can you please fix that link to remove the version number?
John Saunders
+1  A: 

Region is not keyword in asp.net but#region is keyword for organize your code see the link

About #Region - ASP.NET Forums

http://forums.asp.net/p/1142786/1842461.aspx

ratty
+1  A: 
#region Description
//here is your code.

#endregion
Roy