User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 456,610 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,500 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 3422 | Replies: 20 | Solved
Reply
Join Date: Sep 2007
Posts: 1,058
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: parameter passing thru on click for different buttons

  #11  
Nov 8th, 2007
did you try changing "this.form..." to "document.iprev.sessionvalue.value=" or "document.forms.iprev.sessionvalue.value="?
Get back to me, I'll help you figure this one out tonight.
Last edited by SheSaidImaPregy : Nov 9th, 2007 at 12:00 am.
Reply With Quote  
Join Date: Aug 2007
Posts: 76
Reputation: anto_nee is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
anto_nee anto_nee is offline Offline
Junior Poster in Training

Re: parameter passing thru on click for different buttons

  #12  
Nov 9th, 2007
hei now the hidden value is ok its retrieving correct values from 0 to 4.. its by using the this.for... only...
now the prob with request.form in the next page
whn i go thru searches i think i have to use the binary read but this binary read i dont know how to use

n = Request.TotalBytes
data = Request.BinaryRead(n)
For i = 1 to n
Response.Write MidB( data, i, 1 )
Next

this is the binary read

it works but how can i get the value for sessionvalue..

another one option is thr which is using "upload.form("sessionvalue")" when i try this its showing error with the upload folder name that object required.......
am getting some ideas but i dont have luck at all...
am still trying....
Reply With Quote  
Join Date: Sep 2007
Posts: 1,058
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: parameter passing thru on click for different buttons

  #13  
Nov 9th, 2007
why you use upload.form? Not sure why you're doing that and not using request.form. To request the value of the hidden input field, use request.form("sessionvalue") and set it to a string

Dim strHidden = Request.Form("sessionvalue")
Reply With Quote  
Join Date: Aug 2007
Posts: 76
Reputation: anto_nee is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
anto_nee anto_nee is offline Offline
Junior Poster in Training

Re: parameter passing thru on click for different buttons

  #14  
Nov 9th, 2007
hei here we cannot use the request.form coz the form already assigned as enctype="multipart/form-data" so by request.form we cannot get the value....here...
Reply With Quote  
Join Date: Aug 2007
Posts: 76
Reputation: anto_nee is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
anto_nee anto_nee is offline Offline
Junior Poster in Training

Re: parameter passing thru on click for different buttons

  #15  
Nov 9th, 2007
if i remove the multipart/form then its working corectly but i have to upload.... but the upload is not working...... for uploading we are force to do the multipart.. i dont know wht am going to do.. my other works also pending... only two days left to finish all my works.. thank you for ur ideas.. plz if u find something get me at yahoo chat..my id anto_nee@yahoo.co.in... plz
Reply With Quote  
Join Date: Sep 2007
Posts: 1,058
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: parameter passing thru on click for different buttons

  #16  
Nov 9th, 2007
oh yeah. That's right. You are specifying two separate data types on the form. Okay, then try this.
n = Request.TotalBytes
data = Request.BinaryRead(n)
For i = 1 to n
Response.Write MidB( data, i, 1 )
Next

dim form = Server.CreateObject("MyRequest.Form")
form.Init()
Session("sessionvalue") = form("sessionvalue")
Reply With Quote  
Join Date: Aug 2007
Posts: 76
Reputation: anto_nee is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
anto_nee anto_nee is offline Offline
Junior Poster in Training

Re: parameter passing thru on click for different buttons

  #17  
Nov 9th, 2007
expected end od statement its showing in the line dim form..

whn i change.. 'set' instead of 'dim' its showing invalid classstring...

hmm.. still prob..
Reply With Quote  
Join Date: Aug 2007
Posts: 76
Reputation: anto_nee is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
anto_nee anto_nee is offline Offline
Junior Poster in Training

Re: parameter passing thru on click for different buttons

  #18  
Nov 9th, 2007
can u come online now
Reply With Quote  
Join Date: Sep 2007
Posts: 1,058
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: parameter passing thru on click for different buttons

  #19  
Nov 9th, 2007
I do not have yahoo, actually I do not use any instant messengers! Sorry, yeah forgot about that "set" thing. Before you put this inside a vbscript tag, set your session variable. I haven't done asp in a year now, so I am a bit rusty. I would highly suggest coming to asp.net, but that's all up to you. Anyway, I think we are heading into an empty hole. Unless.. why do you need the session variable anyway? If this is how you want it, you can do a simple work around. Upload the file first, then after it uploads, createa form to send via post and set the value to the variable you set to equal the hidden input. Then automatically submit that form to the next page wher eyou can request it via request.form.
<%
n = Request.TotalBytes
data = Request.BinaryRead(n)
For i = 1 to n
Response.Write MidB( data, i, 1 )
Next

dim form = Server.CreateObject("MyRequest.Form")
form.Init()
Dim strHidden = form("sessionvalue")
'or use the set.. whatever works.
%>
<body onload="document.auto.submit()">
<%
response.write ("<form name=""auto"" id=""auto"" action=""newfile.asp"" method=""post"">" & vbCrLf)
response.write ("<input type=""hidden"" name=""sessionvalue"" id=""sessionvalue"" value=""" & strHidden & """ />" & vbCrLf)
response.write ("</form>")
%>
</body>
Then on your next page, just "Session("imgcap" & strSUnique) = Request.Form("sessionvalue")"
Reply With Quote  
Join Date: Aug 2007
Posts: 76
Reputation: anto_nee is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
anto_nee anto_nee is offline Offline
Junior Poster in Training

Re: parameter passing thru on click for different buttons

  #20  
Nov 9th, 2007
hei................SheSaidImaPregy..

thank you very much for ur support..

i find a way to solve it
	Set UploadImg = New FreeASPUpload
	UploadImg.Save uploadPath, false, 10000000
	L = UploadImg.form("sessionvalue")

this is working properly

the next problem already started..

this is simple thing with array

i will try to solve it

once again thank you
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 7:14 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC