Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

why am I getting this error?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jassim Rahma - 23 Jul 2007 19:43 GMT
here is the error:
Literal content ('<asp:TableRow BackColor="white"') is not allowed within a
'System.Web.UI.WebControls.TableRowCollection'.

and here is my code:

<asp:TableRow BackColor="white">
<asp:TableCell VerticalAlign="Top">Your Message</asp:TableCell>
<asp:TableCell VerticalAlign="Top">:</asp:TableCell>
<asp:TableCell VerticalAlign="Top"><asp:TextBox ID="txtMessage"
runat="server" BackColor="LightGoldenrodYellow" BorderStyle="Groove"
Width="500" Height="100" TextMode="MultiLine"
></asp:TextBox></asp:TableCell>
</asp:TableRow>

[ERROR COMES ON THIS LINE]
<asp:TableRow BackColor="white"><asp:TableCell ColumnSpan="3"
VerticalAlign="Middle"><br /></asp:TableCell></asp:TableRow>

<asp:TableRow BackColor="white">
<asp:TableCell VerticalAlign="Top"></asp:TableCell>
<asp:TableCell VerticalAlign="Top"></asp:TableCell>
<asp:TableCell VerticalAlign="Top"><asp:Button ID="btnSend" runat="server"
Text=" send now " OnClick="btnSend_Click" /></asp:TableCell>
</asp:TableRow>
Alexey Smirnov - 23 Jul 2007 20:57 GMT
> here is the error:
> Literal content ('<asp:TableRow BackColor="white"') is not allowed within a
[quoted text clipped - 21 lines]
> Text=" send now " OnClick="btnSend_Click" /></asp:TableCell>
> </asp:TableRow>

If I copy your code to my application, it shows me a table with an
input form. No error occurred
Brandon Gano - 23 Jul 2007 23:46 GMT
My guess is you have a stray character somewhere outside an <asp:TableCell
/>. Possibly an extra < or >?

> here is the error:
> Literal content ('<asp:TableRow BackColor="white"') is not allowed within
[quoted text clipped - 21 lines]
> Text=" send now " OnClick="btnSend_Click" /></asp:TableCell>
> </asp:TableRow>
Jassim Rahma - 24 Jul 2007 10:04 GMT
i have just uploaded the same file again and it worked fine..

thank you

> here is the error:
> Literal content ('<asp:TableRow BackColor="white"') is not allowed within
[quoted text clipped - 21 lines]
> Text=" send now " OnClick="btnSend_Click" /></asp:TableCell>
> </asp:TableRow>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.