Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Assinging dynamic content from file to textbox

Thread Tools

Assinging dynamic content from file to textbox

Posts: n/a
I am able to read an html file and display the text in a textbox, no

Dim sr As New StreamReader(Server.MapPath("myfile.htm")
Dim str as string = sr.ReadToEnd
txtBox.Text = str

Once in the textbox, the user can edit this standard template before
saving it to a database.

What I'd like is to read a file (.aspx?) with dynamic content (like
from a database), and have that displayed in the textbox. Once
created, we don't want to have to edit the file being read. Can
anyone point me in the right direction. Obviously, any custom tags or
controls in the file I'm reading needs to produce the text and/or html
before assigning that text to the textbox. Thanks for any help.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
error: Only Content controls are allowed directly in a content page that contains Content controls. hazz ASP .Net 6 06-09-2010 01:54 PM
Assinging a base object to an inherited object C++ 2 04-02-2007 03:34 PM
assinging an extension for incoming fxo line Cisco 1 02-09-2006 11:56 AM
assinging strings to two dimensional array Reginald Carlier C++ 1 06-10-2004 01:19 PM
Re-assinging partitions Mike Computer Support 1 01-20-2004 10:00 AM