Sign in to follow this  

[web] Asp.net dynamic input pages.

This topic is 3872 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
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