I have been trying to get a value from my sql database to post to the form I have. I have thought i was pretty close but it keeps giving me the error "User_EmailTextBox is not declared. It may be inaccessible due to its protection level". I have been trying to get this to work for a week and I can't seem to figure it out. Any help would be appreciated. My code is below.web.config
----------------------------------------------------------------------------
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="ECDRConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\Data\ECDR.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="false" targetFramework="4.0" />
</system.web>
<!--Mail settings-->
<system.net>
<mailSettings>
<smtp>
<network host="YOUR HOST HERE"/>
</smtp>
</mailSettings>
</system.net>
<!--Mail settings-->
</configuration>
--------------
View Complete Post