Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. HtmlTableCell Control

HtmlTableCell Control

Scheduled Pinned Locked Moved ASP.NET
questionsysadminhelp
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cybersurferdev
    wrote on last edited by
    #1

    Hi I have a webpage that has a button on it and a HtmlTableCell Control that I created by putting a id= and runat=server in a td. What I would like to do is load an existing created page (.aspx) into the HtmlTableCell control when the button is clicked. In the click event I have cleared the control but now I am stuck as to how I add the page into the control. I do know that there is the form1.Controls.Add( ) method but what is it that I put into the parentheses? If it's just a URL of the page then that shouldn't be to difficult but if it's something else could someone please tell me how I load an existing page into the HtmlTableCell Control? Thanks Bikinis are like Statistics - what they reveal is Suggestive but what they conceal is Vital.

    M 1 Reply Last reply
    0
    • C cybersurferdev

      Hi I have a webpage that has a button on it and a HtmlTableCell Control that I created by putting a id= and runat=server in a td. What I would like to do is load an existing created page (.aspx) into the HtmlTableCell control when the button is clicked. In the click event I have cleared the control but now I am stuck as to how I add the page into the control. I do know that there is the form1.Controls.Add( ) method but what is it that I put into the parentheses? If it's just a URL of the page then that shouldn't be to difficult but if it's something else could someone please tell me how I load an existing page into the HtmlTableCell Control? Thanks Bikinis are like Statistics - what they reveal is Suggestive but what they conceal is Vital.

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      There are a couple of options that you may consider: + Use an iframe element, and simply specify the url of the web page in the src attribute of the iframe. + Use the Server.Execute method to execute the web page, then write the output markup to a Literal/Label control placed in the table cell. + Convert the web page to a web user control, dynamically load and add the control to the table cell.

      R 1 Reply Last reply
      0
      • M minhpc_bk

        There are a couple of options that you may consider: + Use an iframe element, and simply specify the url of the web page in the src attribute of the iframe. + Use the Server.Execute method to execute the web page, then write the output markup to a Literal/Label control placed in the table cell. + Convert the web page to a web user control, dynamically load and add the control to the table cell.

        R Offline
        R Offline
        Ricardo Casquete
        wrote on last edited by
        #3

        I think you should try the last One.... The fist one only works in Explorer... The Second One is very good, but I think you'll have problems if you want to catch Events or to change proerties of controls an get after the Value... Regards Ricardo Casquete

        C I 2 Replies Last reply
        0
        • R Ricardo Casquete

          I think you should try the last One.... The fist one only works in Explorer... The Second One is very good, but I think you'll have problems if you want to catch Events or to change proerties of controls an get after the Value... Regards Ricardo Casquete

          C Offline
          C Offline
          cybersurferdev
          wrote on last edited by
          #4

          Thanks for the Suggestions I eventually did try the last one and so far have had no problems with it. Thanks again :-D

          1 Reply Last reply
          0
          • R Ricardo Casquete

            I think you should try the last One.... The fist one only works in Explorer... The Second One is very good, but I think you'll have problems if you want to catch Events or to change proerties of controls an get after the Value... Regards Ricardo Casquete

            I Offline
            I Offline
            Ista
            wrote on last edited by
            #5

            Ricardo Casquete wrote:

            The fist one only works in Explorer...

            its a layer in netscape. Easy to manage in javascript 2005 has this inside its ide The first one is the best one when it comes down to overhead expenditures. And is very easy 1 line of code equals many bugs. So don't write any!!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups