Hi all,
I have been developing apps using vb.net for some time now. My company
has decided to also have the development staff learn C#. I am excited
about this. So I have been messing around with C# today. But I am
getting an error on the following statement:
string strConnect = ConfigurationSettings.AppSettings("NorthWind");
Here is the error:
C:\Inetpub\wwwroot\CSExample\CustomerSelect.aspx.cs(32):
'System.Configuration.ConfigurationSettings.AppSettings' denotes a
'property' where a 'method' was expected.
I am confused on why the following statement works in vb.net:
Dim strConnect As String =
ConfigurationSettings.AppSettings("FundRaising")
I do not get an error using this statement. Did I convert this to C#
incorrectly?
Thanks,
Bob
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/saFolB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/