Solved

Retrive input value from dynamically constructed input tag

Posted on 2012-03-16
2
228 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 500 total points
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now