Thanks Dean,
Hey, can recommend a good C# learning web site? Looking at C#, I don't think it will take me too long to learn. It's just stuff like I had in my last post. -----Original Message----- From: Dean Fiala [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 28, 2004 10:09 AM To: [EMAIL PROTECTED] Subject: RE: [AspNetAnyQuestionIsOk] C# question Bob, string strConnect = ConfigurationSettings.AppSettings["NorthWind"]; will work C# uses [] to delimit array and collection elements. Dean -----Original Message----- From: Bob Herrmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 28, 2004 10:02 AM To: [EMAIL PROTECTED] Subject: [AspNetAnyQuestionIsOk] C# question 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 Links _____ 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] <mailto:[EMAIL PROTECTED] cribe> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . [Non-text portions of this message have been removed] 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/
