Click here to Skip to main content
15,916,030 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionReturning Gridview cell that was clicked. Pin
dptalt21-Oct-08 10:02
dptalt21-Oct-08 10:02 
QuestionTrying to recreate/cause error using asp.net oracle connections Pin
badprog21-Oct-08 9:55
badprog21-Oct-08 9:55 
QuestionUnable to access connection string from app config Pin
John-ph21-Oct-08 8:51
John-ph21-Oct-08 8:51 
I have been trying for hours now. but unable to access the connection strng from app config file.

1. Application has reference to System.Configuration.dll
2. App Config file has the connectionString

still the following code returns nothing.

Private Shared Function GetConnectionString( _
        ByVal name As String) As String

        Dim returnValue As String = Nothing

       Dim settings As ConnectionStringSettings = _
           ConfigurationManager.ConnectionStrings(name)

        If Not settings Is Nothing Then
            returnValue = settings.ConnectionString
        End If

        Return returnValue
End Function

can any one guess what's going wrong?

- Regards -
   J O N


     A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers


AnswerRe: Unable to access connection string from app config Pin
SeMartens21-Oct-08 9:14
SeMartens21-Oct-08 9:14 
GeneralRe: Unable to access connection string from app config Pin
John-ph21-Oct-08 9:26
John-ph21-Oct-08 9:26 
GeneralRe: Unable to access connection string from app config Pin
SeMartens21-Oct-08 9:52
SeMartens21-Oct-08 9:52 
AnswerRe: Unable to access connection string from app config Pin
N a v a n e e t h21-Oct-08 18:25
N a v a n e e t h21-Oct-08 18:25 
GeneralRe: Unable to access connection string from app config Pin
John-ph21-Oct-08 19:17
John-ph21-Oct-08 19:17 
GeneralRe: Unable to access connection string from app config Pin
Jaffer Mumtaz21-Oct-08 21:07
Jaffer Mumtaz21-Oct-08 21:07 
GeneralRe: Unable to access connection string from app config Pin
John-ph21-Oct-08 21:27
John-ph21-Oct-08 21:27 
GeneralRe: Unable to access connection string from app config Pin
Jaffer Mumtaz21-Oct-08 22:25
Jaffer Mumtaz21-Oct-08 22:25 
Questionhow to publish the web site ? Pin
TerRO_GirL21-Oct-08 7:49
TerRO_GirL21-Oct-08 7:49 
AnswerRe: how to publish the web site ? Pin
SeMartens21-Oct-08 9:18
SeMartens21-Oct-08 9:18 
GeneralRe: how to publish the web site ? Pin
TerRO_GirL21-Oct-08 20:34
TerRO_GirL21-Oct-08 20:34 
GeneralRe: how to publish the web site ? Pin
SeMartens21-Oct-08 21:46
SeMartens21-Oct-08 21:46 
GeneralRe: how to publish the web site ? Pin
TerRO_GirL22-Oct-08 1:22
TerRO_GirL22-Oct-08 1:22 
GeneralRe: how to publish the web site ? Pin
SeMartens22-Oct-08 1:45
SeMartens22-Oct-08 1:45 
GeneralRe: how to publish the web site ? Pin
TerRO_GirL22-Oct-08 5:10
TerRO_GirL22-Oct-08 5:10 
GeneralRe: how to publish the web site ? Pin
SeMartens22-Oct-08 5:29
SeMartens22-Oct-08 5:29 
GeneralRe: how to publish the web site ? Pin
TerRO_GirL22-Oct-08 5:50
TerRO_GirL22-Oct-08 5:50 
QuestionAccessing css from javascript in a ASPX form. Pin
Steve Holdorf21-Oct-08 7:02
Steve Holdorf21-Oct-08 7:02 
AnswerRe: Accessing css from javascript in a ASPX form. Pin
NeverHeardOfMe21-Oct-08 7:57
NeverHeardOfMe21-Oct-08 7:57 
GeneralRe: Accessing css from javascript in a ASPX form. [modified] Pin
Steve Holdorf21-Oct-08 8:36
Steve Holdorf21-Oct-08 8:36 
GeneralRe: Accessing css from javascript in a ASPX form. Pin
Steve Holdorf21-Oct-08 10:02
Steve Holdorf21-Oct-08 10:02 
Question@-quoted string in C# Pin
Shahil Shah21-Oct-08 4:16
Shahil Shah21-Oct-08 4:16 

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.