Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Select case: Urgent


Message #1 by =?iso-8859-1?q?Himanshu=20Chaudhari?= <himanshuchaudhari@y...> on Wed, 17 Apr 2002 10:25:49 +0100 (BST)
--0-174747578-1019035549=:1558
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit


I am using Select case in a script 

id=ltrim(rtrim(Request.querystring("id")))
select case id 
case "ani-47"
logo="00480E019FB7DFFFFFFFFBEDF96FCFBFFFFFFFFDF3F6EFC20FFFFFFFF043F7EF9EBFFFFFFFFD79F7DF30D87FFFFE1B0CFBBF80313FFFFC8C01FDBF00001FFF
F80000FD9E0C001FFFF8003079C03F413FFFFC82FC03E07E787FFFFE1E7E07FE7CFFFFFFFFFF3E7FF8FC0FFFFFFFF03F1FF57F3FFFFFFFFCFEAFFDFF5FFFFFFFFAFF
BF" case "ani-65"
logo="00480E01000000E0E038000000000003F3B07E0000000000073AF0E700000000000ED8F8DB80000000001DDDFDDDC0000000003BDBFEDEE000000000772BFE
A77000000000EEF5FD7BB800000001DDEAFABDDC00000003BB9CF9CEEE0000000F777974F7778000087EEEE2723BBBF08007F1DD8CA98DDC7F00000FBBB9FCEEEF80
00" 
end select

Response.write logo

when i am using id as  a hardcoded then it is working fine but is i pass it using querystring it is reading id but not giving value
of logo .
Pl. Help .

                                   Himanshu





---------------------------------
Download   Yahoo! Score Tracker for live cricket scores on your desktop
Message #2 by "Peter Rooney" <peter.rooney@p...> on Wed, 17 Apr 2002 10:37:26 +0100
This is a multi-part message in MIME format.

------=_NextPart_000_0019_01C1E5FB.DE917070
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Have you done a ' Response.Write Request.QueryString("id") ' to make sure
the value is being passed?


  -----Original Message-----
  From: Himanshu Chaudhari [mailto:himanshuchaudhari@y...]
  Sent: 17 April 2002 10:26
  To: ASP Web HowTo
  Subject: [asp_web_howto] Select case: Urgent


  I am using Select case in a script

  id=ltrim(rtrim(Request.querystring("id")))
  select case id
  case "ani-47"
logo="00480E019FB7DFFFFFFFFBEDF96FCFBFFFFFFFFDF3F6EFC20FFFFFFFF043F7EF9EBFFF
FFFFFD79F7DF30D87FFFFE1B0CFBBF80313FFFFC8C01FDBF00001FFFF80000FD9E0C001FFFF8
003079C03F413FFFFC82FC03E07E787FFFFE1E7E07FE7CFFFFFFFFFF3E7FF8FC0FFFFFFFF03F
1FF57F3FFFFFFFFCFEAFFDFF5FFFFFFFFAFFBF" case "ani-65"
logo="00480E01000000E0E038000000000003F3B07E0000000000073AF0E700000000000ED8
F8DB80000000001DDDFDDDC0000000003BDBFEDEE000000000772BFEA77000000000EEF5FD7B
B800000001DDEAFABDDC00000003BB9CF9CEEE0000000F777974F7778000087EEEE2723BBBF0
8007F1DD8CA98DDC7F00000FBBB9FCEEEF8000"
  end select

  Response.write logo

  when i am using id as  a hardcoded then it is working fine but is i pass
it using querystring it is reading id but not giving value of logo .
  Pl. Help .

                                     Himanshu






----------------------------------------------------------------------------
--
  Download  Yahoo! Score Tracker for live cricket scores on your desktop ---
Improve your web design skills with these new books from Glasshaus. Usable
Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to 



Message #3 by bobby.sojitra@b... on Wed, 17 Apr 2002 10:38:55 +0100
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1E5F3.B16367A0
Content-Type: text/plain;
	charset="iso-8859-1"

Im an asp beginner, so this might not work, but instead of :
id=ltrim(rtrim(Request.querystring("id"))), try
trim(Request.Querystring("id"))

-----Original Message-----
From: Himanshu Chaudhari [mailto:himanshuchaudhari@y...]
Sent: 17 April 2002 10:26
To: ASP Web HowTo
Subject: [asp_web_howto] Select case: Urgent



I am using Select case in a script 

id=ltrim(rtrim(Request.querystring("id")))
select case id 
case "ani-47"
logo="00480E019FB7DFFFFFFFFBEDF96FCFBFFFFFFFFDF3F6EFC20FFFFFFFF043F7EF9EBFFF
FFFFFD79F7DF30D87FFFFE1B0CFBBF80313FFFFC8C01FDBF00001FFFF80000FD9E0C001FFFF8
003079C03F413FFFFC82FC03E07E787FFFFE1E7E07FE7CFFFFFFFFFF3E7FF8FC0FFFFFFFF03F
1FF57F3FFFFFFFFCFEAFFDFF5FFFFFFFFAFFBF" case "ani-65"
logo="00480E01000000E0E038000000000003F3B07E0000000000073AF0E700000000000ED8
F8DB80000000001DDDFDDDC0000000003BDBFEDEE000000000772BFEA77000000000EEF5FD7B
B800000001DDEAFABDDC00000003BB9CF9CEEE0000000F777974F7778000087EEEE2723BBBF0
8007F1DD8CA98DDC7F00000FBBB9FCEEEF8000" 
end select

Response.write logo

when i am using id as  a hardcoded then it is working fine but is i pass it
using querystring it is reading id but not giving value of logo .
Pl. Help .

                                   Himanshu






  _____  

Download  cricket <http://sg.yimg.com/i/aa/icons/28/cricket.gif> Yahoo!
<http://in.sports.yahoo.com/cricket/tracker.html> Score Tracker for live
cricket scores on your desktop --- Improve your web design skills with these
new books from Glasshaus. Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to 


Message #4 by "Chris Thompson" <cthompson@n...> on Wed, 17 Apr 2002 08:14:15 -0600
This is a multi-part message in MIME format.

------_=_NextPart_001_01C1E61A.27E00074
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Not sure why the select case is not working but I would recommend
instead of using



Ltrim(rtrim("String"))



that you use:



trim("string")



Thanks,



Chris Thompson





-----Original Message-----
From: Himanshu Chaudhari [mailto:himanshuchaudhari@y...]
Sent: Wednesday, April 17, 2002 3:26 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Select case: Urgent



I am using Select case in a script

id=3Dltrim(rtrim(Request.querystring("id")))
select case id
case "ani-47"
logo=3D"00480E019FB7DFFFFFFFFBEDF96FCFBFFFFFFFFDF3F6EFC20FFFFFFFF043F7EF9
E
BFFFFFFFFD79F7DF30D87FFFFE1B0CFBBF80313FFFFC8C01FDBF00001FFFF80000FD9E0C
001FFFF8003079C03F413FFFFC82FC03E07E787FFFFE1E7E07FE7CFFFFFFFFFF3E7FF8FC
0FFFFFFFF03F1FF57F3FFFFFFFFCFEAFFDFF5FFFFFFFFAFFBF" case "ani-65"
logo=3D"00480E01000000E0E038000000000003F3B07E0000000000073AF0E7000000000
0
0ED8F8DB80000000001DDDFDDDC0000000003BDBFEDEE000000000772BFEA77000000000
EEF5FD7BB800000001DDEAFABDDC00000003BB9CF9CEEE0000000F777974F7778000087E
EEE2723BBBF08007F1DD8CA98DDC7F00000FBBB9FCEEEF8000"
end select

Response.write logo

when i am using id as  a hardcoded then it is working fine but is i pass
it using querystring it is reading id but not giving value of logo .
Pl. Help .

                                   Himanshu



  _____ 

Download  cricket <http://sg.yimg.com/i/aa/icons/28/cricket.gif> Yahoo!
<http://in.sports.yahoo.com/cricket/tracker.html>  Score Tracker for
live cricket scores on your desktop --- Improve your web design skills
with these new books from Glasshaus. Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20 --- 


Message #5 by Shaun Steckley <SSTECKLEY@P...> on Wed, 17 Apr 2002 10:31:21 -0400
You may want to try type casting your select statement.


id=ltrim(rtrim(Request.querystring("id")))

select case cstr(id )
	case "ani-47"
logo="00480E019FB7DFFFFFFFFBEDF96FCFBFFFFFFFFDF3F6EFC20FFFFFFFF043F7EF9EBFFF
FFFFFD79F7DF30D87FFFFE1B0CFBBF80313FFFFC8C01FDBF00001FFFF80000FD9E0C001FFFF8
003079C03F413FFFFC82FC03E07E787FFFFE1E7E07FE7CFFFFFFFFFF3E7FF8FC0FFFFFFFF03F
1FF57F3FFFFFFFFCFEAFFDFF5FFFFFFFFAFFBF" 
	case "ani-65"
	
logo="00480E01000000E0E038000000000003F3B07E0000000000073AF0E700000000000ED8
F8DB80000000001DDDFDDDC0000000003BDBFEDEE000000000772BFEA77000000000EEF5FD7B
B800000001DDEAFABDDC00000003BB9CF9CEEE0000000F777974F7778000087EEEE2723BBBF0
8007F1DD8CA98DDC7F00000FBBB9FCEEEF8000"
end select

Response.write logo

-----Original Message-----  
From: Chris Thompson [mailto:cthompson@n...]
Sent: Wednesday, April 17, 2002 10:14 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Select case: Urgent


Not sure why the select case is not working but I would recommend instead of
using

Ltrim(rtrim("String")) 

that you use:

trim("string")

Thanks,

Chris Thompson


-----Original Message-----
From: Himanshu Chaudhari [mailto:himanshuchaudhari@y...] 
Sent: Wednesday, April 17, 2002 3:26 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Select case: Urgent

I am using Select case in a script 
id=ltrim(rtrim(Request.querystring("id")))
select case id 
case "ani-47"
logo="00480E019FB7DFFFFFFFFBEDF96FCFBFFFFFFFFDF3F6EFC20FFFFFFFF043F7EF9EBFFF
FFFFFD79F7DF30D87FFFFE1B0CFBBF80313FFFFC8C01FDBF00001FFFF80000FD9E0C001FFFF8
003079C03F413FFFFC82FC03E07E787FFFFE1E7E07FE7CFFFFFFFFFF3E7FF8FC0FFFFFFFF03F
1FF57F3FFFFFFFFCFEAFFDFF5FFFFFFFFAFFBF" case "ani-65"
logo="00480E01000000E0E038000000000003F3B07E0000000000073AF0E700000000000ED8
F8DB80000000001DDDFDDDC0000000003BDBFEDEE000000000772BFEA77000000000EEF5FD7B
B800000001DDEAFABDDC00000003BB9CF9CEEE0000000F777974F7778000087EEEE2723BBBF0
8007F1DD8CA98DDC7F00000FBBB9FCEEEF8000" 
end select
Response.write logo
when i am using id as  a hardcoded then it is working fine but is i pass it
using querystring it is reading id but not giving value of logo .
Pl. Help .
                                   Himanshu




Download Yahoo! Score Tracker for live cricket scores on your desktop ---
Improve your web design skills with these new books from Glasshaus. Usable
Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to 
--- Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20 --- 


********************************************************************
The information contained in this email is confidential and
is intended solely for the use of the person identified and
intended as the recipient. If you are not the intended 
recipient, any disclosure, copying, distribution, or taking of
any action in reliance on the contents is prohibited. If you
receive this message in error, contact the sender
immediately and delete it from your computer.

Personal e-mails are restricted by PSECU policy. As such,
PSECU specifically disclaims any responsibility or liability
for any personal information or opinions of the author
expressed in this email.
********************************************************************


  Return to Index