View Single Post
  #4 (permalink)  
Old February 27th, 2009, 11:53 AM
dparsons dparsons is offline
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Unless you are accessing the Literal in the code behind for something, you dont need to place the text from your database into a control. The following code would suffice:

aspnet Code:
...
<ItemTemplate>
<%# Eval("MemberName") %> <br />
<%# Eval("Email") %> <br />
<%# Eval("Summary") %>
</ItemTemplate>
...

As far as your content breaking the page bounds I am not sure what is going on with that. I have had instances in the past where a literal did this but was able to correct it with something like:

<div style="width:750px"><asp:Literal ... /></div>

hth.
-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================