Hey I'm kind og new in C# and all this ASP.NET... And we got an asignment from school I feel is rather uncomplete...
I have to upload an image on submit and the code they gave me for this looks like this...
FileUpload1.SaveAs(Server.MapPath("../billede/" + FileUpload1.FileName));
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString)
----------------------------------
And the web.config looks like this...
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</conn ...
Go to the complete details ...