473,513 Members | 6,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Code confusion

7 New Member
HI!!!

I request you to kindly go through the code... I'm getting an error in line 71 as
"Unterminated String Constant" which I'm not able to find out. Please help me at the earliest.

-------------------------------------------------------------------------------------------------------------------
<%@ Language=VBScript %>
<% Response.CacheControl = "no-cache" %>
<%Response.Expires = -1%>
<%
if isEmpty(Session("uid")) then
Response.Redirect "../blank.htm"
Response.End
end if
%>
<!-- #include file="../connection.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>ISL e-Facilitator</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<link rel="stylesheet" type="text/css" href="../../stylesheet/isl.css">
<script language="javascript" type="text/javascript" src="../../javascript/isl.js"></script>
<script language="javascript">
<!--
function openDiv(strDiv){
if(strDiv == "Div1"){
document.getElementById("Div2").style.visibility = "hidden";
document.getElementById("ResFile").className = "NonActiveTabHeader"
document.getElementById("Div1").style.visibility = "visible";
document.getElementById("PrjFile").className = "ActiveTabHeader"

}else if(strDiv == "Div2"){
document.getElementById("Div1").style.visibility = "hidden";
document.getElementById("PrjFile").className = "NonActiveTabHeader"
document.getElementById("Div2").style.visibility = "visible";
document.getElementById("ResFile").className = "ActiveTabHeader"
}
}

function openFileRes(strFileName){
strURL = "../../ISLResource/"+strFileName;
window.open(strURL,"_new")
}

function openPage(strURL){
window.open(strURL,"rightFrame","");
}

function uploadRes(){
if(document.uploadPrj.briefdesc.value.length == 0){
alert("Please enter a small description about the file.");
document.uploadPrj.briefdesc.focus();
return false;
}

if(document.uploadPrj.briefdesc.value.length > 500){
alert("Description must not be more than 500 characters.");
document.uploadPrj.briefdesc.focus();
return false;
}
document.uploadPrj.action = "submituploadRes.asp";
document.uploadPrj.submit();
}
-->
</script>
</head>
<body topmargin="10" onload="openDiv('Div1')">
<table border="0" align="left" width="525" cellpadding="0" cellspacing="0">
<tr>
<td id="PrjFile" width="110" height="20" align="center" class="ActiveTabHeader" onmouseover="style.cursor='hand';" onclick="openDiv('Div1')">Download</td>
<td id="ResFile" width="100" height="20" align="center" class="NonActiveTabHeader" onmouseover="style.cursor='hand';" onclick="openDiv('Div2')">Upload</td>
<td width="325" height="20"></td>
</tr>
<tr>
<td>

<div id="Div1" style="position:absolute; visibility:hidden; border-style:solid; border-width:1px; border-color:#788A96">
<table border="0" align="left" width="525" cellpadding="0" cellspacing="2">
<tr>

<!--
-->
</tr>
<%
'Set Rs = Con.Execute("select file_name, upload_by, description from resource_file order by file_date desc")
Set Rs = Con.Execute("dbo.listResFile " & Request.QueryString("beginRec") & "," & Request.QueryString("endRec") & "," & Request.QueryString("pageid"))
If Not Rs.EOF Then
Response.Write "<td width=225 height=20 bgcolor=silver style=""padding-left:5px;"" class=ProjectList><b>Name</b></td>"
Response.Write "<td width=225 height=20 bgcolor=silver style=""padding-left:5px;"" class=ProjectList><b>Upload By</b></td>"
Response.Write "<td width=75 height=20 bgcolor=silver style=""padding-left:5px;"" class=ProjectList><b>Size</b></td>"
While Not Rs.EOF
fPath = Server.MapPath("../../ISLResource/" & Rs(0))
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set file = fso.GetFile(fPath)
Response.Write "<tr>"
Response.Write "<td width=225 height=18 bgcolor=#dcdcdc style=""padding-left:2px;"" class=ProjectList><a onmouseover=""style.cursor='hand';"" onclick=openFileRes('" & file.name & "')>" & file.name & "</a></td>"
Response.Write "<td width=225 height=18 bgcolor=#dcdcdc style=""padding-left:2px;"" class=ProjectList nowrap>" & Rs(1) & "</td>"
Response.Write "<td align=right width=75 height=18 bgcolor=#dcdcdc style=""padding-right:2px;"" class=ProjectList>" & CInt((file.Size/1024)) & " Kb</td>"
Response.Write "</tr>"
Response.Write "<tr>"
Response.Write "<td width=525 colspan=3 height=18 bgcolor=#E5E6E8 style=""padding-left:2px;padding-bottom:10px;"" class=ProjectList nowrap>" & Rs(2) & "</td>"
Response.Write "</tr>"
Set folder = Nothing
Set fso = Nothing
Rs.MoveNext
Wend

iFirst = 0
iLast = 10
Rs.MoveFirst
Response.Write "<tr>"
Response.Write "<td width=525 colspan=3 height=18 align=right style=""padding-top:10px;padding-left:2px;padding-bottom:10px;"" class=ProjectList nowrap>"
If Rs(3) > 1 Then
For i=1 to Rs(3)
If i = CInt(Request.QueryString("pageid")) Then
Response.Write i & " "
Else
strURL = "download.asp?beginRec=" & iFirst & "&endRec=" & iLast & "&pageid=" & i
Response.Write "<a onmouseover=""style.cursor='hand';"" onclick=""openPage('" & strURL & "')""><u>" & i & "</u></a> "
End If
iFirst = iFirst + 10
iLast = iLast + 10
Next
End If
Response.Write "</td>"
Response.Write "</tr>"
Else
Response.Write "<tr>"
Response.Write "<td height=18 align=center style=""padding-left:2px;"" class=ProjectList>File Not Available.</td>"
Response.Write "</tr>"
End If
%>
</table>
</div>

<div id="Div2" style="position:absolute; visibility:hidden; border-style:solid; border-width:1px; border-color:#788A96">
<form name="uploadPrj" method="post" enctype="multipart/form-data">
<table border="0" align="left" width="100%" cellpadding="0" cellspacing="0">
<tr><td colspan="2" style="padding-left:10px; padding-right:5px; padding-top:10px; text-align:justify" class="ProjectList">
Upload only those files which are not related to your project. The files uploaded from this screen goes to
a common folder from where everybody can access them.
</td></tr>
<tr>
<td style="padding-left:10px; padding-right:5px; padding-top:10px;" class="ProjectList">File</td>
<td align="right" style="padding-top:10px; padding-right:5px;">
<input type="file" size="60" name="fileprj1" class="FormObject"></td>
</tr>
<tr>
<td valign="top" style="padding-left:10px; padding-right:5px; padding-top:10px;" class="ProjectList">Description</td>
<td align="right" style="padding-top:10px;padding-right:5px;">
<textarea rows="5" cols="70" name="briefdesc" class="FormObject"></textarea></td>
</tr>
<tr><td colspan="2" align="right" style="padding-right:5px; padding-top:5px;">
<a href="#" onclick="uploadRes()">
<img src="../../images/floppy.jpg" border="0" alt="Save" >
</td></tr>
</table>
</form>
</div>

</td>
</tr>
</table>
</body>
</html>


---------------------------------------------------------------------------------

Thanks in advance.

Prasanthi
Dec 1 '06 #1
1 1524
nedu
65 New Member
Hi Frnd ,

R u sure that for all concatenation to the next line of Vb Script contains
the following . .. &_

Plz confirm me .. .

Regards

(M.Nedu . .)
Dec 4 '06 #2

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

Similar topics

4
2627
by: etropic | last post by:
Im confused I want an .aspx page to have a table with my data in it. At first I wrote FillTablew(); in my Page_Load even in the Code Behind file. I had it loop the db etc. and use Response.Write...
171
7596
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
0
1385
by: i_have_control | last post by:
I'd be grateful for any input on this one: I have three web domains. The destinations of two are set to folders on the first, though that fact is transparent to the user (i.e: it does not...
39
2533
by: Abubakar | last post by:
I want to get characters for given ascii codes. Dont wanna use the CHR or ChrW functions. What r the .NET equivilents of the Chr & ChrW functions? Regards, Abubakar.
10
3627
by: joelagnel | last post by:
hi friends, i've been having this confusion for about a year, i want to know the exact difference between text and binary files. using the fwrite function in c, i wrote 2 bytes of integers in...
1
3150
by: Richard Lewis Haggard | last post by:
I'm having a problem with what appears to be some sort of confusion with references. I have a single solution with a dozen projects which has been working quite nicely for a while. The references...
135
7342
by: Xah Lee | last post by:
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about...
4
1277
by: Z.K. | last post by:
I am curious as to why this code works: Form2 ^OC = gcnew Form2(); OC->Text = "Child"; OC->MdiParent = this; OC->Show(); and this does not: Form2 *OC = new Form2();
7
1553
by: sindhu sweet | last post by:
Hi ,all #define MAX(x,y) ((x)>(y)?(x):(y) main() { intx=5,y=5; printf("maximum is %d",MAX(++x,++y)); } this is a code using macros....
27
1972
by: Jonathan Wood | last post by:
Greetings, I'd like to write any number of classes and then use those classes from any number of .NET applications. Since we've supposedly left "DLL Hell" and ActiveX objects behind, what has...
0
7254
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
7153
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
7373
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,...
0
7432
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...
0
7519
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...
0
5677
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 project—planning, coding, testing,...
0
1585
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
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
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...

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.