Rank: Member Groups: Member
Joined: 8/23/2007 Posts: 12
|
Hi,
I am trying to implement your Downloader control in my application and I am having a strange problem with arguments.
I have a SQL Server database that store diferent files in a varbinary field.
My Web Application is divided in 2 projects: A dll project that stores all the business logic and a web project that has mainly webforms (few web classes are stored in App_Code).
To have a generic download process a Helper Class in the dll project has a method that creates the Arguments NameValueCollection depending on the parameters provided.
Arguments are created like this:
args("ftype")="10" args("fid")="234"
I have created a class in App_Code that contains that overrides the GenerateContent Method.
When I try to use Me.Arguments, I see that has 2 items, but when I try to get args("ftype") I get Nothing.
If I try to get args("10"), I get "ftype"
I changed the method that creates the arguments in order to do this:
args("10")="ftype" args("234")="fid"
The GenerateContent manages Me.Arguments like "ftype" was a key.
This hack supposes 2 problems that are: - The numeric values are not unique (can hack it) - The GenerateContent invokes a dll method with the NameValueCollection as parameter
When this dll method gets the namevalue collection the "ftype" returns to be a key.
Any help???
Antonio
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Thanks for the information. Will you be able to isolate the problem into a test page so that we can run it here?
Thanks!
|