from web.config file with connection string who to interact
means who to connect in gridview. in my system shows null
something error what is the problem
Answer Posted / samy
The name of the default table adapter connection string
looks something like the following:
AppName.Settings.Default.ConnectionStringName
Naturally, AppName is the name of your application and
ConnectionStringName is the name you've given to your
connection string. This is the 'certain way' that Jay is
talking about.
If you create a TableAdapter through the design time
interface and configure the connection string to save into
the config file, you can edit the config file and see
exactly what connection string name is expected.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Can the accessibility of a type member be greater than the accessibility of its containing type?
Why do we use Design Pattern in C#?
what will be the output of the given below coding. using System; public class Exercise { static void OddNumbers(int a) { if (a >= 1) { Console.Write("{0}, ", a); a -= 2; OddNumbers(a); } } public static int Main() { const int Number = 9; Console.WriteLine("Odd Numbers"); OddNumbers(Number); Console.WriteLine(); return 0; } }
Can we inherit partial class in c#?
Is there regular expression (regex) support available to c# developers?
Please explain the basic string operations used in c#?
So let's say I have an application that uses myapp.dll assembly, version 1.0.0.0. There is a security bug in that assembly, and I publish the patch, issuing it under name myapp.dll 1.1.0.0. How do I tell the client applications that are already installed to start using this new myapp.dll?
What's different between c# and c/c++?
What is .cs file in c#?
What is an enumerator in c#?
what is .NET framework architecture ??
What is uint64_t?
Which technology is best for desktop application?
Does c# have primitives?
Is c# static or dynamic?