Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Quotation problem


Message #1 by "John Hamman {Hamman Interactive}" <johnhamman@C...> on Thu, 27 Feb 2003 12:58:55 -0500
Hi all Im adding items into a drop down list that have quotations in
them but I cant get it to work.Could someone help.

sHeight.Items.Add(new ListItem("Up to 36"","rh1"));
sHeight.Items.Add(new ListItem("36 1/8"""-48""","rh2"));

This doesn=92t work what the output needs to be is Up to 36" and 36
1/8"-48"
For the text on the dropdown. The values have no quotes.
I am programing this in c#
Thanks
John




Message #2 by "syed huda" <snmzhuda@h...> on Thu, 27 Feb 2003 11:59:22 -0700
Use \" instead of " to denote inches.
Your code should look like:

sHeight.Items.Add(new ListItem("Up to 36\"","rh1"));
sHeight.Items.Add(new ListItem("36 1/8\"-48\"","rh2"));


----- Original Message ----- 
From: "John Hamman {Hamman Interactive}" <johnhamman@C...>
To: "ASP.NET" <aspx@p...>
Sent: Thursday, February 27, 2003 10:58 AM
Subject: [aspx] Quotation problem


Hi all Im adding items into a drop down list that have quotations in
them but I cant get it to work.Could someone help.

sHeight.Items.Add(new ListItem("Up to 36"","rh1"));
sHeight.Items.Add(new ListItem("36 1/8"""-48""","rh2"));

This doesn't work what the output needs to be is Up to 36" and 36
1/8"-48"
For the text on the dropdown. The values have no quotes.
I am programing this in c#
Thanks
John





Message #3 by "John Hamman {Hamman Interactive}" <johnhamman@C...> on Thu, 27 Feb 2003 14:47:59 -0500
Thanks, that was just what I needed.
john

-----Original Message-----
From: syed huda [mailto:snmzhuda@h...] 
Sent: Thursday, February 27, 2003 1:59 PM
To: ASP.NET
Subject: [aspx] Re: Quotation problem


Use \" instead of " to denote inches.
Your code should look like:

sHeight.Items.Add(new ListItem("Up to 36\"","rh1"));
sHeight.Items.Add(new ListItem("36 1/8\"-48\"","rh2"));


----- Original Message ----- 
From: "John Hamman {Hamman Interactive}" <johnhamman@C...>
To: "ASP.NET" <aspx@p...>
Sent: Thursday, February 27, 2003 10:58 AM
Subject: [aspx] Quotation problem


Hi all Im adding items into a drop down list that have quotations in
them but I cant get it to work.Could someone help.

sHeight.Items.Add(new ListItem("Up to 36"","rh1"));
sHeight.Items.Add(new ListItem("36 1/8"""-48""","rh2"));

This doesn't work what the output needs to be is Up to 36" and 36
1/8"-48" For the text on the dropdown. The values have no quotes. I am
programing this in c# Thanks John







Message #4 by "Citigori Venkateshwar Rao" <venkat_101@h...> on Thu, 27 Feb 2003 19:59:41 +0000

Use escape character.

sHeight.Items.Add(new ListItem("Up to 36\"","rh1"));
sHeight.Items.Add(new ListItem("36 1/8\""-48\"","rh2"));

hope this works.

Venkat.





>From: "John Hamman {Hamman Interactive}" <johnhamman@C...>
>Reply-To: "ASP.NET" <aspx@p...>
>To: "ASP.NET" <aspx@p...>
>Subject: [aspx] Quotation problem
>Date: Thu, 27 Feb 2003 12:58:55 -0500
>
>Hi all Im adding items into a drop down list that have quotations in
>them but I cant get it to work.Could someone help.
>
>sHeight.Items.Add(new ListItem("Up to 36"","rh1"));
>sHeight.Items.Add(new ListItem("36 1/8"""-48""","rh2"));
>
>This doesn?t work what the output needs to be is Up to 36" and 36
>1/8"-48"
>For the text on the dropdown. The values have no quotes.
>I am programing this in c#
>Thanks
>John
>
>
>
>
>


_________________________________________________________________
Hutch MSN Cricketer- ball by ball action - Download Now! 
http://server1.msn.co.in/msnspecials/cricketdownload/contest.asp

Message #5 by "Rohit Arora" <rohit_arora@i...> on Fri, 28 Feb 2003 12:22:32 +0530
Try putting \" where u r tryin to put "

Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229


-----Original Message-----
From: John Hamman {Hamman Interactive} [mailto:johnhamman@C...]
Sent: Thursday, February 27, 2003 11:29 PM
To: ASP.NET
Subject: [aspx] Quotation problem


Hi all Im adding items into a drop down list that have quotations in
them but I cant get it to work.Could someone help.

sHeight.Items.Add(new ListItem("Up to 36"","rh1"));
sHeight.Items.Add(new ListItem("36 1/8"""-48""","rh2"));

This doesn?t work what the output needs to be is Up to 36" and 36
1/8"-48"
For the text on the dropdown. The values have no quotes.
I am programing this in c#
Thanks
John







  Return to Index