S
Scott
I am having trouble getting a web user control that I
created to work the way I need it to in my ASP.NET app (I
am using VB for the script). I am doing a survey (Q&A)
type application where I need to create custom 'text
boxes' so as a first step I created a ascx file with a
text box in it (just to make it simple) and added a
property called 'textValue' and hooked up the get and let
parts. Then I created a form that references the control
and placed the control in a datalist control's
<itemTemplate> tag. The good news is that this works as
long as I write the line of code as follows:
<ma:tbControl id="item1" runat"server"
textValue="hard coded text!"/>
I can also write the following line of code immediately
after and it will return the questions from the dataset
just fine (although not in the control I designed):
<%# Databinder.eval(Container.dataitem, "question") %>
The problem is that when I try to combine the 2 lines to
send the string from the 'question' field into
the 'textValue' property of the tbControl...
<ma:tbControl id="item1" runat"server" textValue="<%#
Databinder.eval(Container.dataitem, "Question")%>"/>
....I get the error message:
"The server tag is not well formed"
What am I doing wrong? <also, I will need to save this
data once I get this figured out, so any thoughts you can
offer on that would be helpful.>
Scott
created to work the way I need it to in my ASP.NET app (I
am using VB for the script). I am doing a survey (Q&A)
type application where I need to create custom 'text
boxes' so as a first step I created a ascx file with a
text box in it (just to make it simple) and added a
property called 'textValue' and hooked up the get and let
parts. Then I created a form that references the control
and placed the control in a datalist control's
<itemTemplate> tag. The good news is that this works as
long as I write the line of code as follows:
<ma:tbControl id="item1" runat"server"
textValue="hard coded text!"/>
I can also write the following line of code immediately
after and it will return the questions from the dataset
just fine (although not in the control I designed):
<%# Databinder.eval(Container.dataitem, "question") %>
The problem is that when I try to combine the 2 lines to
send the string from the 'question' field into
the 'textValue' property of the tbControl...
<ma:tbControl id="item1" runat"server" textValue="<%#
Databinder.eval(Container.dataitem, "Question")%>"/>
....I get the error message:
"The server tag is not well formed"
What am I doing wrong? <also, I will need to save this
data once I get this figured out, so any thoughts you can
offer on that would be helpful.>
Scott