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

I design my website in asp.net.I used the menu control. and i set menu orientation="Horizontal".

My problem is i run my website, 1st time(that means,my website is opened in every time) the menus alignments are changed. Then i click that menu after the alignments are view in correct format.

So, how to run the menu in correct format from the beginning stage.(1st runtime).

Please help me..
Posted
Comments
shashavali 1-Aug-12 8:19am    
please send your code snippet.

try like this:
instead of orientation

set the horizontal property as Stretch
and vertical alignment property as stretch

i hope it will be works
 
Share this answer
 
C#
protected override void AddedControl(Control control, int index)
    {
        if (Request.ServerVariables["http_user_agent"].IndexOf("Safari", StringComparison.CurrentCultureIgnoreCase) != -1)
        {
            this.Page.ClientTarget = "uplevel";
        }
        base.AddedControl(control, index);
    }



Just write this code above the page_Load() event in master page.
 
Share this answer
 
 
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