Assinging dynamic content from file to textbox

Discussion in 'ASP .Net' started by Greg, Dec 18, 2003.

  1. Greg

    Greg Guest

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

    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.
     
    Greg, Dec 18, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Martin Schmid

    Dynamic Content-Disposition file naming.

    Martin Schmid, May 7, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    558
    Martin Schmid
    May 7, 2004
  2. hazz
    Replies:
    6
    Views:
    50,030
    SkyUCHC
    Jun 9, 2010
  3. Reginald Carlier

    assinging strings to two dimensional array

    Reginald Carlier, Jun 10, 2004, in forum: C++
    Replies:
    1
    Views:
    3,645
    Pete C.
    Jun 10, 2004
  4. Replies:
    2
    Views:
    326
    Chris Theis
    Apr 2, 2007
  5. Kurt
    Replies:
    0
    Views:
    206
Loading...

Share This Page