Jump to content
  • Advertisement
Sign in to follow this  
Axiverse

[web] Asp.net dynamic input pages.

This topic is 4121 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm building a page that has a variable number of input text boxes depending on the contents of a xml document. Asp controls don't work when added dynamically, so I'm just using traditional html input. The thing is how would I read the contents of the textboxes (via id or name) on a postback?

Share this post


Link to post
Share on other sites
Advertisement
I had to deal with a similar situation some time ago. These two links were helpful:

link 1 | link 2

If you're using standard HTML - and not the ASP.NET controls - you can use GET/POST to retrieve the values...

GET - value = Request.QueryString("controlname")
POST - value = Request.Form("controlname")

Incidentally, the above seems to work even if you do use the ASP.NET form controls, I guess since the information is POSTed/GETed the same either way.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!