How to Add a New Attribute

Mar 2, 2011 at 1:53 PM
Edited Mar 2, 2011 at 1:54 PM

I want to add a new attribute (ShowMenu). If I just add to the node, It is appended to the Url like a query string, which is okay. But i wanted to add it like the rest of the attributes, so that it is not appended to the request. How do I do that?

Mar 24, 2011 at 3:38 PM

I think adding any attributes outside of the query string would require using another storage location.  ViewData for example, or adding any other needed info to a ViewModel

Mar 26, 2011 at 1:28 AM

in the provider setting (web.config), you add this attribute 

 attributesToIgnore="ShowMenu"

It will then ignore this attribute and not show it in the URL.