Results 1 to 2 of 2

Thread: [2005] Replacing Database path with a variable

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    [2005] Replacing Database path with a variable

    How do I replace the path of my db with a variable?

    Code:
    <asp:AccessDataSource ID="AccessDataSource1"   runat="server"    DataFile="~/App_Data/MYDB.mdb"

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Replacing Database path with a variable

    By creating your datasource in the codebehind and settings its properties from there.

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