Solved

asp.net - vb.net Passing a value from a hidden text field

Posted on 2004-09-09
3
275 Views
Last Modified: 2012-05-05
Ok, I feel really dumb asking this question.  I spent a good deal of time today trying to figure out why I couldn't pass a value to my hidden text field value.  It was as if the hidden text field didn't exist: I had it in the page as a protected withevent, I had runat server.  Then when I try to just hard code a value in the hidden field and request it from my next page it had nothing in it.

Help
0
Comment
Question by:oshe127
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:shahzaibkhan
ID: 12029388
the question is little confusing. YOU have hidden field which you want to access in your code behinde but you could not, is that so? IN which event you are trying?
0
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 50 total points
ID: 12031408
hidden text fields, in the ASP sense, are NOT seen when the page is posted to ASP.NET.  You must add an ASP.NET text field, and then make its Visible Property FALSE.  That will add the runat=server attribute, so that the text field will be accessible from the code-behind of the asp.net page.  ASP.NET cannot see any of the standard ASP controls, which are only rendered on the clinet, and not passed back to the server to be 'seen' by the code-behind.

AW
0
 

Author Comment

by:oshe127
ID: 12061025
Thank you!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bigDiff challenge 17 143
Python - ImportError: No module named 'urllib2' 2 538
groupNoAdj 7 125
collection output issue 9 92
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question