How to override the head title of aspx by ascx?
Posted on 2009-04-29
I have a aspx page which includes 2 placeholder:
top.ascx and main.ascx
In top.ascx, it has
<title>Welcome to my website</title>
In main.ascx, it has a drop down menu to let user choose the product name.
When a user select a product name from drop down list in main.ascx, e.g. toy, then the title in head of top.ascx would change to
How can I do that?
I use asp.net and C#. Please provide code to illustrate