The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Textbox does not contain a definition for IsReadOnly
Posted: 12 Aug 09 10:31 AM
|
I'm creating a new C# code snippet.
isReadOnly appears as a valid property in intellisense under "this.AccountName." So my code looks like this:
this.AccountName.isReadOnly = true;
But SLX comes back and says
'System.Web.UI.WebControls.TextBox' does not contain a definition for 'IsReadOnly'
What am I missing?
Thanks in advance.
|
|
|
| |
| |
|
Re: Textbox does not contain a definition for IsReadOnly
Posted: 12 Aug 09 11:11 AM
|
SalesLogix has a TextBoxControlAdapter that has an IsReadOnly property, which is then mapped to the ReadOnly property of the actual control.
Seems to me as if AA is polling the Property from the Adapter rather than the actual control being rendered. Which, if you pay attention to the error message that you receive, is the standard ASP.NET TextBox ( System.Web.UI.WebControls.TextBox )
This is why right away I knew that you needed to be using ReadOnly instead. |
|
|
|