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:
A high performance database engine using optimized data access for all development environments including Delphi, Visual Studio .NET, Visual Basic, Visual FoxPro. and more. Learn More
  #1  
Old February 9th, 2003, 01: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, 01: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, 03: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, 01: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: 6
!?

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, 01: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: 6
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!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway