Mar 27, 2011 05:29 AM|Damenace|LINK
I made a copy of the ListDetails.aspx, changed the name and I want to call this page without the routing mechanism and without url parameters.
I want to force the gridview and formview to a specific table.
So I have to change the page_init where the MetaTable is based on the dynamicroutehandler.
How do I do this?
protected void Page_Init(object sender, EventArgs e)
//table = DynamicDataRouteHandler.GetRequestMetaTable(Context);
table = "here I want to set the proper tablename";
GridViewDataSource.EntityTypeFilter = table.EntityType.Name;
DetailsDataSource.EntityTypeFilter = table.EntityType.Name;