Solved

Create Web Page From Code Behind In VB.net

Posted on 2014-03-25
2
395 Views
Last Modified: 2014-03-25
I have a field in a MySQL table that contains the HTML code for a page. When I click a button on a page I want to retrieve the field from MYSQL and then and have it display on the current page. I can get the HTML code from MYSQL but I don't know how to display it.

What I am doing is storing a template in html code in mysql. When the user clicks the button I want to display the html that is in mysql with some updated text.

Thanks
0
Comment
Question by:whiwex
2 Comments
 
LVL 16

Accepted Solution

by:
SriVaddadi earned 500 total points
Comment Utility
Add a Literal control on your web page.

When user clicks the button get the html and add the html as text to the literal control.

Page.Literal1.Text = "<Your html goes here>"; or even
0
 

Author Closing Comment

by:whiwex
Comment Utility
Thanks that did the trick
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now