B
Brian Ciarcia
Can someone please tell me why this is not working??? I used a sample
that I found and it works great with the pubs database, however, as
soon as I change it to the live database, it dies.. I know that all
the columns are there and are correct.. thanks in advance
Source Error:
Line 31: Cmd.Fill(ds,"Attys")
Line 32: MyDataGrid.Datasource=ds.Tables("Attys").DefaultView
Line 33: MyDataGrid.DataBind()
Line 34:
Line 35: End Sub
Stack Trace:
[HttpException (0x80004005): A field or property with the name
'l_name' was not found on the selected datasource.]
System.Web.UI.WebControls.BoundColumn.OnDataBindColumn(Object
sender, EventArgs e) +350
System.Web.UI.Control.OnDataBinding(EventArgs e) +66
System.Web.UI.Control.DataBind() +26
System.Web.UI.Control.DataBind() +86
System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex,
Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object
dataItem, DataGridColumn[] columns, TableRowCollection rows,
PagedDataSource pagedDataSource) +169
System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean
useDataSource) +1411
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)
+49
System.Web.UI.WebControls.BaseDataList.DataBind() +23
ASP.alpha_aspx.BindData() in
C:\Inetpub\wwwroot\PepeHazard\teststuff\alpha.aspx:33
ASP.alpha_aspx.Page_Load(Object Source, EventArgs E) in
C:\Inetpub\wwwroot\PepeHazard\teststuff\alpha.aspx:17
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
that I found and it works great with the pubs database, however, as
soon as I change it to the live database, it dies.. I know that all
the columns are there and are correct.. thanks in advance
Source Error:
Line 31: Cmd.Fill(ds,"Attys")
Line 32: MyDataGrid.Datasource=ds.Tables("Attys").DefaultView
Line 33: MyDataGrid.DataBind()
Line 34:
Line 35: End Sub
Stack Trace:
[HttpException (0x80004005): A field or property with the name
'l_name' was not found on the selected datasource.]
System.Web.UI.WebControls.BoundColumn.OnDataBindColumn(Object
sender, EventArgs e) +350
System.Web.UI.Control.OnDataBinding(EventArgs e) +66
System.Web.UI.Control.DataBind() +26
System.Web.UI.Control.DataBind() +86
System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex,
Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object
dataItem, DataGridColumn[] columns, TableRowCollection rows,
PagedDataSource pagedDataSource) +169
System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean
useDataSource) +1411
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)
+49
System.Web.UI.WebControls.BaseDataList.DataBind() +23
ASP.alpha_aspx.BindData() in
C:\Inetpub\wwwroot\PepeHazard\teststuff\alpha.aspx:33
ASP.alpha_aspx.Page_Load(Object Source, EventArgs E) in
C:\Inetpub\wwwroot\PepeHazard\teststuff\alpha.aspx:17
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750