Hi @Larry Ulmer ,
If you mean to know how to connect to a SQL database in Webforms, I can give you the following code:
Web.config:
SQL Server account authentication login:
<appSettings>
<add key="connection name" value="server=server name;database=database name;uid=username;pwd=password;"/>
</appSettings>
Windows authenticates the logon:
<appSettings>
<add key="connection name" value="server=server name;database=database name;Integrated Security=True;"/>
</appSettings>
Get the connection string or connection object (you can use it directly if you need to connect)
string ConnStr = ConfigurationManager.AppSettings["connection"].ToString();
SqlConnection conn = new SqlConnection(ConnStr);
return conn;
If you want to present your ideas to everyone, go to this and leave your tech blog.
Best regards,
Qi You