Skip to main content

Microsoft Silverlight

Answered Question Set the connetionstring in runtime use c# code. Help!!!RSS Feed

(0)

jacle169
jacle169

Member

Member

13 points

15 Posts

Set the connetionstring in runtime use c# code. Help!!!

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

--------------------------------------
My open Source Project:
http://codeplex.com/jacslgameserver
http://codeplex.com/jacdigitaldrum
http://ardsl.codeplex.com/

Amanda Wang - MSFT
Amanda W...

All-Star

All-Star

17241 points

1,466 Posts

Answered Question

Re: Set the connetionstring in runtime use c# code. Help!!!

 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..

Amanda Wang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Jac_P
Jac_P

Participant

Participant

1044 points

189 Posts

Answered Question

Re: Set the connetionstring in runtime use c# code. Help!!!

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

Thanks
Jac
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities