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. 24, 2012
11:48 am
3OB0PBE1WShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Larry
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

West Wind Web Monitor

Viewing all articles
Browse latest Browse all 10393

Trending Articles