CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 1/22/2004 9:50:58 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 26 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
SomeNewKid
Asp.Net User
Use of reserved word for control property1/22/2004 9:50:58 PM

0/0

Hi,

I have a server control where I would like one public property to be the reserved word "for". For example:
    <e3:Content for="MyPanel" runat="server">

Hello, world!
</e3:Content>

Internally, I would map the "for" property to "forID" or "_for". But externally, I'd like to use "for" as a public property.

I was sure I had read that I could wrap the reserved word in square brackets:
   public string [for] {...}

But, I must be wrong ... as I cannot get any such code to work.

Can I use a reserved word as a public property?


Alister
Andy Smith
Asp.Net User
Re: Use of reserver word for control property1/22/2004 11:08:23 PM

0/0

it is VB that allows you to use a brackets to use a reserved word as a regular token.
SomeNewKid
Asp.Net User
Re: Use of reserver word for control property1/23/2004 3:40:02 AM

0/0

Thanks, Andy.

Is this a situation where VB.NET will allow the use of the reserved word, whereas C# will not?
Alister
master4eva
Asp.Net User
Re: Use of reserver word for control property1/23/2004 5:23:40 PM

0/0

You will use capital "F" for your property name:

public string For { ... }

-- Justin Lovell
annie
Asp.Net User
Re: Use of reserver word for control property1/23/2004 7:05:40 PM

0/0

In C# you can prefix the keyword with @:

public string @for() { ... }

Annie
SomeNewKid
Asp.Net User
Re: Use of reserver word for control property1/24/2004 7:04:47 AM

0/0

Thanks, Annie ... I was wondering what the C# equivalent of the [word] VB.NET syntax could have been.

Thanks, Justin. As soon as I saw your post, I hung my head in shame. What a beautifully simple solution. (Though in my defense I am new to C#, so its case sensitivity is not yet in my "bag of tricks".)

Thanks all for the help!
Alister
master4eva
Asp.Net User
Re: Use of reserver word for control property1/24/2004 11:35:26 AM

0/0

That is new trick into my bag Annie :-) . Thanks - never knew this.
-- Justin Lovell
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Access 2007 Bible Authors: Michael R. Groh, Joseph C. Stockman, Cary N. Prague, Gavin Powell, Jennifer Reardon, Michael R. Irwin, Pages: 1356, Published: 2007
Access 2003 Bible Authors: Cary N. Prague, Michael R. Irwin, Jennifer Reardon, Pages: 1464, Published: 2003
Using Microsoft Access 2000 Authors: Roger Jennings, Pages: 1296, Published: 1999
Access 2002: The Complete Reference Authors: Virginia Andersen, Pages: 1220, Published: -1
Simply Visual Basic 2008 Authors: P. J. Deitel, Deitel & Associates ,Inc. Staff, G J Ayer, Pages: 896, Published: 2008
Dynamic HTML: The Definitive Reference Authors: Danny Goodman, Safari Tech Books Online, Pages: 1401, Published: 2002
Foundations of Microsoft Expression Web: The Basics and Beyond Authors: Cheryl D. Wise, Pages: 370, Published: 2007

Web:
List of reserved words in Access 2002 and in later versions of Access Lists the reserved words that you should not use in field, object, and variable ... and properties of that control become reserved words in your database. ...
Reserved words in Microsoft Access 97 If you use a reserved word or symbol, you may receive an error such as the ... and properties of that control become reserved words in your database. ...
Verilog Reserved Words [ISE Text Editor] The genvar reserved word is used as the index control variable by generate for loops. .... the other inherits the property of the signed data type or port. ...
D Oracle Business Rules Troubleshooting Using RL Reserved Words as Part of a Java Package Name .... When attempting to control the visibility of the property it is best to use the properties ...
Upgrading Page Flows Note that you can inadvertently use a reserved word by including that word in the name of an accessor designed to expose a property to expression language ...
List of reserved words in Access 2002 and Access 2003 Because it is not practical to provide a list of all reserved words, ... methods , and properties of that control become reserved words in your database. ...
Access 2007 reserved words and symbols - Access - Microsoft Office ... You might also encounter errors if you use a reserved word to name a control, an object, or a variable. The error messages you receive don't necessarily ...
Javascript Tutorial Appendices Reserved Words; Built-In Functions. ECMA Objects, Methods & Properties ... To avoid unnecessary debugging problems NEVER use any property or method name as ...
ASP.NET.4GuysFromRolla.com: Creating a TextBox Word / Character ... Oct 31, 2007 ... The logic used for the Words property was taken from a JavaScript ... The TextBoxCounter control uses JavaScript to interactively update the ...
How do I... Publish Microsoft Access check box controls to a Word ... Apr 11, 2007 ... (To publish a report to Word, use the Office Links button. ... Changing the Yes/ No field's Display Control property solves the problem of ...

Videos:
Steal This Film: Part 2 This is not a film about piracy. This is not a film about sharing files. It is a film that explores massive changes in the way we produce, distribute...
No Bailout http://www.LockedInSuccess.com No Bailout Will the No Bailout help you and your family? Perhaps not. Click on the link above to see how you can ear...
Cartoons are evil part 5 Televangelism is the use of television to communicate the Christian faith. The word is a portmanteau of television and evangelism and was coined by T...
Steal This Film II Steal This Film II
Hidabroot אסטרולגיה Astrologia astrology עוד לפני אלפי שנים עסקו אנשי העולם העתיק בחקר Astrologia מידע הטמון בקרבי השמים אודות גורלו של האדם ואופיו. האיצטגנינות או בשמה המודרני אסטרולוגיה ה...
Long Beach City Council Meeting Long Beach City Council Meeting
www.moldytoaster.com iberty, my father had only lost his fortune, but I have lost Valentine." "Look at me," said Monte Cristo, with that expression which sometimes made ...




Search This Site:










any one hosting with ultima now.....?

sql authenction

getting the collection out of the dropdownlist

a security control (not newbie but new at this part)

assembly not found

generating html server side!

hide web references from vs.net toolbox

write access on hosting.com

server control with more than one children type

custom itemdatabound

different cross-application usercontrol problem

webcontrol : event handler scope?

updating attributes in the design mode tag of a webcontrol.

registrar questions

asp.net webcam control

problem in user creating in adsi

expose usercontrol enum

generate control from string

any work arounds to godaddy's lack of remote connections on their db

comparing vwdhosting with other hosting companies

discountasp.net

is there any free temporary hosting?

explorer bar

render problem???

how can i make a control dynamically act upon clicked?

intelllisense with custom controls

web user control

multi-assembly dll guru required

servertime at wh4l vs my location

creating a read-once configuration file

  Privacy | Contact Us
All Times Are GMT