I'm trying to retrieve information from ms sql server to my div.
<div id="blablablaText" runat="server">
...
</div>
and here's my source code
protected void Page_Load(object sender, EventArgs e)
{
using (myDbDataContext wdb = new myDbDataContext ())
{
Article ar = new Article();
var a = from p in wdb.Articles
where p.Id == 16
select p.Text;
blablablaText.InnerText = a.ToString();
}
}
after that my output is:
SELECT [t0].[Text] FROM [dbo].[Article] AS [t0] WHERE [t0].[Id] = @p0
what am I doing wrong?