iframe as server control

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default iframe as server control

    I would like to know if it is possible to set/save an
    iframes content in codebehind. I know that you can set an
    iframe to runat server, but when i try to access
    the .innerHTML property i get nothing. (i understand that
    it is because there actually IS nothing inbetween the
    tags).

    Is it possible to do this, and if so, how?

    Thanks

    Rory Guest

  2. Similar Questions and Discussions

    1. Using IFRAME in a custom control
      I am using an IFRAME in a custom control with src="Popup.aspx" where Popup.aspx is a page in the Web control library. How can I reference this...
    2. Implementing Control Designer Class for Composite Server Control
      I created a custom composite server control with 2 literals and 1 text box. The control displays fine in internet explorer, but doesnt display...
    3. IFrame control - guidance recommendation
      I am a asp.old programmer who after a year of .net is still trying to learn not to use querystrings and form values, and instead always rely on...
    4. Custom Server Control works on page but not User Control...why?
      I'm developing the DevEdit.NET server control (an online HTML editor - www.devedit.com) but there's an extremely bizarre bug. The control runs fine...
    5. Building a custom control that implement table server control
      Hi, I want to create a custom control that implements the table htmlcontrol. In my webform page I want to include that custom control and add...
  3. #2

    Default Re: iframe as server control

    You can access its attributes and set those

    myIFrame.Attributes("blah") = "value"

    etc......so you could set its source page dynamically


    On Tue, 15 Jul 2003 19:52:55 -0700, Rory <rory@vivid-design.com.au> wrote:
    > I would like to know if it is possible to set/save an iframes content in
    > codebehind. I know that you can set an iframe to runat server, but when i
    > try to access the .innerHTML property i get nothing. (i understand that
    > it is because there actually IS nothing inbetween the tags).
    >
    > Is it possible to do this, and if so, how?
    >
    > Thanks
    >
    >


    --
    Craig Deelsnyder
    Microsoft MVP - ASP/ASP.NET
    Craig Deelsnyder [MVP] Guest

  4. #3

    Default Re: iframe as server control

    There is a complete FREE ASP.NET IFrame Control (with Source Code) offered by SpiceLogic at this link :[URL="http://blog.spicelogic.com/post/ASP-NET-IFrame-Control.aspx"] http://blog.spicelogic.com/post/ASP-NET-IFrame-Control.aspx[/URL]

    As it comes with Source Code, you can customize or use immediately
    Emran Hussain is offline Junior Member
    Join Date
    Sep 2010
    Posts
    1

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139