I have create a datalist that displays book titles as hyperlinks once the hiperlink is clicked it then takes you to an edit page. the hyperlink looks like this.
<asp:hyperlink id="link" Runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Title" )%>' NavigateURL='<%# Request.ApplicationPath + "/edit.aspx?id=" + DataBinder.Eval(Container.DataItem, "ref_id" ) %>'/>
my problem is as follow when i get to the edit page. instead of displaying one record at a time it displays all records one after the other one on my datalist. I have tried to use the following query to select the data and only display one record at a time on the edit page.
cmdSelect = new SqlCommand( "Select book_id, title, passage, date, location where book_id =' " + Request.("ID") +" ' Order by passage", cn );
I am getting an error System.Web.UI.Page.Reuqest' denotes a 'property' where a 'method; was expected.
Can anyone help solve this issue.all help will be appreciated to get passed this error.
<asp:hyperlink id="link" Runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Title" )%>' NavigateURL='<%# Request.ApplicationPath + "/edit.aspx?id=" + DataBinder.Eval(Container.DataItem, "ref_id" ) %>'/>
my problem is as follow when i get to the edit page. instead of displaying one record at a time it displays all records one after the other one on my datalist. I have tried to use the following query to select the data and only display one record at a time on the edit page.
cmdSelect = new SqlCommand( "Select book_id, title, passage, date, location where book_id =' " + Request.("ID") +" ' Order by passage", cn );
I am getting an error System.Web.UI.Page.Reuqest' denotes a 'property' where a 'method; was expected.
Can anyone help solve this issue.all help will be appreciated to get passed this error.