Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Setting a value in behind code

$
0
0
Re: Setting a value in behind code
Web Connection 5.0
Re: Setting a value in behind code
Dec. 26, 2012
12:17 pm
3OD0QCQPPShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Larry

Not really. General rule is the things in the property sheet and Intellisense are properties. But frankly that's not always true, because all the Web Connection controls derive from the .NET controls that have a lot more properties than the Fox ones. I've mostly hidden properties that aren't supported but there are still a few that aren't.

The best way to know what's a property and what's an attribute is by looking at the Fox classes and checking what's a property (including inheritance structure) in the help file.

+++ Rick ---


Thank you for this information. It works great.

What is the quickest way to determine what is a property and what is an attribute while in Visual Studio?

Thank you,
Larry Hart


Hi Larry,

It's not a native property so you can't directly assign it.

You can do this however for any arbitrary attributes that aren't properties:

this.txtField1.Attributes.Add("maxlength","25")


+++ Rick ---



When I create a text box on an input form I can set the MAXLENGTH value to limit the number of chars allowed.

I need to set this dynamiccaly in the behind code and get error "property MAXLENGTH is not found"

here is the line of code

THIS.txtfield1.MAXLENGTH=25






Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles