Click here to Skip to main content
15,887,262 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to everyone,

i've a small problem and i cannot find documentation about it.

I've a sort of blog done in asp.net and i'm able to include one of my usercontrols in my pages with this syntax (directly in the html of the page):

[usercontrol: PathToUserControl]

It works perfectly but now i've to pass a parameter to it.. and i can't find a way to do that.

Can someone tell me how to do that?

I would like to avoid loading it from code behind because if i do that this way i'll not be able to include usercontrol directly from the "Page/Post Publisher" of the platform.

Thank you to everyone

Bye
Posted

1 solution

You can set the properties of a user control.
Creating/Setting properties of User Control in ASP.NET[^] is an example.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900