473,503 Members | 12,516 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what the heck?!?!?!?

ok - I've pissed away a morning on this. I keep getting a 'Server Tag is not
well formed' error on a page. I have simplified the page to the point of
ridiculous - and it still fails. The problem is related to the assignment to
'bightml2' in the JS.

If I change it to read "...runat="qqqqqq" then it works, but
"...runat="server" fails!!!!!

PLEASE can someone point me in the right direction?

Paul.
--
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb"
Inherits="ScheduleA.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/nav4-0"><script
language=javascript>
<!--
function testit(){
var bightml2
bightml2='style="WIDTH: 24px"type="text" size="1" value="1" name="txtNumber"
runat="server">'
alert (bightml)

}

//-->
</script>

</head>
<body MS_POSITIONING="FlowLayout">

<form id="Form1" method="post" runat="server">

</form>

</body>
</html>

Nov 19 '05 #1
4 1018
This does not look right.

bightml2='style="WIDTH: 24px"type="text" size="1" value="1"
name="txtNumber"

There are extra quotes

Nov 19 '05 #2
you probably need to get the asp.net parser to stop looking at the literal
JS string.

Do that by breaking it up, and besides it doesn't make sense to output
"runat=server" on client side code!

--
Eric Newton
eric.at.ensoft-software.com
www.ensoft-software.com
C#/ASP.net Solutions developer

"Paul W" <qq*@qqq.com> wrote in message
news:%2********************@TK2MSFTNGP10.phx.gbl.. .
ok - I've pissed away a morning on this. I keep getting a 'Server Tag is
not well formed' error on a page. I have simplified the page to the point
of ridiculous - and it still fails. The problem is related to the
assignment to 'bightml2' in the JS.

If I change it to read "...runat="qqqqqq" then it works, but
"...runat="server" fails!!!!!

PLEASE can someone point me in the right direction?

Paul.
--
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="ScheduleA.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/nav4-0"><script
language=javascript>
<!--
function testit(){
var bightml2
bightml2='style="WIDTH: 24px"type="text" size="1" value="1"
name="txtNumber" runat="server">'
alert (bightml)

}

//-->
</script>

</head>
<body MS_POSITIONING="FlowLayout">

<form id="Form1" method="post" runat="server">

</form>

</body>
</html>

Nov 19 '05 #3
when asp.net parses the html if it sees a runat=server, it expects to be
inside a valid tag. in this case its not so it gives the error. the fix is:

var bightml2 ='style="WIDTH: 24px"type="text" size="1" value="1"
name="txtNumber"
runat' + ' ="server">'

of course javascrip emitted html is only processed by the browser, so
runat=server is meanless. so you could just use:

var bightml2 ='style="WIDTH: 24px"type="text" size="1" value="1"
name="txtNumber" >'

-- bruce (sqlwork.com)

"Paul W" <qq*@qqq.com> wrote in message
news:%2********************@TK2MSFTNGP10.phx.gbl.. .
ok - I've pissed away a morning on this. I keep getting a 'Server Tag is
not well formed' error on a page. I have simplified the page to the point
of ridiculous - and it still fails. The problem is related to the
assignment to 'bightml2' in the JS.

If I change it to read "...runat="qqqqqq" then it works, but
"...runat="server" fails!!!!!

PLEASE can someone point me in the right direction?

Paul.
--
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="ScheduleA.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/nav4-0"><script
language=javascript>
<!--
function testit(){
var bightml2
bightml2='style="WIDTH: 24px"type="text" size="1" value="1"
name="txtNumber" runat="server">'
alert (bightml)

}

//-->
</script>

</head>
<body MS_POSITIONING="FlowLayout">

<form id="Form1" method="post" runat="server">

</form>

</body>
</html>

Nov 19 '05 #4
Thanks,

Paul.
"Bruce Barker" <br******************@safeco.com> wrote in message
news:uh**************@TK2MSFTNGP15.phx.gbl...
when asp.net parses the html if it sees a runat=server, it expects to be
inside a valid tag. in this case its not so it gives the error. the fix
is:

var bightml2 ='style="WIDTH: 24px"type="text" size="1" value="1"
name="txtNumber"
runat' + ' ="server">'

of course javascrip emitted html is only processed by the browser, so
runat=server is meanless. so you could just use:

var bightml2 ='style="WIDTH: 24px"type="text" size="1" value="1"
name="txtNumber" >'

-- bruce (sqlwork.com)

"Paul W" <qq*@qqq.com> wrote in message
news:%2********************@TK2MSFTNGP10.phx.gbl.. .
ok - I've pissed away a morning on this. I keep getting a 'Server Tag is
not well formed' error on a page. I have simplified the page to the point
of ridiculous - and it still fails. The problem is related to the
assignment to 'bightml2' in the JS.

If I change it to read "...runat="qqqqqq" then it works, but
"...runat="server" fails!!!!!

PLEASE can someone point me in the right direction?

Paul.
--
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="ScheduleA.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/nav4-0"><script
language=javascript>
<!--
function testit(){
var bightml2
bightml2='style="WIDTH: 24px"type="text" size="1" value="1"
name="txtNumber" runat="server">'
alert (bightml)

}

//-->
</script>

</head>
<body MS_POSITIONING="FlowLayout">

<form id="Form1" method="post" runat="server">

</form>

</body>
</html>


Nov 19 '05 #5

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

Similar topics

15
6828
by: lkrubner | last post by:
I want to give users the power to edit files from an easy interface, so I create a form and a PHP script called "fileUpdate". It does a reasonable about of error checking and prints out some...
2
1454
by: Michael Bradley-Robbins | last post by:
I have written a program that prints out all the values from a mysql database. I am using PEAR to help me along, btw. Anyway, whatever I do, there is an error that says "PHP Parse error: syntax...
92
6331
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption?...
125
14539
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
22
3706
by: MLH | last post by:
I have some audio help files that play fine from within Access 97 and Access 2.0. Both are running on a Windows XP box. But I do not know what program plays the files. If I click Start, Run and...
46
4154
by: Keith K | last post by:
Having developed with VB since 1992, I am now VERY interested in C#. I've written several applications with C# and I do enjoy the language. What C# Needs: There are a few things that I do...
4
1720
by: Randy | last post by:
Compiling the following code #include <iostream> #include "cenum.h" using namespace std; class Test { CEnum MyCars("CAR", "Mustang, Nova, Pinto, Barracuda");
669
25394
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
1
1661
by: =?Utf-8?B?SlA=?= | last post by:
I’m trying to create web services in 2005. Why in the heck does VS want to place the CS file for the services inside the App_Code folder? Our development team is required to put all web...
2
1341
by: pradyumn.1 | last post by:
hi everrybody, i want 2 make a higly secured guard lock which no 1 can heck...... here i hav already make a login page, change password page,and file uploder page with encryption.. bt here i...
0
7212
marktang
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,...
0
7098
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...
0
7364
jinu1996
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...
1
7017
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...
0
5604
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
4696
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...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1524
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 ...
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.