Hi,
my problem is some thing similar. i have a database which stores data belonging to multiple clients. what i have to do is i have to apply the client ID while showing data in areport. i am using reportviewer for this purpose. i can pass the value for client id only if i add the clientid parameter to prompt. then there is every chance of user changing the value as it will be visible on the reportviewer along with other parameters. so i want to set the appropriate value for this parameter before passing it to the report. i think the code that you have given will work for me.can you please send the equivalent C# code.
Thanks in advance.
Srik