473,781 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error w/user control "could not reformat..."

I created a simple user control and placed it on another page. Often I get
this error:

"Could not reformat the document due to line 27. The original format was
restored."

Line 27 in the HTML is this:
<uc1:_Header id=_Header1 runat="server"> </uc1:_Header></TD></TR>

Any ideas?

Thanks.
Nov 18 '05 #1
2 3732
Are you allowed to have 2 user ctrls with the same tagprefix? By default it
made them both "uc1".

Here's the HTML:

<%@ Page Language="vb" AutoEventWireup ="false" Codebehind="QCD ata.aspx.vb"
Inherits="DMSI. QCData"%>
<%@ Register TagPrefix="uc1" TagName="_Heade r" Src="_Header.as cx" %>
<%@ Register TagPrefix="uc1" TagName="_Navig ation" Src="_Navigatio n.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>QCData </title>
<meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<P align="center">
<TABLE id="Table1" style="WIDTH: 779px; HEIGHT: 768px" cellSpacing="0"
cellPadding="0"
width="779" border="0">
<TR>
<TD vAlign="top" align="center" colSpan="1" rowSpan="2">
<TABLE id="Table2" style="WIDTH: 779px; HEIGHT: 752px"
cellSpacing="0" cellPadding="0"
width="779" border="0">
</TABLE>
<TABLE id="Table3" style="WIDTH: 779px; HEIGHT: 768px"
cellSpacing="0" cellPadding="0"
width="779" border="0">
<TR>
<TD style="HEIGHT: 4px">
<uc1:_Header id=_Header1 runat="server"> </uc1:_Header></TD>
</TR>
<TR>
<TD style="HEIGHT: 149px" vAlign="top" align="center">
<TABLE id="Table4" style="WIDTH: 779px; HEIGHT: 702px"
cellSpacing="0" cellPadding="0"
width="779" border="0">
<TR>
<TD style="WIDTH: 52px" vAlign="top" align="left">
<uc1:_Navigatio n id=_Navigation1 runat="server"> </uc1:_Navigation ></TD>
<TD></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</P>
</form>
</body>
</HTML>

"VB Programmer" <Do************ *****@jEmail.co m> wrote in message
news:u0******** ******@TK2MSFTN GP09.phx.gbl...
I created a simple user control and placed it on another page. Often I get this error:

"Could not reformat the document due to line 27. The original format was
restored."

Line 27 in the HTML is this:
<uc1:_Header id=_Header1 runat="server"> </uc1:_Header></TD></TR>

Any ideas?

Thanks.

Nov 18 '05 #2
Figured it out. It was the underscore in the name.

"VB Programmer" <Do************ *****@jEmail.co m> wrote in message
news:eG******** *****@TK2MSFTNG P09.phx.gbl...
Are you allowed to have 2 user ctrls with the same tagprefix? By default it made them both "uc1".

Here's the HTML:

<%@ Page Language="vb" AutoEventWireup ="false" Codebehind="QCD ata.aspx.vb"
Inherits="DMSI. QCData"%>
<%@ Register TagPrefix="uc1" TagName="_Heade r" Src="_Header.as cx" %>
<%@ Register TagPrefix="uc1" TagName="_Navig ation" Src="_Navigatio n.ascx" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>QCData </title>
<meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<P align="center">
<TABLE id="Table1" style="WIDTH: 779px; HEIGHT: 768px" cellSpacing="0"
cellPadding="0"
width="779" border="0">
<TR>
<TD vAlign="top" align="center" colSpan="1" rowSpan="2">
<TABLE id="Table2" style="WIDTH: 779px; HEIGHT: 752px"
cellSpacing="0" cellPadding="0"
width="779" border="0">
</TABLE>
<TABLE id="Table3" style="WIDTH: 779px; HEIGHT: 768px"
cellSpacing="0" cellPadding="0"
width="779" border="0">
<TR>
<TD style="HEIGHT: 4px">
<uc1:_Header id=_Header1 runat="server"> </uc1:_Header></TD>
</TR>
<TR>
<TD style="HEIGHT: 149px" vAlign="top" align="center">
<TABLE id="Table4" style="WIDTH: 779px; HEIGHT: 702px"
cellSpacing="0" cellPadding="0"
width="779" border="0">
<TR>
<TD style="WIDTH: 52px" vAlign="top" align="left">
<uc1:_Navigatio n id=_Navigation1 runat="server"> </uc1:_Navigation ></TD>
<TD></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</P>
</form>
</body>
</HTML>

"VB Programmer" <Do************ *****@jEmail.co m> wrote in message
news:u0******** ******@TK2MSFTN GP09.phx.gbl...
I created a simple user control and placed it on another page. Often I

get
this error:

"Could not reformat the document due to line 27. The original format was restored."

Line 27 in the HTML is this:
<uc1:_Header id=_Header1 runat="server"> </uc1:_Header></TD></TR>

Any ideas?

Thanks.


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
5450
by: Christopher Parent | last post by:
I have perused through the groups and a couple C++ manuals and haven't been able to figure this one out. Maybe I'm staring at it too much. Here's the setup, I have 2 files. One is a library and one is the program source: MyLibrary.C ----------- int InstallSigHandler( void (*sigHandler) (int) ) {
3
3968
by: Brian Fulford | last post by:
I am trying to deploy a web app with a deployment project since I am including Crystal Reports for .Net. I attached all the merge modules, etc but I am getting a build error when I try to build the setup project. Could not find file 'C;\Web\ccsm\ccsm_search.aspx' 'Interface not registered' Thie file is included in the project, so I am not sure what is going on!!
3
7592
by: stash | last post by:
Help - Please! I am trying to run the V8 db2setup script *again* (maybe for the third or fourth time) and it will not re-create the sqllib directory. It always stops with this error: ERROR:Could not switch current DB2INSTANCE to "db2inst1". The return code is "-2029059916". Then it follows with : ERROR:DBI1122E Instance db2inst1 cannot be updated. In between attempts we have uninstalled all DB2 products (using SMIT) - we have killed...
3
2347
by: tony | last post by:
Hello! When I build an exe file that use 6 class library dll I get this error. Could not copy temporary files to the output directory. The file 'MeltPracStorage.dll' cannot be copied to the run directory. Det går inte att komma åt filen eftersom den används av en annan process. All six project is located in the solution that build the exe file This compile error occurred when I add project 'MeltPracStorage to the
1
7944
by: amindi | last post by:
Hi, I wrote a VB6 program to read some data records from a Ms Access database and to write them into a SQL server database.(I use Ms Access 2000 and SQL server 2000).After reading each record in Access database, I update a text type datafield of that record in Access database to 'Y' (to mark the perticular record as a copied record)(The program does the updation). I tested the program several times by using a seperate copy of the same database...
0
2638
by: Jon Paal | last post by:
error : "Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'." using VWD 2005 with sqlexpress 2005 I am trying to create membership roles and users......
3
8494
by: Nitinkcv | last post by:
Hi, While trying to run my app im getting the error Could not find a part of the path "c:\inetpub\wwwroot\Do not Delete\dbglobal.config". I checked and found that there is no Important_Do not Delete folder inside the wwwroot. The error occurs when i try to use the following code: //inside my test.aspx
2
5900
by: Sejoro | last post by:
Hello, I am trying to write a program that opens a file; reads through it; outputs the text; then outputs the number of lines, words, and characters. Problem is, every time I try to compile, no matter what modifications I make, I get an error, "line 42: Error: Could not find a match for std::basic_istream<char, std::char_traits<char>>::get(int)." I have tried everything I can think of. Help? #include <iostream> #include <fstream>
0
2292
by: =?Utf-8?B?eHl6X2phdA==?= | last post by:
I have a winodws service which sends email using Domino. The service is installed using System Account but it is not able to send emails and gives following error - Error Message: Notes error: Could not open the ID file Error Source: NotesSession Error Stack: at Domino.NotesSessionClass.Initialize(String pPassword) at JPMorganChase.Patrol.Notification.Library.LotusNotes.Email..ctor(String NotesDatabase, String NotesPassword)
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10308
Oralloy
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...
1
10076
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,...
1
7486
isladogs
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...
0
6729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5507
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4040
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
3
2870
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.