Solved

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

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Grammars for C C++ and java 1 108
Convert Jpg /PNG To GIF 5 102
Adobe Customization Wizard XI issues 26 166
Line meaning 9 77
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
This article will show, step by step, how to integrate R code into a R Sweave document
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.
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.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now