Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Hommer
Aged Yak Warrior
808 Posts |
Posted - 2012-10-01 : 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 contextI 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! |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2012-10-14 : 11:48:18
|
I would not use sql datasource, I would advice you to use object data source and bind the values to a textbox on the code behindthis might helphttp://msdn.microsoft.com/en-us/library/aa581783.aspx |
|
|
|
|
|