Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling a user control

Status
Not open for further replies.

TheCivic

Programmer
Feb 7, 2006
34
GB
Hi all,

I have made a user control, which is basically a single menu toolbar, now each user on my site can have different toolbars, going to different places, in different colors etc etc.

I thought the best way to do this would be to make my user control, which i have done, then create a class file called Menu. The class would then load the neccessary toolbar that each user needed, based upon the preference, color selection, url paths etc etc.

Is this the way to go about it? If not, i would really like to know the best way to do this, and will read any documents needed, if someone can give me the link.

Thanks
 
Or you could create a user file (or database table) with their choices in it so that it can load the same setting on each subsequent visit.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I could do that but toolbars are also membership based, so a normal user cannot see admin stuff.

Could you give me an example, just encase i would be better to do it your way?
 
Can you still let me know how to call the user control from a class, as i will need to do this for other things anyway.

Cheers
 
What do you mean by calling a user control from a class?

If you wish to put a user control on to a page, then you just drag it from your Solution Explorer onto the page.

The user control should be able to load up its own attributes etc from its own Page_Load event.

If you meant something else, please say!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top