Solved

Retrive input value from dynamically constructed input tag

Posted on 2012-03-16
2
230 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
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
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…

778 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