I have a menu that is bound to a data table. The data table is linked to database.The data table holds two values; RequestID and Company Name.
What I want is to populate the menu with the company names, and pass the RequestID through the URL to a generic 'details.aspx?id=RequestID'
So what I did was set the DataNavigateUrlField equal to 'RequestID' from the datatable.
The problem is that it makes the link to JUST the RequestID
sender, EventArgs e)
//Create datatable to populate menu
DataTable menu = Utils.sqlutils.GetDataTable(
"SELECT [RequestID], [CompanyName] FROM CauseMarketer_Requests WHERE Approved = '0'"
updatingMenu.DataSource = menu;
So the DOM ends up looking like this
What i want is the href to be "details.aspx?id=19"
What I've tried
But this causes a problem with my my databind and won't build.