Sunday 16 May 2010

Table Specific Routing

In "Global.asax" page, uncomment all 3 "routes.Add..." paragraphs

In the first "routes.Add..." section, change: ("{action}/{table}.aspx") to("{action}/Products.aspx")

Any other table name can be used, I have chosen to use"Products".
Locate Model = model - place a comma to the end.

So it should look like this -Model = model,
On the next line add - Table="Products"
The paragraphs work in hierarchy therefore, the top line of code is read first.

No comments:

Post a Comment