Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Retrive input value from dynamically constructed input tag

Posted on 2012-03-16
2
Medium Priority
?
239 Views
Last Modified: 2012-04-13
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.
0
Comment
Question by:theartha
2 Comments
 
LVL 2

Accepted Solution

by:
JAruchamy earned 2000 total points
ID: 37729560
Try this in Codebehind...

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

http://forums.asp.net/t/1520087.aspx/1
0
 
LVL 7

Expert Comment

by:markmiddlemist
ID: 37729574
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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question