Pls would you advise?
I am using routing from hyperlink button. It creates the route for instance "http://localhost:52565/home/1" .
And then I am passing it into entitydatasource.
DefaultContainerName="WitzenDBEntities" EnableFlattening="False"
EntitySetName="Witzens" Where="it.TagID == @TagID and it.Approved == true"
>
and the output to the ListView shows nothing.
If I change it into:
DefaultContainerName="WitzenDBEntities" EnableFlattening="False"
EntitySetName="Witzens" Where="it.TagID == 1 and it.Approved == true"
>
<%--
It works normally and I get the needed filtered output.
Please advice am I missing something?
I also added DataKeyNames="ID" or DataKeyNames="TagID" into ListView.
Route def is:
RouteTable.Routes.MapPageRoute("HomePageFiltered", "home/{TagID}", "~/Pages/HomePage.aspx");
And hyperlink button is:
Many Thx
Radim
Radim MotyckaPosted Jan 23, 2012, 12:50 PM
Thx
R.