eramgarden
Contributor
- Joined
- Mar 8, 2004
- Messages
- 579
I have am <EditItemTemplate> like this:
<EditItemTemplate>
<textarea name="cmpcomm" cols="27" rows="5"><%# Container.DataItem("comments")%>
</EditItemTemplate>
Everything is fine so far....
How do I reference it in FindControls:
1. This doesnt work becuase, of course I have TEXYBox:
Dim strComm = cType(e.Item.FindControl("cmpcomm"),TEXTBOX).text
2. I also tried this:
Dim strComm = e.Item.FindControl("cmpcomm")
but when I set the debugger, i see the value as "nothing"...
so, how i define that <textarea> field ??
<EditItemTemplate>
<textarea name="cmpcomm" cols="27" rows="5"><%# Container.DataItem("comments")%>
</EditItemTemplate>
Everything is fine so far....
How do I reference it in FindControls:
1. This doesnt work becuase, of course I have TEXYBox:
Dim strComm = cType(e.Item.FindControl("cmpcomm"),TEXTBOX).text
2. I also tried this:
Dim strComm = e.Item.FindControl("cmpcomm")
but when I set the debugger, i see the value as "nothing"...
so, how i define that <textarea> field ??