|
-
Jan 31st, 2004, 04:44 PM
#1
Thread Starter
Junior Member
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.
-
Jan 31st, 2004, 06:55 PM
#2
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|