473,560 Members | 2,959 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='myNewWi n' HREF='filter.as p?ins="
& insName & "'>"%>Advan ced 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 1126
Why?

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

<a onclick="sendme ();" target="myNewWi n"
href="filter.as p?ins='somethin g'">Advanced Filter</a>

Then, convert to ASP

<%
insName = "your value"
Response.Write "<a onclick=""sendm e();"" target=""myNewW in""
href=""filter.a sp?ins='" & insName & "'"">Advanc ed Filter</a>"
%>
Use " to enclose values in tags.

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

response.write "<A onclick=sendme( ) target='myNewWi n' HREF='filter.as p?ins=" & insName & "'>"%>Advan ced 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
1869
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 string has the whole string on it, but somewhere between the passing and the receiving, the string is getting chopped off at the first word. Here is...
10
3068
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
3533
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. The culprits are 2 wide columns which contain e-mail addresses. I can get the page to fit entirely on the printer output if the browser would...
13
6275
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
5210
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
2204
by: A.M | last post by:
Hi, Are string parameters in functions by refrence or by value ? Thanks, Ali
4
23799
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 specifiers" error. Thank you, Scott
4
1895
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 href in my code <a href="new_page.php" (string_I_want_to_pass)> What is the syntax for passing the string? The new page is html with some php...
6
1281
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 wondering if "#" is an escape sequence and if there is a way to get it into my string. Thanks, Dan
2
1894
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 <=0x3ca9b416 and tcp>=0 and tcp<=23923 and tcp>=0 and tcp<=64582 and tcp<=655355 I have many threads passing different filters of a similar form to
0
7841
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8066
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...
1
7596
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5458
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3605
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...
0
3585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2047
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
1
1169
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
877
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...

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.