I do not know what syntax error it shows. Possibly, you should add string in front of myConnectionString (to declare the variable). Or (better) use pgrstring instead of the myConnectionString.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Olukayode Oluwole
ASKER
Sorry I did not display the Error. I actually thought i did.
I have tried the 2 new suggestions and they both have same error (see below)
What do you suggest i try next
Olukay
pepr
Add private static to the beginning of the line 39.
Olukayode Oluwole
ASKER
Adding private static does not seem to fix the isssue
See the 2 errors displayed while moving mouse over Tournaments and Connection respectfully
Unlimited question asking, solutions, articles and more.
pepr
I my code, I am using almost exactly that. The difference is that I am using the using System.Configuration; at the top of the file, and I have the name of the connection string (here "Tournaments") stored in the static string variable -- but that should not be a problem (see the image below that show my code with the original commented out, and with explicit string "Tournaments" -- no red waves).
While i try please confirm that your script is for postgreSQL
Olukay
Olukayode Oluwole
ASKER
I have tried to replicate what you have done but without success.
1. I have using system.Configurations
2. I repeated your scrip (see screen below)
The error displayed is
The name 'appConnectionString' does not exist in the current context
Where am i supposed to define (or where did you define it) appConnectionString before using it
and is your script for postgreSQl
Thanks
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Open in new window