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 asp.net.

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

Please advice.
thearthaAsked:
Who is Participating?
 
JAruchamyCommented:
Try this in Codebehind...

String text = Page.Request.Form["Day1Start"]

http://forums.asp.net/t/1520087.aspx/1
0
 
markmiddlemistCommented:
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
0
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.