MenuAdapter.cs

I know the menu adapter intercepts every asp:Menu server control and let's you perform custom logic / modify the output of the control.

My question is, is there a way to selectively use the adapter? Say, use it by default for every asp:Menu control, except if the control has an ID of ABC, then default to the standard asp:Menu output.

Regards,
Brad

[358 byte] By [takobell] at [2008-2-1]
# 1

I don't believe it's possible. The adapters are chosen based on browser. And since the adapter plumbing is buried deep within System.Web there isn't any easy way around it. You're likely going to have to derive from Menu and affect rendering there instead of using adapters.

JoeWasson-MSFT at 2007-9-4 > top of Msdn Tech,Commerce Server,Commerce Server 2007...