I just recently converted a project from VS 2003 to VS 2005. The
problem I am having is that I have a lot of tables that are built as
repeaters in the code, like this one:
<asp:repeater id="rptrprerequ isites" runat="server">
<HeaderTemplate >
<table width="100%" border="0" cellspacing="0" cellpadding="0"
class="mainCont entTable" ID="Table23">
<tr>
<td width="0%" class="tableHea d3"> </td>
<td width="60%" class="tableHea d3">Course Name</td>
<td width="25%" class="tableHea d3">Course #</td>
<td width="15%" class="tableHea d3">Required</td>
</tr>
</HeaderTemplate>
<ItemTemplate >
<tr>
<td width="0%" class="row2">&n bsp;</td>
<td width="60%" class="redEmp">
<%#DataBinder.E val(Container.D ataItem, "CourseTitle")% ></td>
<td width="25%" class="row2"<%# DataBinder.Eval (Container.Data Item,
"CourseNumber") %></td>
<td width="15%" align="center" class="redEmp">
<%#DataBinder.E val(Container.D ataItem, "Required") %></td>
</tr>
<tr>
<td colspan="6" class="rowDivid er" height="1"></td>
</tr>
</ItemTemplate>
<FooterTemplate >
</table>
</FooterTemplate>
</asp:repeater>
The problem is, I can't change into design mode because the editor
views this as invalid HTML because of the odd placement of the table
tags. How can I get around this?
Jason 1 1289
I checked it again. The problem comes when you have it inside another
table element. VS seems to think that that is the closing tag for the
table element on the outside, rather than part of the the Repeater
code.
Jason
Peter Bromberg [ C# MVP ] wrote:
I just pasted your sample code into a new page and the only thing I had to do
to get it to switch to design mode was to add an HTML and a BODY tagset.
All you have to do is pay attention to the "Can not Switch" errors and fix
them. Alternatively, I believe there are settings in Tools/Options that allow
you to turn off HTML strict checking, but I'd recommend that instead, you
make sure your HTML Is compliant.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"TheLongsho t" wrote:
I just recently converted a project from VS 2003 to VS 2005. The
problem I am having is that I have a lot of tables that are built as
repeaters in the code, like this one:
<asp:repeater id="rptrprerequ isites" runat="server">
<HeaderTemplate >
<table width="100%" border="0" cellspacing="0" cellpadding="0"
class="mainCont entTable" ID="Table23">
<tr>
<td width="0%" class="tableHea d3"</td>
<td width="60%" class="tableHea d3">Course Name</td>
<td width="25%" class="tableHea d3">Course #</td>
<td width="15%" class="tableHea d3">Required</td>
</tr>
</HeaderTemplate>
<ItemTemplate >
<tr>
<td width="0%" class="row2"</td>
<td width="60%" class="redEmp">
<%#DataBinder.E val(Container.D ataItem, "CourseTitle")% ></td>
<td width="25%" class="row2"<%# DataBinder.Eval (Container.Data Item,
"CourseNumber") %></td>
<td width="15%" align="center" class="redEmp">
<%#DataBinder.E val(Container.D ataItem, "Required") %></td>
</tr>
<tr>
<td colspan="6" class="rowDivid er" height="1"></td>
</tr>
</ItemTemplate>
<FooterTemplate >
</table>
</FooterTemplate>
</asp:repeater>
The problem is, I can't change into design mode because the editor
views this as invalid HTML because of the odd placement of the table
tags. How can I get around this?
Jason This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Matthew Wells |
last post by:
I have a a parent form with a subform. The parent form has two command
buttons to change the subform view to single form view and datasheet view
respectively. I can't seem to get this to work. There is a menu item to
switch to datasheet view, but it won't go back to form view. The only way I
see so far is to open the subform by itself in design view, change the
default view, save & close, then set the sourceobject property in the main...
|
by: Niall |
last post by:
I have converted a vs 2003 solution to 2005 and when I try to switch to
design mode for a user control I get:
Cannot switch views: Validation (Internet Explorer 6): Element 'Style'
cannot be nested within element 'div'
Here is the html:
<div style="z-index: 101; left: 1px; width: 541px; position: absolute; top:
|
by: Nogusta123 |
last post by:
Hi,
I have had a lot of problems getting web pages, master pages and
content pages to render in VS2005 design view the same as they would in
Internet Explorer. I did a lot of looking on the internet for answers
but didn't have much luck. Anyway I believe I have found the causes of
the problems and thought I should share them in case any one else is
feeling the pain and also to find out what other peoples opinions are,
on whether these...
|
by: Rolf Welskes |
last post by:
Hello,
for a large web site project we would like to use nested Master Pages.
Unfortunely VS2005 is not able to show pages in design mode when
nested Master pages are used.
This has the consequence that also each content page cannot be used in
design mode.
It is impossible to design hundrets of pages in source mode without design
|
by: Chris Davoli |
last post by:
I'm using Visual Studio 2005 to build my web pages. This works fine except
for using the VS2005 design mode and inserting panels to not display some
rows (before and after TR tags), it won't show the html inside the panels. I
have the panel set to visible= true, and it renders the html correctly when I
browse the page, but in the WSIWIG design mode in VS2005, it doesn't show the
html in between the panel tags. This makes it hard to...
| |
by: .:Alex:. |
last post by:
Hello,
I have this very annoying problem. for example I have a class , a
partial class of a Form. When I modify some code in this class and I switch
to the Form, I have to wait some time to refresh the control. It's very
interesting because I don't modify a param regarding the form...
There is a solution to stop this refresh when I switch between Code and
Form?
|
by: teixeira1985 |
last post by:
Hi ,
Due an unknown cause VS2005 started to show an error when i switch
from code to design in windows forms projects.
I repaired the installation but the same happens.
The error is:
One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project,
while others may require code changes.
|
by: K Viltersten |
last post by:
We have a project working well today and it's developed
on VS2005. Since we're planing to switch to VS2008 in a
soon future, i've been trying to move the project to
VS2008 Express (Web Developer).
After i've moved over all the files, i run into problems
compiling and running it. Both versions of VS are run on
the same computer (with the sam settings, of course).
Still, when i try to run index.aspx, i get error message
as follows:
|
by: programmerx101 |
last post by:
Ok, I'm looking for expert advice on this one.
I have a database which keeps going into read_only mode. Sometimes it goes into read_only / single user mode. Once it was taken offline completely. This seemingly happens randomly. Out of all of the database I have worked with, this has happened on 3 of them - several times randomly to each. All three of the databases that have exhibited this behaviour have been databases I have written for the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |