|
Hommer
Aged Yak Warrior
703 Posts |
Posted - 10/01/2012 : 11:37:44
|
Hi,
I have a simple aspx page. The sqlDataSource1 has a select running against sql 08 db, and the DataList was able to bind to the return values.
Now when I tried to feed that data into several textboxes, I got stucked.
Neither syntax get me the data. :(
<%# DataBinder.Eval(SqlDataSource1 , "ID") %> no error but SqlDataSource1 itself showed
<asp:TextBox ID=txt Text="<%# status %>" runat=server /> error: CS0103: The name 'status' does not exist in the current context
I have Page.DataBind(); in the page_load on the code behind file.
I haven't done front end coding for a while. This is in vs 2010.
Thanks! |
|