Current location: Hot Scripts Forums » Programming Languages » ASP » ASP dynamic button problem


ASP dynamic button problem

Reply
  #1 (permalink)  
Old 05-09-04, 03:02 PM
kasic's Avatar
kasic kasic is offline
Newbie Coder
 
Join Date: Apr 2004
Location: Serbia
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
ASP dynamic button problem

hi. I'm building some shopping cart thing, and I have to read from textbox that have name textbox1, textbox2... depends of how many thing are in cart... when I'm trying to read it with Request.Form("textbox") & Request.QueryString("catID"), becouse Querystring catID is how I get the name of textboxes, this want work... maybe I need to do this in different way, but I dont know how... I hope that you understand what I'm trying to ask you...

thanx...
Reply With Quote
  #2 (permalink)  
Old 05-09-04, 03:14 PM
greeny greeny is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Request.Form(Request.QueryString("CatID"))
__________________
thanks,
valen@efusian.co.uk
Reply With Quote
  #3 (permalink)  
Old 05-10-04, 09:17 AM
chirag's Avatar
chirag chirag is offline
Newbie Coder
 
Join Date: May 2004
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
I don't think you can do it this way

XXXRequest.Form("textbox") & Request.QueryString("catID"),

you can user either of select case or if else structure according to your coding comfort. But you have to use static string like this:

if Request.QueryString("catID") = 1 then

Request.Form("textbox1")
elseif Request.QueryString("catID") = 2 then
Request.Form("textbox2")

....

end if
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Back button problem selvam PHP 3 05-07-04 09:41 AM
ASP double problem kasic ASP 2 05-01-04 05:30 PM
Problem with SWITCH function in Radio Button group maverickblair PHP 1 02-27-04 10:49 AM
Tab Problem!!! menwa Everything Java 0 12-06-03 05:53 AM
Dynamic Button - Urgent kamlesh_nadar ASP.NET 1 11-08-03 12:26 AM


All times are GMT -5. The time now is 04:21 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.