Hi
I'm busy writing some code to do an export from a database which I will convert into a CSV file to be downloaded by the user. I am hoping to use the Downloader control, but I am having some problems, and I am hoping someone can help me out.
I have basically followed the example found at:
http://demo.essentialobjects.com/Demos/Downloader/Features/Dynamic%20Contents/Demo.aspxOne of the parameters that I am passing to the ContentGenerator class is the SQL to pull the data from the database (I want to use the code in several places, so wanted to have as general a ContentGenerator class as possible).
However, my SQL statement is 597 characters long, and as soon as I pass a string that long in the "args" NameValueCollection in the Download event of the Downloader the GenerateContent function of the ContentGenerator Class is no longer called. If I change ONLY the sql statement (making it just a few characters) then it works perfectly.
I've also tried splitting up the SQL statement so that each of the "args" is limited to 100 characters length (and then passing 6 of them), but the problem persists. Does anyone have any ideas how I can get around this, or am I going to have to create dedicated ContentGenerator classes for each of the exports I need to do?
Thanks
Allan