Click here to Skip to main content
15,886,724 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: help Pin
Pete O'Hanlon16-Apr-07 4:07
mvePete O'Hanlon16-Apr-07 4:07 
AnswerRe: help Pin
Jaiprakash M Bankolli17-Apr-07 3:25
Jaiprakash M Bankolli17-Apr-07 3:25 
AnswerRe: help Pin
SecureQuest17-Apr-07 8:36
SecureQuest17-Apr-07 8:36 
AnswerRe: help Pin
tantoun17-Apr-07 10:16
tantoun17-Apr-07 10:16 
GeneralRe: help Pin
Colin Angus Mackay18-Apr-07 0:17
Colin Angus Mackay18-Apr-07 0:17 
Questionwhere is create Class Diagram option in VS 2005? Pin
Saira Tanwir16-Apr-07 2:15
Saira Tanwir16-Apr-07 2:15 
AnswerRe: where is create Class Diagram option in VS 2005? Pin
Pete O'Hanlon16-Apr-07 2:17
mvePete O'Hanlon16-Apr-07 2:17 
QuestionApp.Config behavior [modified] Pin
Tristan Rhodes16-Apr-07 1:04
Tristan Rhodes16-Apr-07 1:04 
Hi, i'm having problems with the App.config file and the settings contained in it.

The purpose of the App.Config is to enable users to change values that the program loads with, without re-compiling the app.

I am however having a problem with this in DLL's -

This is a setting in the config file:

<br />
<br />
    <connectionStrings><br />
        <add name="TTMPSObjectLayer.My.MySettings.TTMPSConnectionString"<br />
            connectionString="/* Connection */"<br />
            providerName="System.Data.SqlClient" /><br />
    </connectionStrings><br />
<br />


If i change the connection string, it should point to a different database, however, the setting value - stored in the My.Settings object, has the following entry, which completely ignores it.

<br />
        <Global.System.Configuration.ApplicationScopedSettingAttribute(),  _<br />
         Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _<br />
Global.System.Configuration.SpecialSettingAttribute(Global.System.Configuration.SpecialSetting.ConnectionString),  _<br />
         Global.System.Configuration.DefaultSettingValueAttribute("/* Connection */")>  _<br />
        Public ReadOnly Property TTMPSConnectionString() As String<br />
            Get<br />
                Return CType(Me("TTMPSConnectionString"),String)<br />
            End Get<br />
        End Property<br />



The DLL is for a WebProject, and i need to be able to configure the Querystring. What do i need to do to do this?

Cheers

Tris


Edit: The reason i need the connection string, is that i have a library for each database containing all the relevant DataTables / Data Table Adapters, and i need to be able to change the database they point to without recompiling.

-- modified at 7:32 Monday 16th April, 2007

-------------------------------

Carrier Bags - 21st Century Tumbleweed.

AnswerSolved Pin
Tristan Rhodes16-Apr-07 1:51
Tristan Rhodes16-Apr-07 1:51 
AnswerRe: App.Config behavior Pin
Dave Kreskowiak16-Apr-07 3:45
mveDave Kreskowiak16-Apr-07 3:45 
AnswerRe: App.Config behavior Pin
Jaiprakash M Bankolli17-Apr-07 3:33
Jaiprakash M Bankolli17-Apr-07 3:33 
Questionis it possible to get the fixed length encrypted string from Rijndael encryption algorithm Pin
Kusumasrinivas15-Apr-07 22:29
Kusumasrinivas15-Apr-07 22:29 
QuestionHow to load a dropdown list box using Ajax /Asp .net Pin
Balagurunathan S15-Apr-07 21:48
Balagurunathan S15-Apr-07 21:48 
AnswerRe: How to load a dropdown list box using Ajax /Asp .net Pin
Christian Graus15-Apr-07 23:08
protectorChristian Graus15-Apr-07 23:08 
GeneralRe: How to load a dropdown list box using Ajax /Asp .net Pin
Balagurunathan S16-Apr-07 0:25
Balagurunathan S16-Apr-07 0:25 
GeneralRe: How to load a dropdown list box using Ajax /Asp .net Pin
Christian Graus16-Apr-07 0:26
protectorChristian Graus16-Apr-07 0:26 
QuestionHow to run cobol/fortran in dot net framework.help required urgent..... Pin
msudiptam15-Apr-07 21:09
msudiptam15-Apr-07 21:09 
AnswerRe: How to run cobol/fortran in dot net framework.help required urgent..... Pin
Christian Graus15-Apr-07 21:27
protectorChristian Graus15-Apr-07 21:27 
GeneralRe: How to run cobol/fortran in dot net framework.help required urgent..... Pin
msudiptam15-Apr-07 22:18
msudiptam15-Apr-07 22:18 
GeneralRe: How to run cobol/fortran in dot net framework.help required urgent..... Pin
Christian Graus15-Apr-07 23:07
protectorChristian Graus15-Apr-07 23:07 
QuestionI want to run live videos(cricket match) in my own website Pin
Suave_Shiva15-Apr-07 19:07
Suave_Shiva15-Apr-07 19:07 
AnswerRe: I want to run live videos(cricket match) in my own website Pin
Christian Graus15-Apr-07 19:21
protectorChristian Graus15-Apr-07 19:21 
AnswerRe: I want to run live videos(cricket match) in my own website Pin
Dave Kreskowiak16-Apr-07 3:39
mveDave Kreskowiak16-Apr-07 3:39 
QuestionSave Dialog box control Pin
EEmaan13-Apr-07 3:43
EEmaan13-Apr-07 3:43 
AnswerRe: Save Dialog box control Pin
Dave Kreskowiak13-Apr-07 4:41
mveDave Kreskowiak13-Apr-07 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.