473,701 Members | 2,398 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 1133
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
1878
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
3087
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
6293
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
2209
by: A.M | last post by:
Hi, Are string parameters in functions by refrence or by value ? Thanks, Ali
4
23817
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
1901
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
1908
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
9221
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...
1
8975
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
7822
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
6567
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
5904
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
4410
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
4661
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3102
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
3
2035
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.