473,320 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Dealing with Quotations (") in HTML

Whenever I write a line of code that uses quotation marks, such as..

<% foreach (merri.Data.dsMerri.AlbumDetailsRow dr in
merri.Business.AllBusiness.ArtistAndAlbumByStyle(" Children")) {%>

I recieve an error message if I try to view the designer. I have tried
to comply with the message that says to surround the <%%> with ' quotes,
but it doesn't help. What am I doing wrong?

Nov 17 '05 #1
2 1370
Okay, But I can't send HTML tags through functions from the code behind
page if the tag includes ".
I understand object-oriented, but the majority of examples that exist
are not written in that fashion. Can you offer a code based solution for
this?

<% foreach (System.Data.DataRow drs in AlbumArray){
merri.Data.dsMerri.AlbumRow newDr =
(merri.Data.dsMerri.AlbumRow)drs; %>
<td width="100">
<A
href="album.aspx?album=<%=newDr.Album_ID%>;&amp;st yle=<%=newDr.MusicStyle%>"

<p id="albumlink"><%=newDr.Name%></p>
</A>
</td>
<% } %>
The "'s don't allow me to write the text in a function. So how do? I
have been trying to follow the microsoft articles on web patterns, but
no examples exist of this nature. I would really appreciate the help.

Kevin Spencer wrote:
I would say that what you're doing wrong is treating object-oriented
technology like it's procedural. This isn't ASP; it's ASP.Net.


Nov 17 '05 #2
/..
By Wed, 23 Jul 2003 14:03:43 -0400, Jesse <sp*****@hotmail.com>
decided to post
"Re: Dealing with Quotations (") in HTML" to
microsoft.public.dotnet.framework.aspnet:
Okay, But I can't send HTML tags through functions from the code behind
page if the tag includes ".
I understand object-oriented, but the majority of examples that exist
are not written in that fashion. Can you offer a code based solution for
this?

<% foreach (System.Data.DataRow drs in AlbumArray){
merri.Data.dsMerri.AlbumRow newDr =
(merri.Data.dsMerri.AlbumRow)drs; %>
<td width="100">
<A
href="album.aspx?album=<%=newDr.Album_ID%>;&amp;s tyle=<%=newDr.MusicStyle%>"

<p id="albumlink"><%=newDr.Name%></p>
</A>
</td>
<% } %>
The "'s don't allow me to write the text in a function. So how do? I
have been trying to follow the microsoft articles on web patterns, but
no examples exist of this nature. I would really appreciate the help.

Kevin Spencer wrote:
I would say that what you're doing wrong is treating object-oriented
technology like it's procedural. This isn't ASP; it's ASP.Net.


Did you try
1. using single quotes in place of double quotes?
2. escaping the double quotes: \"albumlink\"
3. using hex values for literal characters? (there are some parsing
classes in .net that will do the conversions for you)
4. creating literal strings: @"myValue";
or
@"""myValue""";

Surely one of these suggestions will work for you?

HTH,

/ts
--

exec rm -r /bin/laden*

##--------------------------------------------------##
"We are stardust, we are golden,
And we've got to get ourselves back to the Garden"
Joni Mitchell
##--------------------------------------------------##
Nov 17 '05 #3

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

Similar topics

3
by: NecroJoe | last post by:
I am using PHP to generate a little javascript for one of my pages. In short it allows a user to select a value from a list and pop it into a form field on a seperate page. This works well unless...
6
by: Kondapanaidu | last post by:
Hi, I am using C#V1.1. How to add double quotations to a string. If I go with "\"" the back slash is going to be added to the assigned string. EX: string str="naidu" + "\"" + "GK" + "\"";
4
by: bmerlover | last post by:
Hi, I need to read a script file and change the text on the buttons I set. I have the psuedocode in my head, but I'm having trouble putting that into code. I figured out how to seperate B1 from T1...
1
by: bmerlover | last post by:
I'm having trouble reading quotations inside the richTextBox when a file is opened on to it. I've tried a couple different methods, most of them didn't compile. I came across one that does compile...
2
by: nargish | last post by:
I am eager to replace double quotations in the output that is being displayed. input text : This is "within quotes" output text: This is <p class="quotes">within quotes</p> I have...
3
by: sophie_newbie | last post by:
Hi, I want to store python text strings that characters like "é" "Č" in a mysql varchar text field. Now my problem is that mysql does not seem to accept these characters. I'm wondering if there...
0
by: raylopez99 | last post by:
I ran afoul of this Compiler error CS1612 recently, when trying to modify a Point, which I had made have a property. It's pointless to do this (initially it will compile, but you'll run into...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Programs dealing with autoruns Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list programs that help me to view/modify the autoruns...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.