dcsimg
Results 1 to 2 of 2

Thread: How to access/modify HTML objects at runtime?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Location
    Croatia
    Posts
    23

    How to access/modify HTML objects at runtime?

    How can I acces html controls (table, textarea, image) on my page at runtime from ASP code, not from javascript?

    Is there a way?

    ...using MS VS. NET 2005, VB.NET

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: How to access/modify HTML objects at runtime?

    Yes. You can loop through the Controls collection of the Page object. Check the control type for each of the controls. All the controls you are looking for will usually have a type that looks something like: HtmlInputTextBox, HtmlInputTextArea, HtmlInputCheckbox to indicate that it is an HTML control, not an ASP.NET control.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width