Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Server Side Programming > ASP and ASP.NET
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 05-06-2008, 02:31 PM
  #1
sortiz
Novice (Level 1)
 
Join Date: May 2008
Posts: 3
iTrader: (0)
sortiz is an unknown quantity at this point
how do assign a value to a hidden input

An asp.net button calls an HTML page which contain hidden input.
How do I assign the Session("TotalAmount") to one of the hidden input textbox????.
Righ now I am manually assigning 1.00 to the chargetotal input. But How do I assign it a value comming from the asp.net form which it is store in a session("TotalAmount") variable.

Any help is greatly appreciated.



Here is the code :

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>LinkPoint Connect Example Store</title>
</head>
<body>
<h1>Heading</h1>
<h3>Product/Price</h3>
<p>Description about the product</p>
<br />
<form action="https://www.linkpointcentral.com/lpc/servlet/lppay" method="post">
<input type="hidden" name="storename" value="118888" />
<input type="hidden" name="chargetotal" value="1.00" />
<input type="hidden" name="mode" value="payonly" />
<br />

<input type="submit" value="Continue to Secure Payment Form" id="Submit1" />

</form>
</body>
</html>
sortiz is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-07-2008, 10:57 PM
  #2
JoeyDaly
Paladin (Level 15)
 
JoeyDaly's Avatar
 
Join Date: Aug 2007
Location: Melbourne, Australia
Posts: 317
iTrader: (0)
JoeyDaly is an unknown quantity at this point
I think this should be in the ASP forum, but something like:

Code:
<input type="hidden" name="chargetotal" value="<% response.write(session('TotalAmount')) %>" />
Or whatever the echo/print syntax is for ASP, can't remember.
__________________
-- Joey Daly,
Web Developer & Programmer
JoeyDaly is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Reply
« Previous Thread | Next Thread »


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



 
  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 Off
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 04:16 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.