Typed datasets in a class library referenced by an ASP.NET project

Discussion in 'ASP .Net' started by =?Utf-8?B?bWFuZ29tYW4=?=, Jan 1, 2007.

  1. The connection string used by the typed dataset that is in the Class library
    is placed in the Settings and then accessed using the generated code.

    What is the best approach for having the actual connectionstring details
    externalised when this class library is referenced from a web application?
    Currently all that happens is that the default value is used and NOT the one
    specified in the app.config.. have trawled the net and seen lots of comments
    about moving stuff into the web.config but for the connection strings this
    doesn't seem t work and the only solution I have found out there is to modify
    the generated code int the class library which can't be a good idea...

    Does anyone have an approach for this that actually makes sense?
     
    =?Utf-8?B?bWFuZ29tYW4=?=, Jan 1, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    1,115
    William Buchanan
    Apr 11, 2006
  2. news.microsoft.com
    Replies:
    0
    Views:
    441
    news.microsoft.com
    Apr 12, 2006
  3. Francisco Garcia
    Replies:
    2
    Views:
    472
    Fran Garcia
    Apr 13, 2006
  4. Bauhaus
    Replies:
    0
    Views:
    430
    Bauhaus
    May 10, 2008
  5. ThatsIT.net.au

    Strongly typed datasets ASP.NET

    ThatsIT.net.au, Mar 28, 2009, in forum: ASP .Net
    Replies:
    5
    Views:
    2,392
    Mr. Arnold
    Mar 28, 2009
Loading...

Share This Page