Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

general property changing

Status
Not open for further replies.

seantuk

Programmer
Mar 22, 2005
62
GB
is there a way i can read the property of any alement in my asp page? the property i#m currently trying to read is the value property in this input

Code:
<input type="hidden" name="MyContent1" value="start value">

ideally i'd like a system that allows me to read it with something along the lines of 'someObjects.MyContent1.value', that could work with al sort of things.

ta
 
If you want to read HTML controls using ASP.NET code you will have to add a runat="server" tag to them and include a WithEvent declaration to it.

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
unfortunatly, i can't use 'runat="server" on this one. is there another way i can look at it?
 
Why can't you use runat="server"?

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
a dhtml editor is created within this input when the page is run. the editor throws errors when i use runat="server". value contains the edited html, so i need to see that in the codebehind, so i can save it.
 
Hmmm can't see why it would error, but anyway, you can probably get the value of it by using Request.Form("MyContent1")

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top