Results 1 to 2 of 2

Thread: Include HTML into ASPX and buttons

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2004
    Location
    fda
    Posts
    17

    Include HTML into ASPX and buttons

    Hi everyone

    I'm an situation that I don't know how to solve. First, I have several files
    which will be generated from database and saved under html format and store
    in a different folder (this was created by so else which does not include
    buttons for me).

    Because I need to include those files into my application. I have used this:
    Response.Redirect("filename.html") to output the entire html file into my
    aspx page. Unfortunately, I still want to maintain my page to keep
    going further to next instructions. I want to have 2 buttons below those
    files. I don't know how to do that. I thought if using placeholder can solve
    the problem and how?

    Thanks.

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    What I would do is use a literal control.
    First open that html file into a TextReader stream, then readtoend on it. Get that string, and assign it to the literal controls text.

    If the HTML content has <html> tags, and <head> or other high order html stuff, you might want to strip that from the string first.

Posting Permissions

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



Click Here to Expand Forum to Full Width