HI Yashika, Thanks for the reply but it looks like the document.getElementByID is for Javascript while I'm looking to pull the input from a hidden input tag into the code side of an ASP.Net page.
Thanks again, -Tim On Aug 5, 12:20 pm, Yashika <[email protected]> wrote: > hope this wil help u > > document.getElementById("<%=Text1.ClientID%>") > > On 8/5/09, Tim Dawg <[email protected]> wrote: > > > > > > > Hello all, > > > I'm a relatively new ASP.net programmer and am having a problem I'm > > hoping one of you pros out there can help me out with. I've got a > > formview setup and working properly however within the formview I have > > some hidden input tags that contain various pieces of data that the > > user could care less about (which is why I don't want them to see > > it). I don't know how to read the data out of the html input tags so > > I can add it to my dictionary when submitting the formview. Normally > > if you have a tag such as: > > > <input id="ShipAddressID" type="hidden" style="width:340px" > > value="whatever" /> > > > You could read it in code using ShipAddressID.Value but I cannot do > > that when the input is within a formview control. I've tried this but > > it doesn't work either. > > > FormView1.FindControl("ShipAddressID") > > > I have to use an hidden input because I have a popup window that uses > > javascript to pass a value back to the parent page so I can't use a > > label or any other asp.net control (that I know of). As far as I > > know, I can only pass a value back via javascript to standard HTML > > input tags. > > > So any ideas? > > Thanks so much! > > -Tim- Hide quoted text - > > - Show quoted text -
