Is it possible to bind Data to a text area in a Datalist which contains more than one row? When I use the following code in the EditItemTemplate section it works fine: <input id="UserID" type="text" value=''/> However I get this error: ------------------------------------------------
Exception Details: System.InvalidCastException: Specified cast is not valid. Source Error: Line 42: Line 43: Dim EditText As HtmlInputText Line 44: EditText = E.Item.FindControl("UserID") Line 45: Line 46: Response.Write(EditText.Value) Source File: C:\inetpub\wwwroot\ben\Manager2.aspx
Line: 44 ------------------------------------------------ Any help on how I can display a multiline textbox/area in the EditItemTemplate of a Datalist will be much appreciated.
leaderboard
Member
375 Points
75 Posts
Beginner - Binding data to a Datalist
Aug 01, 2003 11:17 AM|LINK
SushilaSB
Star
11417 Points
2265 Posts
Re: Beginner - Binding data to a Datalist
Aug 01, 2003 12:44 PM|LINK
Dim EditText As TextBox EditText = ctype(E.Item.FindControl("UserID") ,TextBox) Response.Write(EditText.Text)Visual ASP/ASP.NET MVP
http://weblogs.asp.net/sushilasb
leaderboard
Member
375 Points
75 Posts
Re: Beginner - Binding data to a Datalist
Aug 01, 2003 12:59 PM|LINK