RE: linqdatasource runtime connection string
- From: v-wywang@xxxxxxxxxxxxxxxxxxxx ("Wen Yuan Wang [MSFT]")
- Date: Fri, 11 Apr 2008 13:14:52 GMT
Hello Chuck,
Thanks for your reply.
By default, LinqDataSource create data context by using default
constructor. If you want to use specific connection, I think you can create
data context object by yourself, and assign the object to the
ObjectInstance property in ContextCreating event.
Please refer to the following document. There is a simple about how to
specify connect string for LinqDataSource by yourself.
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.linqdatas
ource.contextcreating.aspx
[LinqDataSource..::.ContextCreating Event]
Hope this helps. Please feel free to let me know if you have any more
concern. We are glad to assist you.
Wen Yuan
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- RE: linqdatasource runtime connection string
- From: Chuck P
- RE: linqdatasource runtime connection string
- From: Chuck P
- RE: linqdatasource runtime connection string
- References:
- linqdatasource runtime connection string
- From: Chuck P
- RE: linqdatasource runtime connection string
- From: "Wen Yuan Wang [MSFT]"
- RE: linqdatasource runtime connection string
- From: Chuck P
- linqdatasource runtime connection string
- Prev by Date: Re: Calling a form in second project
- Next by Date: Re: Designer generated code fails to compile
- Previous by thread: RE: linqdatasource runtime connection string
- Next by thread: RE: linqdatasource runtime connection string
- Index(es):
Relevant Pages
|