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'"> </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> </