Web Forms :: How To Change Default Menu Tab In Master Pages
Aug 19, 2010i have 5 tabs in my master page application. how can i make 2nd tab as default?
View 9 Repliesi have 5 tabs in my master page application. how can i make 2nd tab as default?
View 9 RepliesIam using masterpage and i want to use navigation menu ,but i don't want to use sitemap concept
how to work with navigation menu and assign the pages in navigation menu in master page
How can i use flash menu in master pages ?
View 6 RepliesI use VS2K8 to develop a web app. In master page, i have a search textbox and search button. the content page also has texboxes and a submit button.
1. In this case, every time I hit {Enter} the search button is fire but i want submit button fire
Master.cs Page_Load()
Page.Form.DefaultFocus = textboxSearch.UniqueID;
Page.Form.DefaultButton = btnSearch.UniqueID;
Content.aspx.cs Page_Load()
Page.Form.DefaultButton = btnSubmit.UniqueID;
2. In this case, every time I hit {Enter} the submit button is fire but i want search button fire
Master.cs Page_Load()
Page.Form.DefaultFocus = textboxSearch.UniqueID;
//Page.Form.DefaultButton = btnSearch.UniqueID;
Content.aspx.cs Page_Load()
Page.Form.DefaultButton = btnSubmit.UniqueID;
>>> So how do I make it fire the right button by hit {enter} when the related textbox is focus
I've got a custom menu in the master page, that hides items according to different conditions (nothing to do with roles and perms). Is in the MasterPage.master file where i'm trying to hide them, e.g.:
[Code]....
The function isNormalMode() is defined in the code behind file MasterPage.master.cs, and everything is working properly in the page Default.aspx, but in the rest of the pages it doesn't execute the function at any time, so the item always remain visible.
I have two Master Pages, each with a SiteMapPath control that uses a separate sitemap assigned in markup via the SiteMapFile attribute. Both sitemap files are defined as providers in web.config, and sitemap "A" is set as default. My master pages are dynamically assigned to common content pages (in the Page_PreInit event).
View 3 RepliesI am working in a product which is developing using telerik rad controls. Site have a master page which includes rad toolbar for main menus like file, edit etc.
When the site worked in IE 8 the half of the menu got inside of the content page. I changed the compatability settings of IE 8 to comptabality view and it solved. So i can view the site correctly. But in firefox also have the same issue. There not any compactability settings like this ( i think). So how can solve this? I mean wat issue is this ? Any css issue or any control behaviour?
I created a new ASP.NET web site project. The project starts with a number of default features and one of them is a menu. The menu has a blue/slate color to it.I want to change the color but can't find where it's defined. I checked the Site.css that is created and cannot find the value that is coloring it.
View 6 RepliesI've got a page Default.aspx, it was inherited from class MyBasePage
like this
public partial class _Default : MyBasePage, ICallbackEventHandler
{
}
also it has a master page
<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" MasterPageFile="~/Master/MyMaster.master" CodeFile="Default.aspx.cs" Inherits="_Default" %>
this master page also has a master
<%@ Master Language="C#" MasterPageFile="~/Master/Base.master" AutoEventWireup="true" CodeFile="MyMaster.cs" Inherits="MyMaster" %>
All works ok, but then i discovered that
Page_Load in Default.aspx is called two times, and both from method OnLoad in MyBasePage
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
}
base.OnLoad(e) calls Page_Load.
I've got a site with such a structure of master pages and basepage, but it works ok, method page_load is called only once.
So why would in the second site PAge_Load be called twice?
how to set the default button when using master pages ? i use this in forms <form id="Form1" method="post" runat="server" defaultbutton="btnSearch"> but how to use default button in ContentPlaceHolder?
View 5 RepliesThere's a master page that is used by all the pages in the app. This master page hosts a dynamically generated menu. Opening of pages etc. is almost always handled through Response.Redirect(). Here's the catch:
I login to the app and it shows me a default page, with the master page at the top. So the Page_Load() fires for the master page. So far good. Now I go through the menu and select an item. Clicking the menu triggers a postback where the Page_Load() of the master page is called again. After that the Page_Load() of the desired content page is fired, and then the Page_Load() of the Master page is fired yet again! So each time I click a menu item, the master page is loaded twice!
I have a master page with a menu on it. I have found now two pages out of dozens where for some reason the master page events aren't firing. I've put a break point in there and it never hits it. Is there something that could cause a disconnect between the page and the master page events? Really weird it happens in Chrome and IE but they fire correctly in Safari.
View 12 RepliesI have 3 master pages with names master1.master, master2.master and master3.master and a webpage named as home.aspx how can i change my master pages to inherit with home.aspx using radio button linst.
View 3 RepliesI have a PAGE with a structure like this:PAGE = MASTER PAGE A + nested MASTER PAGE B of A
View 2 RepliesI am using master pages and i want to benefit mywebsite with localization.
i created a baseclass below, then i used this class in my default.aspx and it worked fine. but how can i change the culture from site.master page then other pages should uinherit the culture. by doing the base class it is not exactly giving me what i want.
[Code]....
Imports System.Threading
Is there a way to add/delete/update the default classes (for instance AspNet-Menu-WithChildren,AspNet-Menu-NonLink ) of the html generated by the asp.net menu or treeview control? I am using CSSAdapters so the menu control renders in a list format instead of table format.
View 1 RepliesIs there a way to specify a default area for any content specified in a master page?
I have a global master page and a bunch of user controls (.ascx) with action links defined without regard for 'areas' - is there a way to specify the default area to use when rendering action links and the like?
The problem occurs when navigating to an area; all the unspecified master page links do not link back to the default area (in my case the root). I.e.,Html.ActionLink("Home", "Index", "Home") renders as "/area/home/index" rather than "/home/index". I'd like this to work for all the links defined in the master page file without needing to specifyHtml.ActionLink("Home", "Index", "Home"new { area = "" }
i'm developing a site using VS2010 and with my windows vista busniness OS. i used the default VS2010 wizard for new web application to create it. included a folder in the root directory and created new aspx pages to derive from the master page in the root directory of my site. everything shows on the new pages except the jpeg image logo in the master page. But other aspx pages i created in the root directory shows every thing fine.
View 1 RepliesCurrently I'm doing common functionality required throughout my site inside of my masterpage. What I want to do is move this functionality to a BaseClass so All my pages inherit from the Base Class. However, I'm not sure how to set this up interms of c# code with regards to Using a Base Class and then having a masterpage applied to my aspx pages that i create.
View 5 RepliesI have a master page with an unordered list that contains items like, Home, Messages etc.
Now I am working on an EditProfile.aspx page and I want the menu to change and have items like Basic Information, Profile Picture etc. Sort of like facebook. What is the best way to accomplish this...
i have a asp menu in master page and it is populated from database.
i want if user click a link that menu link's background color should change how to do?
My requirement was to share master files among diff projects i read this doc [URL] so i use this technique to share msster pages among my diff projects in a soln but i dnt know how to reference such shared master page as if i use such
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../masterPages/masterInvGen.Master"
I got a Master page and nested master pages in the subfolders.
Top Level Master page
Second Level Master page inherited Top Level Master page
Third Level Master page inherited Second Level Master page
However, changes (i.e. new images & alt. name) that I made in the Top level master page did not apply to the second or third levels.My webpage has a correct front page but not in the sections. How can i correct this ?
I have added a jquey menu in my master page its working fine for those asp.net pages which are at the same level as master page.
But this menu isn't working at all for all of those page which aur in Editor's and Admin's folder. In these pages menu is displaying as simple html menu and unfortunately no jquery effect is shown on it.
I'm very confused why this menu isn't working for the pages which are in a seprate folder while the master page is added at the root level outside of all these folders.
I have an asp:Menu control on a master page that is reading its menu items from a web.sitemap file via a SiteMapDataSource.When I click on a menu, the new page loads which uses the same master page, but the ASP:Menu vanishes. I have put some plain text next to the menu for testing, this appears on the new page but the menu does not.Does anyone know how to get the asp:Menu to remain visible on the page?
View 4 Replies