Link to home
Start Free TrialLog in
Avatar of techques
techques

asked on

How to override the head title of aspx by ascx?

Hi

I have a aspx page which includes 2 placeholder:
top.ascx and main.ascx

In top.ascx, it has

<head runat="server">
    <title>Welcome to my website</title>
</head>


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

<head runat="server">
    <title>toy</title>
</head>

How can I do that?

I use asp.net and C#. Please provide code to illustrate

Thanks
ASKER CERTIFIED SOLUTION
Avatar of tetorvik
tetorvik
Flag of Finland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial