473,666 Members | 2,728 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 1131
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
1876
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 the text that's passing the string: response.write "<input type=hidden name=title" & " value=" &...
10
3082
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
3535
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 break the e-mail address string at the '@' symbol. What I've done for now is replaced the '@' in all...
13
6285
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
2207
by: A.M | last post by:
Hi, Are string parameters in functions by refrence or by value ? Thanks, Ali
4
23813
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
1899
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 imbedded, and I'll want to use the string I pass inside the php code, but that might be a separate...
6
1287
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
1906
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
8348
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
8863
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8636
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7376
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, and deployment—without 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...
1
6187
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4186
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
4356
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
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
1761
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.