I am trying to display the list of products that are available in
the database using Dataadapter, Dataset and I am getting the above
error.The error is showing at the html part of the code.Please help
me.
if not page.IsPostBack then
'populate grid
dim da as new SQLDataAdapter()
dim ds as new DataSet()
da.selectcommand=new sqlcommand("select * from
products",con)
da.fill(ds,"products")
datalist1.datasource = ds.tables("products")
datalist1.databind()
end if
end sub
<asp:label id="lblpname" runat="server" text='<%# container.DataItem
("pname")%>'></asp:label>