Retrive input value from dynamically constructed input tag

Hi There,

I wrote a function in  JavaScript to create a input tag. But I am unable to retrieve the value in

<input type="text" size="10" maxlength="10" id="Day1Start">

Please advice.
Who is Participating?
Try this in Codebehind...

String text = Page.Request.Form["Day1Start"]
As long as you know what name it will have been created as you should find it in Request.Forms, or if you know the form of the name (e.g.DayXStart) you could loop through the Request.Forms collection (or use a LINQ query) looking for matching names
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.