If you need two way communication, work in CodeBehind. If you simply need to
pull a value to the control, you can use the <%# %> tags to get at your Page
CodeBehind and have that get at control properties.
I believe the manner in which you are attempting is out of order, as the
tags are rendered after pre-render. I may be incorrect on that. If so, you
are asking for the constructor to pull information it will not have until
your property is populated.
Either way, it is easier to stick to CodeBehind if you want to start
customizing the way your app renders controls.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"Oren" wrote:
hi,
How can I call to a Function/Property and send data dynamically to the
UserControl ? I mean Instead (look at CurrentPage):
<Result:Header id="rh" CurrentPage="1" RecordsPerPage="2" runat="server" />
To do:
<Result:Header id="rh" CurrentPage="GetText()" RecordsPerPage="2"
runat="server" />
GetText() -> on the Webform...
(code was taken from your link below...)
http://openmymind.net/index.aspx?documentId=9
thanx,
Oren