473,507 Members | 12,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

String Passing

Having a little problem with this.

response.write "<A onclick=sendme() target='myNewWin' HREF='filter.asp?ins="
& insName & "'>"%>Advanced Filter</a>

I need to have a single quote around insName.

I tried the following

Function sIn(s)
sIn = "'" & Replace(s, "'", "' '") & "'"
End Function

sIn(insName)

but that is not working.

Please help.

Thank you

Jul 22 '05 #1
1 1124
Why?

Try working backwards, meaning, just make an HTML page that has what you
want, eg.

<a onclick="sendme();" target="myNewWin"
href="filter.asp?ins='something'">Advanced Filter</a>

Then, convert to ASP

<%
insName = "your value"
Response.Write "<a onclick=""sendme();"" target=""myNewWin""
href=""filter.asp?ins='" & insName & "'"">Advanced Filter</a>"
%>
Use " to enclose values in tags.

Ray at work
"HartAch" <dv******@twcny.rr.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Having a little problem with this.

response.write "<A onclick=sendme() target='myNewWin' HREF='filter.asp?ins=" & insName & "'>"%>Advanced Filter</a>

I need to have a single quote around insName.

I tried the following

Function sIn(s)
sIn = "'" & Replace(s, "'", "' '") & "'"
End Function

sIn(insName)

but that is not working.

Please help.

Thank you

Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1867
by: Bill | last post by:
I am passing a string of text between a page and a database. It is a book title, which consists of 2 or three words, and only the first word is passing to the database. The page that passes the...
10
3063
by: dalbosco | last post by:
Hello, I am new to STL and I've written the following code which crash. Could anyone tell me why this code crash? Thanks by advance. -- J-F #include <iostream>
6
3530
by: Mark | last post by:
Hi, My page has a table with many columns such that the right-side of the table gets chopped off when printed. I specify a table width of 100%, but otherwise no cell dimensions are specified. ...
13
6264
by: Chapman | last post by:
Some questions about strings: this is the extracted piece of my test code: /** **/ char *arry; arry = malloc(30*sizeof(arry)); arry = 'B'; arry = 'S'; arry = 'c';
1
5206
by: Steven Blair | last post by:
Hi, I am having problem passing a string by reference to some C++ code. Wondered if anyone could help me out. C# code: myFunc(str);
8
2196
by: A.M | last post by:
Hi, Are string parameters in functions by refrence or by value ? Thanks, Ali
4
23785
by: Scott Lemen | last post by:
Hi, Some Win APIs expect a structure with a fixed length string. How is it defined in VB .Net 2003? When I try to use the FixedLengthString class I get an "Array bounds cannot appear in type...
4
1890
by: B Squared | last post by:
I'm trying to pass a string from the current html page to one I'm calling. I've read (in the O'Reilly text) this involves using "?", but there's no example. For example, given I have a standard...
6
1278
by: dmckeon | last post by:
I have an XML string that contains a "#" character. I am passing the string to a JSP page and it reads up to the character before the "#" but nothing after that. I am new to this, so I was...
2
1890
by: Shashank | last post by:
Hi, I am passing a tcpdump filter to a function which compiles the filter using pcap_compile and then sets it. Here is the filter, ip>=0x0000 and ip <=0xd9295a3 and ip >=0x0000 and ip...
0
7221
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
7109
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
7313
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,...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
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...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1537
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 ...
0
411
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.