ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2003, 02:42 PM
adamlloyd adamlloyd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 6 adamlloyd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Passing ASP via hidden form fields....

Hi

I want to pass ASP returned values via hidden form fields...

Here is a simpler demo of my what I am trying to do....

Page containg asp values in hidden fields of a form:
(input.asp)
<html>
<body>
<form method = "post" action="ad.asp">
<input type = "hidden" value = "adski" name = "ad1">
<input type = "hidden" value = ""<%= WeekDayName(Weekday(Date)) %>"" name="ad2">
<input type = "submit" value="submit" name = "submit">
</body>
</html>


Output page, showing passed ASP values:
(ad.asp)
<%
Option Explicit
response.buffer = true
%>
<html>
<body>
<%
' declare all variable names
dim ad1
dim ad2
ad1 = request.form("ad1")
ad2 = request.form("ad2")
%>

this is ad2:<br>
<%response.write ad1%>
<br>
<br>
this is ad1:<br>
<%response.write ad2%>
</body>
</html>

But on ad.asp i only pass the text value, not the asp value of the second hidden field.!!!!!

How can I do it'????
Any ideas?

muchos gracias for your help!
Comments on this post
BaronVonDoppleG agrees!

Reply With Quote
  #2  
Old February 9th, 2003, 02:45 PM
adamlloyd adamlloyd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 6 adamlloyd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
DoH! sussed it out!! too many """"""

Doh!

Ciao!

Reply With Quote
  #3  
Old February 10th, 2003, 04:22 AM
tosurender tosurender is offline
Techincal Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: New Delhi India
Posts: 12 tosurender User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb hi, here is an error in u'r code

hi
here is u'r code
---------------------------------------------
<input type = "hidden" value = ""<%= WeekDayName(Weekday(Date)) %>"" name="ad2">
---------------------------------------------

the right code is
=================
<%
dim week_dy
weel_dy=WeekDayName(Weekday(Date))
%>
<input type = "hidden" value = "<%=week_dy%>" name="ad2">
=================
u just have to copy the above code and paste in place of u'r 2nd hidden element.
nothing else and u got the right result on ad.asp page
feel free to ask any other query.....
bye
Sur
Comments on this post
BaronVonDoppleG agrees!

Reply With Quote
  #4  
Old February 17th, 2003, 02:05 AM
yassoor's Avatar
yassoor yassoor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Canada - Egypt
Posts: 60 yassoor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
!?

Adam, I am not sure if the last reply answered your question, but what exactly r u trying to do?!

I noticed that you used double doubl quotes "" <%=Wee....%>"".

If you could explain more on what do u mean u r getting the text not the asp output.
Comments on this post
BaronVonDoppleG agrees!

Reply With Quote
  #5  
Old February 17th, 2003, 02:12 AM
yassoor's Avatar
yassoor yassoor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Canada - Egypt
Posts: 60 yassoor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
if what you ment was the output of the ad.asp page be like

as is

===============

adski
<%=WeekDayName(Weekday(Date)) %>

===============

Then in the input
<input type = "hidden" value = "<%= WeekDayName(Weekday(Date)) %>" name="ad2">


< and > instead of the <% and the %>

I hope this is of any help

Yasser
http://www.websitescreation.ca

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Passing ASP via hidden form fields....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek