Click here to Skip to main content
15,919,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all
I have a page which generates a html code in a textbox. When code generation happens parallely I am inserting the same code in a table. Under that text box I have button called preview. All I need is when I click on the button it should fetch the code and preview it like html file in other window.
If saving that code in not a good idea than help to give another alternate.
All I need is preview of that code in html format in other window.

Edited: Removed tag.
Posted
Updated 3-Jun-11 10:05am
v2
Comments
Sergey Alexandrovich Kryukov 3-Jun-11 13:26pm    
How can this be a problem?
--SA

1 solution

On that button click you should return a page with the HTML generated on server side out of the database data. This is the most basic ASP.NET activity. If you don't know how to do that, I don't understand how you do "other" ASP.NET development. The structure of the generated page totally depends on your database schema and requirement, so I cannot give you any illustrating code.

If I'm missing any tricky point here, please explain.

—SA
 
Share this answer
 
Comments
Monjurul Habib 3-Jun-11 16:09pm    
my 5 for the advice.
Sergey Alexandrovich Kryukov 3-Jun-11 20:16pm    
Thank you, Monjurul.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900