Results 1 to 7 of 7

Thread: Alias name for folder

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    91

    Alias name for folder

    Hi

    i need to give alias name for folder and should access after the request


    like


    Folder name is ata
    Alias name is: test

    user will look for

    http:\\vinaykumar\test\image.jpg


    i should search it for

    http:\\vinaykumar\Data\image.jpg


    so that user doesnt know the exact location

    Please help me in this regard ,how to implement Alias name


    Regards
    Vinay Kumar

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Alias name for folder

    Perhaps a database lookup table would solve your problems.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    91

    Re: Alias name for folder

    i dont have database to work with this task


    any one have idea how to implement this with an xml file???


    Thanks and Regards
    Vinay kumar

  4. #4
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Alias name for folder

    Create a strongly typed data set, with a single table that has two columns (DirectoryName,Alias). Setup DirectoryName as the primary key. Use the native dataset.read and dataset.write methods to store retrieve data, and the native datatable.find method to find an alias for a given directory name.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    91

    Re: Alias name for folder

    ok thank u


    so should i store that data in xml file?


    Thanks and regards
    Vinay Kumar

  6. #6
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Alias name for folder

    Would most definately store it in an XML file if a database wasn't available, because of .NET's built in capablility to serialize/deserilaze XML, plus you've got the benefits of strongly typing it, and setting up a key.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    91

    Re: Alias name for folder

    Got the solution

    Thanks for the answer

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