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

Re: Setting ControlSource

$
0
0
Re: Setting ControlSource
Web Connection 5.0
Re: Setting ControlSource
06/06/2012
10:55:44 AM
3IQ0NFC7V Show this entire thread in new window
Gratar Image based on email address
From:
Rick Strahl
To:
Attachments:
None

A control source is an expression not a value, hence the quotes are required.

Please check the documentation for control source for more info.
wcdocs:_1mt037ec2.htm

+++ Rick ---



I tried without success. This is why I asked here.
I asked it already at 06/04/2012 but maybe you have not seen it:
http://www.west-wind.com/wwThreads/default.asp?Thread=3IO0AYXEW&MsgId=3IO0AYXEX

I set ControlSource between quote and it runs now:

this.txtKeyField.ControlSource="this.Page.oBusiness.oData.Field1"

Thank you

Why don't you try it instead of asking a questino here? It's probably quicker than waiting for a response here...

Yes it works but it has to be done before a call to DataBind() is made.

+++ Rick ---



Dear Rick,
is it possible to set ControlSource programmatically from code, instead of setting it into Visual Web Developer?
When is it possible to set it? before DataBinding?

this.txtKeyField.ControlSource=this.Page.oBusiness.oData.Field1

Thank you very much






Rick Strahl
West Wind Technologies

Making waves on the Web

from Hood River, Oregon


Viewing all articles
Browse latest Browse all 10393

Trending Articles