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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. ModalDialogBox for Previewing HTML and formatted Text

ModalDialogBox for Previewing HTML and formatted Text

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-nethelpquestion
2 Posts 2 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
    codingrocks
    wrote on last edited by
    #1

    I am developing a web application where, I have a content editor and preview button. On click of the Preview button, i am showing a ModalDialogBox to see the changes in the editor. But my concern is the content can be so lengthy and sometimes, 40 to 50 lines of text. How can I pass the editor content to the modaldialog box in this case. The preview I am trying to implement is similar to Codeproject message preview. Any help would be appreciated.

    CodingRocks ASP.NET,C#.NET Programmer BANGALORE "Winners don't do different things. They do things differently. ...

    W 1 Reply Last reply
    0
    • C codingrocks

      I am developing a web application where, I have a content editor and preview button. On click of the Preview button, i am showing a ModalDialogBox to see the changes in the editor. But my concern is the content can be so lengthy and sometimes, 40 to 50 lines of text. How can I pass the editor content to the modaldialog box in this case. The preview I am trying to implement is similar to Codeproject message preview. Any help would be appreciated.

      CodingRocks ASP.NET,C#.NET Programmer BANGALORE "Winners don't do different things. They do things differently. ...

      W Offline
      W Offline
      www Developerof NET
      wrote on last edited by
      #2

      codingrocks wrote:

      The preview I am trying to implement is similar to Codeproject message preview.

      If you have a close look at the preview you would notice that the ID of the Textbox is passsed in the URL. Thus you can access the content of the textbox by using the following javascript code.

      window.opener.getElementByID("TextBoxID").value

      Hope it helps.....

      When you fail to plan, you are planning to fail.

      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