Results 1 to 3 of 3

Thread: Some Active Server Page Questions

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Question Some Active Server Page Questions

    Hi guys,
    I'm work on a web site uses active server pages and I would like to perform the following:

    Using the FileSystemObject I would like to create a function that will list all the folders (not files) in a given path.

    Also

    On the website there is a section where the user writes som stuff about themselves, kind of like a profile section where the write a couple paragraphs describing what it is that they do. any way that data is written to a text field in a SQL Server Database. How can I get the profile be displayed in the same format in which they entered it in the forms TEXTAREA box. I'm looking to get the same exact result that is used when you post a question on this website. I hope you guys understand what I'm trying to say.

    Any help or suggestion would be greatly appreciated

    Thanks for our time.
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  2. #2
    Hyperactive Member
    Join Date
    Apr 2001
    Posts
    315
    Set objFS = Server.CreateObject("scripting.FileSystemObject")
    Set objFldrs = fs,GetFolder(folderspec).Subfolders
    For each objfldr in objfldrs

  3. #3
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375
    "How can I get the profile be displayed in the same format in which they entered it in the forms TEXTAREA box"
    ---

    If you mean with line breaks included replace instances of vbCrLf with <br> when you request the value of the text area.

    eg:

    Dim strTextArea

    strTextArea = Replace(Request.Form("TextArea"),vbCrlf,"<br>")

    This will save the the instances of line breaks

    Hope this helps
    Regards
    Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width