On Thu, Jan 20, 2011 at 9:46 AM, Arjang Assadi <[email protected]> wrote:
> Using C#,Asp.net What is the (non-string mocking around) way of
> turning ObjectDataSources Select Parameters to Url query string?

Well, you'd just do it, right? There's no inbuilt method for that, AFAIK.


> I need it in order to turn keep the Query that generated the view and
> use it to turn it into a downloadable file,
>
> On the same note is there a framework supported way of turning
> DataTables, List of Objects into CSV / XML etc.? This seems a way to
> common scenario, having a way to do it using .net framework rather
> than reinventing the wheel seems more appropriate.

Again not that I know of. And again this should be a reasonably
trivial process. Depending on what objects you are returning, you can
just have them implement appropriately serialisation methods
individually, then in the CSV case loop over them, and in the XML
cause use the inbuilt XML serialisation.


> Thank you

-- 
Noon Silk

http://dnoondt.wordpress.com/  (Noon Silk) | http://www.mirios.com.au:8081 >

"Every morning when I wake up, I experience an exquisite joy — the joy
of being this signature."

Reply via email to