Solved

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

Posted on 2004-09-09
3
273 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mirrorEnds challenge 6 145
countEvens challenge 2 113
Line meaning 9 89
Specific format 21 216
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…
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

740 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