Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiline textbox in a datalist wont populate

Status
Not open for further replies.

bizzydint

Programmer
Mar 6, 2003
11
GB
I've finally got my datalist showing me the items I wanted, but now each item has a description and I need to display it.

It will display in a single line text box, but not a multiline one! Anyone know how to get around this?
 
bizz: Do you want to display a 2 column datalist? 1 column and then have a second, after selection, appear in a textbox? Not quite sure what you're looking at...
 
Sorry for being so vague! Basically, I've got the datalist with each row containing a dropdownlist, a single line text box and one multiline txtbox.

I'm not actually using the template columns for this. The front end code i've got is:

Code:
----------------------------------------------------
<asp:DataList ID=OptionsList HorizontalAlign=&quot;Center&quot;  Width=100% Runat=server DataSource='<%#oDR%>' DataKeyField=&quot;SubjectsSchool_ID&quot; GridLines=None>
				<ItemTemplate>
					<table width=&quot;100%&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;>
						<tr>
							<td align=&quot;left&quot; width=&quot;300&quot; valign=top>
								<asp:dropdownlist id=&quot;ddlSubjects&quot; Runat=&quot;server&quot; 
								DataSource=&quot;<%#GetDropDown()%>&quot; 
								DataValueField=&quot;Subject_id&quot; DataTextField=&quot;ddText&quot; 
								Enabled=&quot;true&quot; Width=300
								SelectedIndex='<%# GetSelIndex(Container.DataItem(&quot;Subject_ID&quot;)) %>'>
								</asp:dropdownlist>
							</td>
							<td valign=top width=&quot;200&quot;>
							<asp:TextBox ID=&quot;tbxTitleTailored&quot; Runat=server Columns=&quot;30&quot; value='<%#Container.DataItem(&quot;TailoredTitle&quot;)%>'></asp:TextBox>
							</td>
							<td valign=top width=&quot;300&quot;>
							<asp:textbox id=&quot;tbxDescriptionTailored&quot; Runat=&quot;server&quot; TextMode=MultiLine Rows=2 Columns=&quot;30&quot; value='<%#Container.DataItem(&quot;TailoredDescription&quot;)%>'></asp:TextBox>
							</td>
						</tr>
					</table>
				</ItemTemplate>
			</asp:DataList>		
----------------------------------------------------

Any help would be much appreciated!
van.
 
bizz: interesting problem, will work on this today - get back with you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top