S
Scott
I have the following code in my aspx page which calls my custom control
(this works):
<cc1:matextbox id="matextbox1" runat="server">
<questioninfo typReportID= "This is where a number goes">
</cc1:matextbox>
This is fine for a test, but I really need it to use a session variable
instead of the text in the 2nd line. But when I change the 2nd line to look
like the following -
<questioninfo typReportID = '<%# session("reportNumber") %>'>
I get the error:
BC30676: 'DataBinding' is not an event of 'inputWebControls.QuestionInfo'
I don't get it. I am not databinding. I just want to pass a string to the
variable so I can use it in the logic in the control. The control is NOT
being built on the page in a grid, list or repeater, it is just in a <form>
tag, that's it. Anyone know why am I getting this error?
Scott
BTW: using VB in the behind code.
(this works):
<cc1:matextbox id="matextbox1" runat="server">
<questioninfo typReportID= "This is where a number goes">
</cc1:matextbox>
This is fine for a test, but I really need it to use a session variable
instead of the text in the 2nd line. But when I change the 2nd line to look
like the following -
<questioninfo typReportID = '<%# session("reportNumber") %>'>
I get the error:
BC30676: 'DataBinding' is not an event of 'inputWebControls.QuestionInfo'
I don't get it. I am not databinding. I just want to pass a string to the
variable so I can use it in the logic in the control. The control is NOT
being built on the page in a grid, list or repeater, it is just in a <form>
tag, that's it. Anyone know why am I getting this error?
Scott
BTW: using VB in the behind code.