Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

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.
1 Solution
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.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now