Skip to main content
Home Forums Silverlight Programming WCF RIA Services Set the connetionstring in runtime use c# code. Help!!!
2 replies. Latest Post by Jac_P on July 9, 2009.
(0)
jacle169
Member
13 points
15 Posts
07-05-2009 1:47 PM |
Hi
How way let me set the connetionstring in silverlihgt 3 (.net ria service) use c# coding?
Because I want my silverlight application use mulityble accounts run it on same time.
thx!
I'm Jacob
Amanda W...
All-Star
17241 points
1,466 Posts
07-09-2009 4:41 AM |
Hi Jacob,
You cannot set the connectionstring in silverlight, the sivlerlight does not support it.
If you want to change the connecttionstring, you can try to change your datacontext's ConnectionStrings in your website..
Jac_P
Participant
1044 points
189 Posts
07-09-2009 4:49 AM |
Didnot get what excatly you are trying to achieve?
If it is passing a custom built connection string to your service to connect to, then you can do it by building the connectionstring as a String and pass it to the service.
Thanks
Jac