By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,070 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,070 IT Pros & Developers. It's quick & easy.

How do I obtain a reference to an object using the ID?

P: n/a
In Javascript I can use document.getElementById("elementID") to access the
object.

Is there an equivalent in VB.NET / ASP.NET ?

Thanks in advance
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Hellrazor,

Have a look to mshtml which covers this.

http://msdn.microsoft.com/library/de...LDHTMLAPIs.asp

However I do not know how in ASPNET because there I do not use the document
on the serverside but only the controls.

Althoug I think there is a way to do the same things with that. So can you
explain a little bit more what you try to archieve.

Cor
Nov 18 '05 #2

P: n/a
Hello hellrazor,

You may be looking for Page.FindControl("controlID")...
In Javascript I can use document.getElementById("elementID") to access
the object.

Is there an equivalent in VB.NET / ASP.NET ?


--
Matt Berther
http://www.mattberther.com
Nov 18 '05 #3

P: n/a
Matt Berther <mb******@hotmail.com> wrote in news:#EJ#QgDPEHA.736
@tk2msftngp13.phx.gbl:
Hello hellrazor,

You may be looking for Page.FindControl("controlID")...
In Javascript I can use document.getElementById("elementID") to access
the object.

Is there an equivalent in VB.NET / ASP.NET ?


--
Matt Berther
http://www.mattberther.com


Yes, thanks, I found the answer here:

http://www.dotnet247.com/247referenc...27/135812.aspx

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.