Using SQLDataSource, so please provide a solution with this rather than an alternative unless it cannot be done. Thanks
TableA and TableB from the same database
My "ItemsRequested" for the combobox has this string setup and it works fine.
Dim sql as string = "SELECT TOP 10 B.serialnumber, A,column, B,Column FROM DB.dbo.TableA A, DB.dbo.TableB B Where B.column LIKE'" + e.Text + "%' and B.column!='CL' order by B.column"
My problem is on the "ItemBound" method.
e.Item.Text = e.Item.Attributes("column") + ", "+e.Item.Attributes("column") + ", " +e.Item.Attributes("column")
The column name has to be the colum from TableB. In other words B.Colmn.
Putting in B.Column of course won't work as follows...
e.Item.Text = e.Item.Attributes("B.serialnumber") + ", "+e.Item.Attributes("column") + ", " +e.Item.Attributes("column")
So with this join involved how do a pull this information specifically from the joined table column? B.Column
Thanks!
TableA and TableB from the same database
My "ItemsRequested" for the combobox has this string setup and it works fine.
Dim sql as string = "SELECT TOP 10 B.serialnumber, A,column, B,Column FROM DB.dbo.TableA A, DB.dbo.TableB B Where B.column LIKE'" + e.Text + "%' and B.column!='CL' order by B.column"
My problem is on the "ItemBound" method.
e.Item.Text = e.Item.Attributes("column") + ", "+e.Item.Attributes("column") + ", " +e.Item.Attributes("column")
The column name has to be the colum from TableB. In other words B.Colmn.
Putting in B.Column of course won't work as follows...
e.Item.Text = e.Item.Attributes("B.serialnumber") + ", "+e.Item.Attributes("column") + ", " +e.Item.Attributes("column")
So with this join involved how do a pull this information specifically from the joined table column? B.Column
Thanks!