Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Concatenation Problem
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

paulnoe
Starting Member

USA
48 Posts

Posted - 18 August 2003 :  16:24:32  Show Profile  Visit paulnoe's Homepage
I know I've probably been staring at this for too long. I'm hoping someone with fresh eyes may see my problem. This line is part of a loop that generates a list of records. This particular button loads a new window with more order detail. My problem comes in when calling the window.open method. The error I'm getting is "unterminated string constant". Any help would be appreciated. Paul


Response.Write("<TR><TD ALIGN=RIGHT><INPUT type='button' value='View Details' onClick=window.open('EasyTrackDetail.asp?OrderNo=" & RSEasyTrack("OrderNo").Value & "','newwin','height=450,weight=250')></TD></TR>")

Paul Noe
paul@thenoes.com

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 18 August 2003 :  16:51:57  Show Profile
Paul,

I have sent you an email asking for some details. I should be able to help with it.


Cheers,

David Greening
Go to Top of Page

paulnoe
Starting Member

USA
48 Posts

Posted - 19 August 2003 :  10:12:42  Show Profile  Visit paulnoe's Homepage
I discovered my problem this morning (in case this may help anyone else who runs into a similar problem). The correct code is:

Response.Write("<TR><TD ALIGN=RIGHT><INPUT type=button value='View Details' onClick=window.open('EasyTrackDetail.asp?OrderNo=" & CInt(RSEasyTrack("OrderNo").Value) & "','newwin','height=450,weight=250,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,toolbar=no')></TD></TR>")

I had to use the CInt function to make sure that the order number passed was an integer. For some reason, it was passing part of the field as an empty string (due to the data type & size in my SQL stored procedure). I could probably have used a RTrim as well, but now it works swimmingly. Thanks to David Greening for taking a shot at it last night.

Paul Noe
paul@thenoes.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07