I am trying to build a list of href statements that include parameters as in
the following code:
Response.Write( "<td align='center'> <a href='YTDDetail s1.asp?jname=" &
aryRslt(0,i) & "&jclass=" & ColList(j+1) & "'>" & aryRslt(j,i) & "</a>")
The value of the aryRslt(0,i) is names that can include a single quote (e.g.
"O'Brien") and that truncates the statement. How should I code this to
accomodate that? 3 1196
I dont think single quotes in attribute names are legal, my advice is to
avoid them.
--
Terry Burns http://TrainingOn.net
"Wayne Wengert" <wa***********@ wengert.org> wrote in message
news:uA******** ******@TK2MSFTN GP15.phx.gbl... I am trying to build a list of href statements that include parameters as in the following code:
Response.Write( "<td align='center'> <a href='YTDDetail s1.asp?jname=" & aryRslt(0,i) & "&jclass=" & ColList(j+1) & "'>" & aryRslt(j,i) & "</a>")
The value of the aryRslt(0,i) is names that can include a single quote (e.g. "O'Brien") and that truncates the statement. How should I code this to accomodate that?
Wayne,
I would look what the UrlEncode method could do for me in your place. http://msdn2.microsoft.com/en-us/library/s2x4538s.aspx
I hope this helps,
Cor
"Wayne Wengert" <wa***********@ wengert.org> schreef in bericht
news:uA******** ******@TK2MSFTN GP15.phx.gbl... I am trying to build a list of href statements that include parameters as in the following code:
Response.Write( "<td align='center'> <a href='YTDDetail s1.asp?jname=" & aryRslt(0,i) & "&jclass=" & ColList(j+1) & "'>" & aryRslt(j,i) & "</a>")
The value of the aryRslt(0,i) is names that can include a single quote (e.g. "O'Brien") and that truncates the statement. How should I code this to accomodate that?
Good suggestion - I should have thought of that!
Wayne
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:Ot******** ******@tk2msftn gp13.phx.gbl... Wayne,
I would look what the UrlEncode method could do for me in your place.
http://msdn2.microsoft.com/en-us/library/s2x4538s.aspx
I hope this helps,
Cor
"Wayne Wengert" <wa***********@ wengert.org> schreef in bericht news:uA******** ******@TK2MSFTN GP15.phx.gbl...I am trying to build a list of href statements that include parameters as in the following code:
Response.Write( "<td align='center'> <a href='YTDDetail s1.asp?jname=" & aryRslt(0,i) & "&jclass=" & ColList(j+1) & "'>" & aryRslt(j,i) & "</a>")
The value of the aryRslt(0,i) is names that can include a single quote (e.g. "O'Brien") and that truncates the statement. How should I code this to accomodate that?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Patryk Konieczka |
last post by:
Hello
Here's the thing
I have a database edited by some company workers editing descriptions of
books in the sotre , unfortunately these workers do not have the habit of
inserting a space character after word-ending dot, this is why i use the
function:
function getCorrect($txt) {
$txt=str_replace(",",", ",$txt);
$txt=str_replace(".",". ",$txt);
|
by: gabriel |
last post by:
Is there such a parser out there?
I'm using XMLSPY.. can its native parser handle imbedded Schematron and
validate an instace against it?
/Gabriel
|
by: Mike Daniel |
last post by:
I am attempting to use document.write(pageVar) that displays a new html page
within a pop-up window and the popup is failing. Also note that pageVar is
a complete HTML page containing other java scripts.
Being a javascript newbie and after significant testing, I suspect that the
document.write fails after finding a </script> within pageVar.
Does a trick exist that enables one to slightly alter pageVar whereby
enabling...
|
by: Dana Smith |
last post by:
Can anybody explain why when I have a hyperlink on a page with the code
similar to below, after the user clicks on the link, the desired window
opens but the page with the hyperlink changes to a new page with simply the
value "" on it? I want the original page to remain unchanged....
thanks for the insight to a javascript n00bie... :)
<a href="javascript:window.open('wireless.htm', 'pjtdetails',
config='height=400, width=400, toolbar=no,...
|
by: Don Clark |
last post by:
Hello;
Admittedly, I'm very new to HTML, and this is my first post to any
newsgroup, so please go easy. I was looking at the html code for an email I
received and noted an href statement that looked very unusual. The statement
was:
<a href=3D"http://www.%76%69t%2D%63%6F.com">
<INPUT TYPE=3D"submit" VALUE=3D"Order Here" style=3D"font-family: Verdana;
color: #3F79C0; ">
| |
by: Brian Bischof |
last post by:
I'm have a form with a datagrid showing a checkbox for each row. I want the
user to be able to click a checkbox and then click a button that sends an
email similar to how the HREF MailTo: works. I can't embed the MailTo: in
the webpage b/c the button has to determine which row has a checkbox, pull
data from SQL and then build the email content. I originally wrote the code
using System.Web.Mail classes but the client doesn't like it b/c they...
|
by: Tom |
last post by:
I can't get the Microsoft Jet OLEDB 4.0 driver to read a tab delimited
text file that has double quotes imbedded in the data. For example
Field1 | Field2 | Field3
Bob | Pant Size 34" Waist | 22
(I'm using a vertical bar here for the tab)
Field2 will contain: Pant Size 34
Field3 will contain: Waist
|
by: Semajthewise |
last post by:
Hi all. I'm starting on my next part of my teach myself vb program. What I am trying to do is on button click open a textfile showing the math as it would be done long hand. I started writing the code and now I think There might be a better way of doing it than what I have been doing. Here's the code as far as it goes.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'...
|
by: biju |
last post by:
It is very common to see an image as a link on many web pages.
Authors create them by putting an <imgtag inside a <atag.
This is very much extra use of another tag.
But why browsers dont support href attribute for <imgtag?
Whether at any time this came up at W3C?
|
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,...
|
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...
| |
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |