473,671 Members | 2,475 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
"Unterminat ed String Constant" which I'm not able to find out. Please help me at the earliest.

-------------------------------------------------------------------------------------------------------------------
<%@ Language=VBScri pt %>
<% Response.CacheC ontrol = "no-cache" %>
<%Response.Expi res = -1%>
<%
if isEmpty(Session ("uid")) then
Response.Redire ct "../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="Micros oft Visual Studio .NET 7.1">
<meta name="vs_target Schema" content="http://schemas.microso ft.com/intellisense/ie5">
<link rel="stylesheet " type="text/css" href="../../stylesheet/isl.css">
<script language="javas cript" type="text/javascript" src="../../javascript/isl.js"></script>
<script language="javas cript">
<!--
function openDiv(strDiv) {
if(strDiv == "Div1"){
document.getEle mentById("Div2" ).style.visibil ity = "hidden";
document.getEle mentById("ResFi le").classNam e = "NonActiveTabHe ader"
document.getEle mentById("Div1" ).style.visibil ity = "visible";
document.getEle mentById("PrjFi le").classNam e = "ActiveTabHeade r"

}else if(strDiv == "Div2"){
document.getEle mentById("Div1" ).style.visibil ity = "hidden";
document.getEle mentById("PrjFi le").classNam e = "NonActiveTabHe ader"
document.getEle mentById("Div2" ).style.visibil ity = "visible";
document.getEle mentById("ResFi le").classNam e = "ActiveTabHeade r"
}
}

function openFileRes(str FileName){
strURL = "../../ISLResource/"+strFileNa me;
window.open(str URL,"_new")
}

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

function uploadRes(){
if(document.upl oadPrj.briefdes c.value.length == 0){
alert("Please enter a small description about the file.");
document.upload Prj.briefdesc.f ocus();
return false;
}

if(document.upl oadPrj.briefdes c.value.length > 500){
alert("Descript ion must not be more than 500 characters.");
document.upload Prj.briefdesc.f ocus();
return false;
}
document.upload Prj.action = "submituploadRe s.asp";
document.upload Prj.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="ActiveTa bHeader" onmouseover="st yle.cursor='han d';" onclick="openDi v('Div1')">Down load</td>
<td id="ResFile" width="100" height="20" align="center" class="NonActiv eTabHeader" onmouseover="st yle.cursor='han d';" onclick="openDi v('Div2')">Uplo ad</td>
<td width="325" height="20"></td>
</tr>
<tr>
<td>

<div id="Div1" style="position :absolute; visibility:hidd en; 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("se lect file_name, upload_by, description from resource_file order by file_date desc")
Set Rs = Con.Execute("db o.listResFile " & Request.QuerySt ring("beginRec" ) & "," & Request.QuerySt ring("endRec") & "," & Request.QuerySt ring("pageid"))
If Not Rs.EOF Then
Response.Write "<td width=225 height=20 bgcolor=silver style=""padding-left:5px;"" class=ProjectLi st><b>Name</b></td>"
Response.Write "<td width=225 height=20 bgcolor=silver style=""padding-left:5px;"" class=ProjectLi st><b>Upload By</b></td>"
Response.Write "<td width=75 height=20 bgcolor=silver style=""padding-left:5px;"" class=ProjectLi st><b>Size</b></td>"
While Not Rs.EOF
fPath = Server.MapPath( "../../ISLResource/" & Rs(0))
Set fso = Server.CreateOb ject("Scripting .FileSystemObje ct")
Set file = fso.GetFile(fPa th)
Response.Write "<tr>"
Response.Write "<td width=225 height=18 bgcolor=#dcdcdc style=""padding-left:2px;"" class=ProjectLi st><a onmouseover=""s tyle.cursor='ha nd';"" onclick=openFil eRes('" & file.name & "')>" & file.name & "</a></td>"
Response.Write "<td width=225 height=18 bgcolor=#dcdcdc style=""padding-left:2px;"" class=ProjectLi st nowrap>" & Rs(1) & "</td>"
Response.Write "<td align=right width=75 height=18 bgcolor=#dcdcdc style=""padding-right:2px;"" class=ProjectLi st>" & 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;paddin g-bottom:10px;"" class=ProjectLi st 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;paddin g-left:2px;paddin g-bottom:10px;"" class=ProjectLi st nowrap>"
If Rs(3) > 1 Then
For i=1 to Rs(3)
If i = CInt(Request.Qu eryString("page id")) Then
Response.Write i & " "
Else
strURL = "download.asp?b eginRec=" & iFirst & "&endRec=" & iLast & "&pageid=" & i
Response.Write "<a onmouseover=""s tyle.cursor='ha nd';"" onclick=""openP age('" & 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=ProjectLi st>File Not Available.</td>"
Response.Write "</tr>"
End If
%>
</table>
</div>

<div id="Div2" style="position :absolute; visibility:hidd en; border-style:solid; border-width:1px; border-color:#788A96">
<form name="uploadPrj " method="post" enctype="multip art/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="ProjectL ist">
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="ProjectL ist">File</td>
<td align="right" style="padding-top:10px; padding-right:5px;">
<input type="file" size="60" name="fileprj1" class="FormObje ct"></td>
</tr>
<tr>
<td valign="top" style="padding-left:10px; padding-right:5px; padding-top:10px;" class="ProjectL ist">Descriptio n</td>
<td align="right" style="padding-top:10px;paddin g-right:5px;">
<textarea rows="5" cols="70" name="briefdesc " class="FormObje ct"></textarea></td>
</tr>
<tr><td colspan="2" align="right" style="padding-right:5px; padding-top:5px;">
<a href="#" onclick="upload Res()">
<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 1535
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
2638
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 of a bunch of strings. This works great as long as all I want is the results of those Response.Writes I believe what I REALLY want is to convert those Response.Writes to a str cat in the code behind, and then in the body of my .aspx page to do...
171
7698
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) like it because you can split the code from the design. That is logical. But if you are the only one working on the code, it seem a little overkill. I use Dreamweaver to do my design and find it a bit of a hassle to have multiple files open...
0
1397
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 REDIRECT to the first domain). Example: http://www.maindomain.com (main hosted package) http://www.subdomain1.com -> www.maindomain.com/subdomain1/ http://www.subdomain2.com -> www.maindomain.com/subdomain2/
39
2559
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
3638
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 binary mode. according to me, notepad opens files and each byte of the file read, it converts that byte from ascii to its correct character and displays
1
3168
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 between projects in the solution were established through project references, not by browsing to an assembly DLL. All of the projects are strongly named and use key files. Each project's AssemblyInfo.cs specifies the assembly version, where the...
135
7446
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 which is better. It has become what's known as “religious war” — a heated fight over trivia. In this essay, i like to explain what is the situation behind it, and which is proper.
4
1283
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
1560
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
1990
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 taken it's place. Can anyone point me in the right direction getting started learning the best way to write a library of routines and then being able to access those
0
8400
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7441
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, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5702
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4412
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2817
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 we have to send another system
2
2058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1814
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.