|
-
Aug 8th, 2007, 09:02 AM
#1
Thread Starter
Lively Member
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
-
Aug 8th, 2007, 09:47 AM
#2
Re: Alias name for folder
Perhaps a database lookup table would solve your problems.
-
Aug 8th, 2007, 10:33 AM
#3
Thread Starter
Lively Member
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
-
Aug 8th, 2007, 10:46 AM
#4
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.
-
Aug 8th, 2007, 10:50 AM
#5
Thread Starter
Lively Member
Re: Alias name for folder
ok thank u
so should i store that data in xml file?
Thanks and regards
Vinay Kumar
-
Aug 8th, 2007, 04:06 PM
#6
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.
-
Aug 9th, 2007, 12:13 PM
#7
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|