actual code is
String ConnectionString = System.Configuration.ConfigurationManager.AppSettings["AddressDB"];
but i didnot found ConfiguartionManager after entering "System.Configuration."..
plz help.
thnks
Printable View
actual code is
String ConnectionString = System.Configuration.ConfigurationManager.AppSettings["AddressDB"];
but i didnot found ConfiguartionManager after entering "System.Configuration."..
plz help.
thnks
And the error message is...?
post it, please
Have you had included reference to System.Configuration.dll?
He's entering a fully qualified name, doesn't have to include anything.
If you don't find ConfigurationManager class as part of System.Configuration namespace, then the ConfigurationManager class doesn't exist in the System.Configuration namespace.
.NET won't lie to you... (although intellisense may lie so don't trust it... try yourself by compiling your code and see if it compiles... intellisense doesnt always tell the truth).
Definitely not! A single namespace can spread over several assemblies.Quote:
Originally Posted by mariocatch
What I'm talking about is assembly reference, not the using keyword.
So again, abhijan13, check, if you have added the reference to assembly System.Configuration.dll to you project. What version of VS do you use? What's the exact error message you receive?
actual error message is-
'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' C:\Documents and Settings\Abilash\My Documents\Visual Studio 2005\Projects\WindowsApplication11\WindowsApplication11\AddressManager.cs 24 39 WindowsApplication11
wil u plz tell me how we add this reference--
System.Configuration.dll?
actual error message is-
'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' C:\Documents and Settings\Abilash\My Documents\Visual Studio 2005\Projects\WindowsApplication11\WindowsApplication11\AddressManager.cs 24 39 WindowsApplication11
:confused:Quote:
Originally Posted by abhijan13
Open Project menu and select Add reference. In the resulting dialog look for System.Configuration. Select it and click ok.
thanks..i gt the System.Configuration..:)
That's a warning message, not an error message. It's also pretty self-explanatory. The method you're using is depreciated. There's a newer method available for getting the same information, and you should use that instead.Quote:
Originally Posted by abhijan13
error again..
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
dataGridView1.Select(dataGridView1.CurrentRow.Index);
LoadCurrentItem();
SetEditState(false);
}
Error is--" No OverLoad for Method 'Select' takes '1' argument
error again..
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
dataGridView1.Select(dataGridView1.CurrentRow.Index);
LoadCurrentItem();
SetEditState(false);
}
Error is--" No OverLoad for Method 'Select' takes '1' argument
Did you try to check what MSDN says about the Select method. I wonder, why people do not check the documentation before relying on others to resolve the problem.
Your first reference should be MSDN. After all MS is the one who created .NET Framework so their documentation should be the one that you should refer. And if you still don't understand something you can always post it here.
You should also use CODE tags. Refer our FAQ or look at my signature.