CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > migration_to_asp.net.migrating_from_jspservlets_to_asp.net Tags:
Item Type: NewsGroup Date Entered: 9/29/2006 9:11:57 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 16 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
brgdotnet
Asp.Net User
Script mixed in with HTML the compiler does not like this ?9/29/2006 9:11:57 PM

0/0

I have converted some JSP code to ASP.NET/C# using the tool vs 2005 provides.

In the conversion, I have several aspx files. In these files, it looks like java script is mixed in with my html. The compiler does not like this and flags it as an error. Is there a way to fix this so that script can be mixed in with html ? I have included some code from an actual page to show you what the problem is. For example, look down on line 26 through 33. The compiler will not succesfully compile this code. How do I fix this?

 

1..<html>

2..<head>

3..<title>PStar</title>

4..<link rel = "stylesheet" href = "/manage/include/manage.css" type = "text/css">

5..<script language = "javascript" src = "/manage/include/mscript.js"></script>

6..<script language = "JavaScript" src = "/manage/include/common.js"></script>

7..<script language = javascript src = "/manage/include/boardlib.js"></script>

8..</head>

9..<body leftmargin = "0" topmargin = "0" class = "bodyback">

10..<table width="100%" border="0" cellspacing="0" cellpadding="10">

11..<tr>

12..<td>

13..<table width="770" height="25" border="1" cellpadding="0" cellspacing="0" bordercolor="ffffff">

14..<tr>

15..<td bgcolor="#DEDEDE" style="padding-left:17;" class="stitle_2"><b>Employee Name</b></td>

16..</tr>

17..</table>

18..<table width="770" border="1" cellpadding="5" cellspacing="0" bordercolor="ffffff">

19..<tr>

20..<td width="233" align="left" class="page_txt">TOTAL PG_CT ARTICLES | PAGE</td>

21..<td></td>

22..</tr>

23..</table>

24..<table width="770" border="1" cellpadding="2" cellspacing="0" bordercolor="#FFFFFF">

25..<%

26..if (rowPageCount[0] == 0)

27..{

 

28..%>

29..<tr>

30..<td colspan=4 align=center>New Employee Name</td>

31..</tr>

32..<%

33..}

34..else

35..{

Response.Write("<tr>" + "\r\n");

MulData[] data = mgr.selectMulBoardDataList(tableName, reqPageNo, pageRows);

java.text.SimpleDateFormat dateFormatter = new java.text.SimpleDateFormat("yyyy-MM-dd");

for (int i = 0, l = data.Length, y = 0; i < l; i++, y++){

if (y == 4)

{

y = 0;

Response.Write("</tr><tr>" + "\r\n");

}

 

%>

<td width=25% align="center" class="spcolor1" bgcolor="#FFFFFF" onMouseOver="this.style.background='#E4E4E4'" onMouseOut="this.style.background='#FFFFFF'">

<a href = "index.aspx?rowNum=0">STUB</td>

 

<%

if (data.Length < 4 && i == data.Length - 1)

{

for (int j = 0, k = 4 - data.Length; j < k; j++){

 

%>

<td width=25% align="center" class="spcolor1" bgcolor="#FFFFFF" onMouseOver="this.style.background='#E4E4E4'" onMouseOut="this.style.background='#FFFFFF'">&nbsp</td>

 

<%

}

}

if (pageRows != data.Length && data.Length == i + 1)

Response.Write("</tr></table>" + "\r\n");

}

}

 

if (rowPageCount[0] == 0)

{

 

}

else

{

 

System.String rowNumStr = Request["rowNum"];

int rowNum = 0;

if (rowNumStr == null || rowNumStr.Equals(""))

{

rowNum = mgr.selectLatestMulDataNo(tableName);

}

else

{

rowNum = System.Int32.Parse(rowNumStr);

}

 

 

MulData mdata = mgr.selectMulData(tableName, rowNum);

java.text.SimpleDateFormat dateFormatter = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

 

%>

 

<table width="770" border="1" cellpadding="2" cellspacing="0" bordercolor="#FFFFFF">

<tr>

<td width="770" align="left" bgcolor="#F4F4F4" class="spfont1" colspan=3><b>STUB</b></td>

</

StrongTypes
Asp.Net User
Re: Script mixed in with HTML the compiler does not like this ?9/29/2006 10:54:17 PM

0/0

What error message(s) is the compiler giving you? Also, I see a line that references java.text.SimpleDateFormat. That looks like a namespace from JSP, and not ASP.NET.
Ryan Olshan
Microsoft MVP, ASP.NET
Blog | Group | Website | Strong Coders Community

How to ask a question
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
MCAD/MCSD Training Guide (70-315): Developing and Implementing Web Applications with Visual C# and Visual Studio. NET Authors: Amit Kalani, Pages: 1200, Published: 2002
MCAD/MCSD.NET: Developing and Implementing Web Applications with Visual Basic.NET and Visual Studio.NET Authors: Mike Gunderloy, Pages: 1104, Published: 2003
Hacking Exposed J2EE & Java: Developing Secure Applications with Java Technology Authors: Brian Buege, Art Taylor, Randy Layman, Pages: 426, Published: 2002
Sixth IEEE Workshops on Enabling Technologies: Infrastructure for Collaborative Enterprises : Proceedings : June 18-20, 1997, MIT, Cambridge, Massachusetts Authors: IEEE Computer Society, Concurrent Engineering Research Center (U.S.), IEEE Communications Society Technical Committee on Information Infrastructure, SIGGROUP (Group), Institute of Electrical and Electronics Engineers, Pages: 356, Published: 1997
Microsoft IIS 5 Administration: A Authoritative Solution Authors: Gerry O'Brien, Pages: 532, Published: 2000

Web:
Script mixed in with HTML the compiler does not like this ? - ASP ... In these files, it looks like java script is mixed in with my html. The compiler does not like this and flags it as an error. ...
native code compilers : Java Glossary However, if he does not have Java installed, that then the native ... Compilers like JET, bundle classes into DLLs. This means if you have two JVMs running, ...
Windows Programming Tools by EzTools Software: .NET & ActiveX ... With HSP, you can code the same mixed HTML and VBScript webpages, ... (This download does not install HSP, so you must first download HSP). ...
Getting The Best AMD64 Performance With Sun Studio Compilers May 23, 2006 ... The compiler does not omit frame pointers where they are really necessary. ... If you are doing mixed language development requiring ...
Tutorial: Mixed C and Fortran...and some LAPACK | MacResearch The trailing underscores with Fortran compilers are there for historical .... Does the error mean that the architecture of my machine does not support LP64? ...
Free java native compiler Download - java native compiler Software Scriptol PHP Compiler. script, PHP, Free Additional Info: Mozilla 1.1 ... Please note that our technology currently does not go beyond providing an ...
Java2Script Pacemaker » AJAX http://j2s.sourceforge.net/articles/tutorial-extended-compiler.html ... codes to another java script code that does work on a browser and also does not use ...
FAQ: Technical - Mono The CLI contains enough information about a class that exposing it to other RPC systems (like CORBA) is really simple, and does not even require support ...
Headius: The Compiler Is Complete and finally, since you control the compiler, why not introduce compiler ... does this mean i could use ruby, and have a java-like thingy ready to move to ...
Automatic synthesis script generation for synopsys design compiler ... In particular, scripts should use and take advantage of information like the design ...... However, Design Compiler does not guarantee that a “dont_touch” ...




Search This Site:










size of the verbs' panel.

question about controling ssl using web.config

any thoughts on project hurricane

access denied when iis application is trying to access share folder of another machine

denied directory access but can still open a file from the directory

running asp pages in asp.net

compositedataboundcontrol

do i need disconnect the database connection when using daab

webpart autopostback/ updatepanel problem

vertical tabs.

dealing with unavoidable error pages

calender in dnn2.1.2

dnn functionality not seen before

aol and dnn

application works on intranet but not on internet from a different computer

error upgrading from 2.0.4 to 2.1.2

forms authentication problem...

how to write appsettings back to web.config

error on startup

i can't login in to my site

dnn2 changing my install script!!

cannot edit a macro

solpart sub menus

membership provider question

signout/logout problem

static links to pages in skin

securing html files in a folder

where is the real sql statement stored?

if request.isauthenticated then, is this statement same as ...??

import / export code smith templates?

 
All Times Are GMT