473,394 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Expected end of statement error line1 char27 code 0

17
Hi,
My asp.net page throws this error on line1 which is
<%@Page Language="Vb" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="AssignedBurdensBenefitsperhour" %>
The code is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1">
<title>Assigned Burdens And Benefits Per Hour</title>

<script language="vbscript" src="http://ukrdgap349/EVServer/ViewEnums.vbs" type="text/vbscript"></script>
<script language="vbscript" type="text/vbscript">

Dim dimname1
Dim dimname2
dimname1 = "Project"
dimname2 = "Org"

Sub MyOnLoad
PageSize

EvObject.EnableColumnHeaders = True
EvObject.EnableToolBar = False
EvObject.EnableTabBar = False
EvObject.EnableOffspreadBar = true
EvObject.AllowSaveView = False
EvObject.AllowDataEntry = False
</script>
</head>
<body onload ="MyOnLoad">

<asp:Table id="Client1" runat="server" Height="5%">
<asp:TableRow id="tr1" runat="server" >
<asp:TableCell id="tr1c1" runat="server"
HorizontalAlign="Center"
VerticalAlign="Middle" Width="100%" Font-Bold="True" Font-Size="X-Large" Text="Assigned Burdens And Benefits Per Hour" Font-Names="Arial">
</asp:TableCell>
<asp:TableCell id="Tr1c2" runat="server"
ColumnSpan="1"
RowSpan="1"
HorizontalAlign="Right" Width="50%"
VerticalAlign="Middle" >
<img src="http://ukrdgap349/evserver/pics/fwFrontLogo3.gif" dir="rtl" alt="Foster Wheeler Reports"/>
</asp:TableCell>
</asp:TableRow>
</asp:Table>

<asp:Table Width="100%" >
<asp:TableRow id="T2r1">
<asp:TableCell id="T2r1c1" Width="85%">
<asp:PlaceHolder ID="PlaceHolder1" runat="server">Control Not Loaded</asp:PlaceHolder>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
Nov 8 '07 #1
10 3205
Plater
7,872 Expert 4TB
are there any warning or error messages when you do a build?
Nov 8 '07 #2
ckb
17
No warnings or messages the page builds up and works fine but I would still like to know why I get this message
Nov 9 '07 #3
kenobewan
4,871 Expert 4TB
I believe that you are using the wrong document type. This article may help:
Choosing a DOCTYPE.

What happens if you don't use a document type?
Nov 9 '07 #4
Plater
7,872 Expert 4TB
It looks right to me?
Here's one of mine:
Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4.  
Nov 9 '07 #5
kenobewan
4,871 Expert 4TB
My understanding is that this code is to support the use of validators. Another option is use the validator to test the page, then ditch the declaration. Does the page run?

I don't use such declarations in my aspx.vb. I believe that they are used to make sure your page meets the standards of the W3C. If you look at the W3C it claims to be an international consortium headed by Tim Berners-Lee, W3C Director and "inventor of the World Wide Web". Seems like a good idea?

Here is an opinion that differs, Trouble Brewing at the W3C?. The problem is that forming such standards may impose unwanted outcomes. There is a hidden danger on the internet that these standards become an excuse to water down internet technology. We need standards that are flexible for the internet, but it seems that one body, in my opinion, is seeking to control the internet while not meeting these needs.
Nov 10 '07 #6
Plater
7,872 Expert 4TB
A good read, I'd not heard about this.
But that article is more then 2 years old, have any results come of it yet?
Nov 12 '07 #7
kenobewan
4,871 Expert 4TB
Checked out the Welcome to the WHATWG community site. It seems that it is only a splinter group in certain areas:
The W3C HTML working group and the WHATWG are working on the same specification, with the same editor.
Seems a bit of a disappointment, but at least there is another organization to W3C.
Nov 13 '07 #8
ckb
17
I am re-sending my code as i do not all the options do not seem to work
(Default.aspx)
<%@Page Language="Vb"AutoEventWireup="false"CodeFile="Defa ult.aspx.vb" Debug="true" Inherits="FUN1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >

<head id="Head1">
<title>rEPORT tITLE</title>

<script language="vbscript" src="http://Servere1/EVServer/ViewEnums.vbs" type="text/vbscript"></script>
<script language="vbscript" type="text/vbscript">

Dim dimname1
Dim dimname2
dimname1 = "one"
dimname2 = "two"
dimname3 = "threee"
Sub MyOnLoad
PageSize
MSGBOX("HELLO")
--CODE IN VBSCRIPT---
ShowData
End Sub
Sub ShowData
MSGBOX("ONE")
---CODE IN VBSCRIPT----
End Sub

</script>

<script type="text/javascript" language="javascript" src="http://ukrdgap349/EVServer/ViewEnums.js"></script>

<script type ="text/javascript" language="javascript">

function PageSize()
{
window.moveTo(0,0);
window.resizeTo(screen.width,(screen.height-30));
}

function AddDropDownListItems(dropdownlist, dimension, subset)
{
---Code in javascript--
alert("abcd")
SetMember(dimension, ddl.options[ddl.selectedIndex].value);
}
function SetMember( dimension, member )
{
alert("xyss") }
function SelectionChanged( dimension, dropdownlist )
{
alert("akjsds")
}
function catchEnter()
{
if (event.keyCode == 13)
{
FindProject();
}

if (event.keyCode == 10)
{
FindProject();
}
}
</script>
</head>
(Default.vbs)
---class--

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
evServer = New Ev_WebSevice_Assigned_Web.ExecutiveViewer
evServer.Url = "http://Server/EVServer/WebService.asmx"
evServer.Credentials = System.Net.CredentialCache.DefaultCredentials
ControlPlaceHolder = Me.FindControl("PlaceHolder1")
ControlPlaceHolder.Controls.Clear()
---code for the web service--
End Sub
Nov 15 '07 #9
kenobewan
4,871 Expert 4TB
Its either the page or doctype declarations. I assumed that it was the doctype, but maybe it is the page. Page now inherits fun1, what else have you tried?
Nov 18 '07 #10
Plater
7,872 Expert 4TB
At this point I would say just make a new page.
And copy/paste relevant design and code items.
(But don't copy over the xhtml declarations or class names)
Nov 19 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Phil Powell | last post by:
Here is the function ArraySearch: '-------------------------------------------------------------------------------------- 'ArraySearch will return an integer value indicating the first...
3
by: Matt | last post by:
When the ASP statement end with a _ character, then the next line cannot have comment ' character. Is that correct? Since I encountered the following error: Microsoft VBScript compilation...
5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
2
by: Edward S | last post by:
I would appreciate if someone could correct my SQL statement which is displaying a message Expected : End of Statement this statment is attached to a button on the form StrSQL = "PARAMETERS !!...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
3
by: DracoZA | last post by:
Can anyone tell me where the problem is here ? - Thanks Error: Microsoft VBScript compilation error '800a0401' Expected end of statement /test/ADO/demo_add.asp, line 15
1
by: nosaj070 | last post by:
Hi, I'm working on a project and it is my first time implementing VBA with Access. I know my SQL Statement is close, but it obviously isn't perfect, if any of you can see what the error is I'd really...
3
by: Indy | last post by:
Hi, I am new to VB and have some previous programming experiences. Curently working as an IT support person and trying to write a VB 6 script to access apos database and get one of the table's...
6
by: jephperro | last post by:
Hi there, I'm having a really tough time with a SQL statement and I am wondering if someone is able to help out or point me in the right direction. I have a table of names which can be very...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
tracyyun
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...

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.