I found this example but am completely new to this and so it is too advanced for me... I understand what's going on in the view, but how and where am I supposed to actually connect to the database, with a username and password and all? What should my connectionString be in Web.config? What is "NorthwindConnectionString"?
Asked
Active
Viewed 895 times
2 Answers
2
The NorthwindConnectionString
in the sample you linked to is configured in the Web.config
. The following MSDN documentation should help you step through connecting to a SQLDataSource, see
As noted in the above link, the Connection String is added to the <connectionStrings>
node of the Web.config. This connection string holds you database credentials.
Example
<connectionStrings>
<add name="MyNorthwind" connectionString="server=foehammer;database=Northwind;user=north;password=north;" providerName="System.Data.SqlClient" />
</connectionStrings>
Hope this helps.

geoffrey.mcgill
- 2,375
- 1
- 13
- 21