Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 17th, 2006, 04:34 AM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to yamunchien
Default how can i restore <input type="hidden"> 's value ?

i often get the value of the hidden like this:
sName = Request.Param["UserName"].toString();//UserName is<input type="hidden" name="UserName" runat="server">

but i want to restore the hidden value to the Response's page.

how to implement it ?
Thank you !wait for your feedback.

 
Old March 17th, 2006, 03:36 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

How about sName = Username.Value

 
Old March 17th, 2006, 10:15 PM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to yamunchien
Default

yes ,i think so .but after postback the page , the page's hidden input are retrieve the default value.

 
Old March 18th, 2006, 12:29 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

do you have code that sets the default value?

 
Old March 18th, 2006, 08:45 PM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to yamunchien
Default

No, i haven't any client script to set the default value.
Thanks jbenson001 . I think i should change the method.
do you have MSN ID ? i want to add you to my MSN's friends group.
my MSN address is qiancjym@hotmail.com






Similar Threads
Thread Thread Starter Forum Replies Last Post
Putting and input in <STDIN> ZORCH Perl 1 June 14th, 2007 09:58 AM
<input> to Param or Variable bonekrusher XSLT 1 October 11th, 2006 06:00 PM
dynamic <input> tag Val Javascript 1 September 6th, 2006 02:55 AM
<INPUT type="file" (why does style not work) mat41 HTML Code Clinic 7 September 19th, 2004 02:50 AM
<input type="File"> - Specify File Type and Path gp_mk Classic ASP Basics 2 August 2nd, 2004 03:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.