Passing in a parameter

J

Jon

Hello All,

I've declared my usercontrol in the normal way (page directive) and to load
it I'm doing: <webapp:menu runat="server" />. However, is there a way I can
pass a parameter into it as this menu will be used on a number of pages and
on each page it needs to show the same info, but with a different css applied
so i need to know what page i'm on.

Any other ideas would be appreciated also,

Thanks,

Jon
 
P

pete

Couldn't you specify a public property on the user control which you could
use to indicate the css file to use?

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top