Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 08, 2012 02:16 AM by Catherine Shan - MSFT
Member
4 Points
5 Posts
Nov 06, 2012 02:16 PM|LINK
Hi,
I have an WebSite project, my web application has Master page and content page. I'm using VS 2012 + Web Dev Server Cassini.
I have aspx page with html table inside asp:Repeater control. All works fine. But sometimes the process of page rendering breaks.
And I get a broken HTML Document. The table layout lacking pieces, as if someone took and cut them.
Nov 06, 2012 02:26 PM|LINK
For example, instead of
<table width="100%" style="text-align: center; table-layout: fixed;"> <tr class="zebraRowHeader"> <th style="width: 31px;" class="WordWrapped"></th> <th style="width: 42px;" class="WordWrapped TDCenterVert">DecType </th> <th style="width: 96px;" class="WordWrapped TDCenterVert">Reg Number </th> <th style="width: 116px;" class="WordWrapped TDCenterVert">Reg Date </th> <th style="width: 86px;" class="WordWrapped">PDB Number </th> <th style="width: 96px;" class="WordWrapped TDCenterVert">Req Type </th> <th style="width: 206px;" class="WordWrapped">PDB Name </th> <th style="width: 206px;" class="WordWrapped">Holder </th> <th class="WordWrapped">State </th> </tr> <tr class="zebraRow"> <td class="WordWrapped"> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$ID" id="ctl00_MainContent_rptrSearchResult_ctl01_ID" value="6052" /> <input id="ctl00_MainContent_rptrSearchResult_ctl01_chkSelection" type="checkbox" name="ctl00$MainContent$rptrSearchResult$ctl01$chkSelection" /> </td> <td class="WordWrapped TDCenterVert"> <img src="/drbpd/app_themes/default/images/zay_icons_01.png" alt="Паперова" title="Паперова" /> </td> <td class="WordWrapped TDCenterVert"> <a href='/drbpd/registrar/declaration/views/extractdeclarationviewer.aspx?decid=6052'>6052</a> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$hDecId" id="ctl00_MainContent_rptrSearchResult_ctl01_hDecId" value="6052" /> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$hDecTS" id="ctl00_MainContent_rptrSearchResult_ctl01_hDecTS" value="634872909684080000" /> </td> <td class="WordWrapped TDCenterVert">25.10.2011 18:22:00 </td> <td class="WordWrapped"> <a href='/drbpd/registrar/registration/dbinfo.aspx?act=view&pdbid=2397'>2397</a> </td> <td class="WordWrapped">PDB Register </td> <td class="WordWrapped"></td> <td class="WordWrapped TDText"></td> <td class="WordWrapped">Registered </td> </tr> <tr class="zebraRow"> <td class="WordWrapped"> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$ID" id="Hidden1" value="6052" /> <input id="Checkbox1" type="checkbox" name="ctl00$MainContent$rptrSearchResult$ctl01$chkSelection" /> </td> <td class="WordWrapped TDCenterVert"> <img src="/drbpd/app_themes/default/images/zay_icons_01.png" alt="Паперова" title="Паперова" /> </td> <td class="WordWrapped TDCenterVert"> <a href='/drbpd/registrar/declaration/views/extractdeclarationviewer.aspx?decid=6052'>6052</a> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$hDecId" id="Hidden2" value="6052" /> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$hDecTS" id="Hidden3" value="634872909684080000" /> </td> <td class="WordWrapped TDCenterVert">25.10.2011 18:22:00 </td> <td class="WordWrapped"> <a href='/drbpd/registrar/registration/dbinfo.aspx?act=view&pdbid=2397'>2397</a> </td> <td class="WordWrapped">PDB Register </td> <td class="WordWrapped"></td> <td class="WordWrapped TDText"></td> <td class="WordWrapped">Registered </td> </tr> </table>
Nov 06, 2012 02:28 PM|LINK
I get
<table width="100%" style="text-align: center; table-layout: fixed;"> <tr class="zebraRowHeader"> <th style="width: 31px;" class="WordWrapped"></th> <th style="width: 42px;" class="WordWrapped TDCenterVert">DecType </th> <th style="width: 96px;" class="WordWrapped TDCenterVert">Reg Number </th> <th style="width: 116px;" class="WordWrapped TDCenterVert">Reg Date </th> <th style="width: 86px;" class="WordWrapped">PDB Number </th> <th style="width: 96px;" class="WordWrapped TDCenterVert">Req Type </th> <th style="width: 206px;" class="WordWrapped">PDB Name </th> <th style="width: 206px;" class="WordWrapped">Holder </th> <th class="WordWrapped">State </th> </tr> <tr class="zebraRow"> <td class="WordWrapped"> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$ID" id="ctl00_MainContent_rptrSearchResult_ctl01_ID" value="6052" /> <input id="ctl00_MainContent_rptrSearchResult_ctl01_chkSelection" type="checkbox" name="ctl00$MainContent$rptrSearchResult$ctl01$chkSelection" /> </td> <td class="WordWrapped TDCenterVert"> <img src="/drbpd/app_themes/default/images/zay_icons_01.png" alt="Паперова" title="Паперова" /> </td> <td class="WordWrapped TDCenterVert"> <a href='/drbpd/registrar/declaration/views/extractdeclarationviewer.aspx?decid=6052'>6052</a> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$hDecId" id="ctl00_MainContent_rptrSearchResult_ctl01_hDecId" value="6052" /> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$hDecTS" id="ctl00_MainContent_rptrSearchResult_ctl01_hDecTS" value="634872909684080000" /> </td> <td class="WordWrapped TDCenterVert">25.10.2011 18:22:00 </td> <td class="WordWrapped"> <a href='/drbpd/registrar/registration/dbinfo.aspx?act=view&pdbid=2397'>2397</a> </td> <td class="WordWrapped">PDB Register </td> <td class="WordWrapped"></td> <td class="WordWrapped TDText"></td> <td class="WordWrapped">Registered </td> </tr> <tr class="zebraRowLight"> <td class="WordWrapped"> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl08$ID" id="ctl00_MainContent_rptrSearchResult_ctl08_ID" value="6095" /> <input id="ctl00_MainContent_rptrSearchResult_ctl08_chkSelection" type="checkbox" name="ctl00$MainContent$rptrSearchResult$ctl08$chkSelection" /> </td> <td class="WordWrapped TDCenterVert"> <img src="/drbpd/app_themes/default/images/zay_icons_01.png" alt="Паперова" title="Паперова" /> </td> <td class="WordWrapped TDCenterVert"> <a href='/drbpd/registrar/declaration/views/changenotificationviewer.aspx?decid=6095'>6095</a> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl08$hDecId" id="ctl00_MainContent_rptrSearchResult_ctl08_hDecId" value="6095" /> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl08$hDecTS" id="ctl00_MainContent_rptrSearchResult_ctl08_hDecTS" value="634553978955820000" /> </td> <td class="WordWrapped TDCenterVert">28.10.2011 11:24:55 </td> <td class="WordWrapped"> <a href='/drbpd/registrar/registration/dbinfo.aspx?act=view&pdbid=2222'>2222</a> </td> <td class="WordWrapped">Changes </td> <td class="WordWrapped"> put type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl09$hDecTS" id="ctl00_MainContent_rptrSearchResult_ctl09_hDecTS" value="634554000731100000" /> </td> <td class="WordWrapped TDCenterVert">28.10.2011 12:01:13 </td> <td class="WordWrapped"> <a href='/drbpd/registrar/registration/dbinfo.aspx?act=view&pdbid=2222'>2222</a> </td> <td class="WordWrapped">Changes </td> <td class="WordWrapped"></td> <td class="WordWrapped TDText"></td> <td class="WordWrapped">Registered </td> </tr> </table>
All-Star
23382 Points
2490 Posts
Microsoft
Nov 08, 2012 02:16 AM|LINK
Igon But sometimes the process of page rendering breaks. And I get a broken HTML Document. The table layout lacking pieces, as if someone took and cut them.
But sometimes the process of page rendering breaks.
According to your description, it is hard to say what is the main issue. Please check the demo below which shows how to add a table in the Repeater:
<asp:Repeater ID="cdcatalog" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr> <th> Title </th> <th> Artist </th> <th> Country </th> <th> Company </th> <th> Price </th> <th> Year </th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td> <asp:Label ID="Label1" runat="server" Text="Label1"></asp:Label> </td> <td> <asp:Label ID="Label2" runat="server" Text="Label2"></asp:Label> </td> <td> <asp:Label ID="Label3" runat="server" Text="Label3"></asp:Label> </td> <td> <asp:Label ID="Label4" runat="server" Text="Label4"></asp:Label> </td> <td> <asp:Label ID="Label5" runat="server" Text="Label5"></asp:Label> </td> <td> <table border="1"> <tr> <th> Month </th> <th> Savings </th> </tr> <tr> <td> January </td> <td> $100 </td> </tr> </table> </td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater>
Best wishes,
Igon
Member
4 Points
5 Posts
asp:Repeater + table
Nov 06, 2012 02:16 PM|LINK
Hi,
I have an WebSite project, my web application has Master page and content page. I'm using VS 2012 + Web Dev Server Cassini.
I have aspx page with html table inside asp:Repeater control. All works fine. But sometimes the process of page rendering breaks.
And I get a broken HTML Document. The table layout lacking pieces, as if someone took and cut them.
Igon
Member
4 Points
5 Posts
Re: asp:Repeater + table
Nov 06, 2012 02:26 PM|LINK
<table width="100%" style="text-align: center; table-layout: fixed;"> <tr class="zebraRowHeader"> <th style="width: 31px;" class="WordWrapped"></th> <th style="width: 42px;" class="WordWrapped TDCenterVert">DecType </th> <th style="width: 96px;" class="WordWrapped TDCenterVert">Reg Number </th> <th style="width: 116px;" class="WordWrapped TDCenterVert">Reg Date </th> <th style="width: 86px;" class="WordWrapped">PDB Number </th> <th style="width: 96px;" class="WordWrapped TDCenterVert">Req Type </th> <th style="width: 206px;" class="WordWrapped">PDB Name </th> <th style="width: 206px;" class="WordWrapped">Holder </th> <th class="WordWrapped">State </th> </tr> <tr class="zebraRow"> <td class="WordWrapped"> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$ID" id="ctl00_MainContent_rptrSearchResult_ctl01_ID" value="6052" /> <input id="ctl00_MainContent_rptrSearchResult_ctl01_chkSelection" type="checkbox" name="ctl00$MainContent$rptrSearchResult$ctl01$chkSelection" /> </td> <td class="WordWrapped TDCenterVert"> <img src="/drbpd/app_themes/default/images/zay_icons_01.png" alt="Паперова" title="Паперова" /> </td> <td class="WordWrapped TDCenterVert"> <a href='/drbpd/registrar/declaration/views/extractdeclarationviewer.aspx?decid=6052'>6052</a> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$hDecId" id="ctl00_MainContent_rptrSearchResult_ctl01_hDecId" value="6052" /> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$hDecTS" id="ctl00_MainContent_rptrSearchResult_ctl01_hDecTS" value="634872909684080000" /> </td> <td class="WordWrapped TDCenterVert">25.10.2011 18:22:00 </td> <td class="WordWrapped"> <a href='/drbpd/registrar/registration/dbinfo.aspx?act=view&pdbid=2397'>2397</a> </td> <td class="WordWrapped">PDB Register </td> <td class="WordWrapped"></td> <td class="WordWrapped TDText"></td> <td class="WordWrapped">Registered </td> </tr> <tr class="zebraRow"> <td class="WordWrapped"> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$ID" id="Hidden1" value="6052" /> <input id="Checkbox1" type="checkbox" name="ctl00$MainContent$rptrSearchResult$ctl01$chkSelection" /> </td> <td class="WordWrapped TDCenterVert"> <img src="/drbpd/app_themes/default/images/zay_icons_01.png" alt="Паперова" title="Паперова" /> </td> <td class="WordWrapped TDCenterVert"> <a href='/drbpd/registrar/declaration/views/extractdeclarationviewer.aspx?decid=6052'>6052</a> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$hDecId" id="Hidden2" value="6052" /> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$hDecTS" id="Hidden3" value="634872909684080000" /> </td> <td class="WordWrapped TDCenterVert">25.10.2011 18:22:00 </td> <td class="WordWrapped"> <a href='/drbpd/registrar/registration/dbinfo.aspx?act=view&pdbid=2397'>2397</a> </td> <td class="WordWrapped">PDB Register </td> <td class="WordWrapped"></td> <td class="WordWrapped TDText"></td> <td class="WordWrapped">Registered </td> </tr> </table>Igon
Member
4 Points
5 Posts
Re: asp:Repeater + table
Nov 06, 2012 02:28 PM|LINK
I get
<table width="100%" style="text-align: center; table-layout: fixed;"> <tr class="zebraRowHeader"> <th style="width: 31px;" class="WordWrapped"></th> <th style="width: 42px;" class="WordWrapped TDCenterVert">DecType </th> <th style="width: 96px;" class="WordWrapped TDCenterVert">Reg Number </th> <th style="width: 116px;" class="WordWrapped TDCenterVert">Reg Date </th> <th style="width: 86px;" class="WordWrapped">PDB Number </th> <th style="width: 96px;" class="WordWrapped TDCenterVert">Req Type </th> <th style="width: 206px;" class="WordWrapped">PDB Name </th> <th style="width: 206px;" class="WordWrapped">Holder </th> <th class="WordWrapped">State </th> </tr> <tr class="zebraRow"> <td class="WordWrapped"> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$ID" id="ctl00_MainContent_rptrSearchResult_ctl01_ID" value="6052" /> <input id="ctl00_MainContent_rptrSearchResult_ctl01_chkSelection" type="checkbox" name="ctl00$MainContent$rptrSearchResult$ctl01$chkSelection" /> </td> <td class="WordWrapped TDCenterVert"> <img src="/drbpd/app_themes/default/images/zay_icons_01.png" alt="Паперова" title="Паперова" /> </td> <td class="WordWrapped TDCenterVert"> <a href='/drbpd/registrar/declaration/views/extractdeclarationviewer.aspx?decid=6052'>6052</a> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$hDecId" id="ctl00_MainContent_rptrSearchResult_ctl01_hDecId" value="6052" /> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl01$hDecTS" id="ctl00_MainContent_rptrSearchResult_ctl01_hDecTS" value="634872909684080000" /> </td> <td class="WordWrapped TDCenterVert">25.10.2011 18:22:00 </td> <td class="WordWrapped"> <a href='/drbpd/registrar/registration/dbinfo.aspx?act=view&pdbid=2397'>2397</a> </td> <td class="WordWrapped">PDB Register </td> <td class="WordWrapped"></td> <td class="WordWrapped TDText"></td> <td class="WordWrapped">Registered </td> </tr> <tr class="zebraRowLight"> <td class="WordWrapped"> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl08$ID" id="ctl00_MainContent_rptrSearchResult_ctl08_ID" value="6095" /> <input id="ctl00_MainContent_rptrSearchResult_ctl08_chkSelection" type="checkbox" name="ctl00$MainContent$rptrSearchResult$ctl08$chkSelection" /> </td> <td class="WordWrapped TDCenterVert"> <img src="/drbpd/app_themes/default/images/zay_icons_01.png" alt="Паперова" title="Паперова" /> </td> <td class="WordWrapped TDCenterVert"> <a href='/drbpd/registrar/declaration/views/changenotificationviewer.aspx?decid=6095'>6095</a> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl08$hDecId" id="ctl00_MainContent_rptrSearchResult_ctl08_hDecId" value="6095" /> <input type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl08$hDecTS" id="ctl00_MainContent_rptrSearchResult_ctl08_hDecTS" value="634553978955820000" /> </td> <td class="WordWrapped TDCenterVert">28.10.2011 11:24:55 </td> <td class="WordWrapped"> <a href='/drbpd/registrar/registration/dbinfo.aspx?act=view&pdbid=2222'>2222</a> </td> <td class="WordWrapped">Changes </td> <td class="WordWrapped"> put type="hidden" name="ctl00$MainContent$rptrSearchResult$ctl09$hDecTS" id="ctl00_MainContent_rptrSearchResult_ctl09_hDecTS" value="634554000731100000" /> </td> <td class="WordWrapped TDCenterVert">28.10.2011 12:01:13 </td> <td class="WordWrapped"> <a href='/drbpd/registrar/registration/dbinfo.aspx?act=view&pdbid=2222'>2222</a> </td> <td class="WordWrapped">Changes </td> <td class="WordWrapped"></td> <td class="WordWrapped TDText"></td> <td class="WordWrapped">Registered </td> </tr> </table>Catherine Sh...
All-Star
23382 Points
2490 Posts
Microsoft
Re: asp:Repeater + table
Nov 08, 2012 02:16 AM|LINK
Hi,
According to your description, it is hard to say what is the main issue. Please check the demo below which shows how to add a table in the Repeater:
<asp:Repeater ID="cdcatalog" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr> <th> Title </th> <th> Artist </th> <th> Country </th> <th> Company </th> <th> Price </th> <th> Year </th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td> <asp:Label ID="Label1" runat="server" Text="Label1"></asp:Label> </td> <td> <asp:Label ID="Label2" runat="server" Text="Label2"></asp:Label> </td> <td> <asp:Label ID="Label3" runat="server" Text="Label3"></asp:Label> </td> <td> <asp:Label ID="Label4" runat="server" Text="Label4"></asp:Label> </td> <td> <asp:Label ID="Label5" runat="server" Text="Label5"></asp:Label> </td> <td> <table border="1"> <tr> <th> Month </th> <th> Savings </th> </tr> <tr> <td> January </td> <td> $100 </td> </tr> </table> </td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater>Best wishes,
Feedback to us
Develop and promote your apps in Windows Store