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. 25, 2012
03:08 pm
3OC0WGSC9Show this entire thread in new window
Gratar Image based on email address
From:Larry
To:Rick Strahl
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




Viewing all articles
Browse latest Browse all 10393

Trending Articles