Web Forms :: Dynamic Bread Crumb Navigation
Jan 3, 2011How will we do Dynamic Bread Crumb Navigation
View 6 RepliesHow will we do Dynamic Bread Crumb Navigation
View 6 Repliesi am developing Product Catalog. I need to show the bread crumb path from where user come.
Like if user chooses Garement category and after that choose jeans subcategory it should look like
Garemnt >> jeans >> lewais all category, subcategory and product should have hyperlinks.
How can dynamic bread crum created.
View 2 RepliesHere is my web.sitemap code:
[Code]....
I wanna to show bread crumbs navigation like:
Home > Column1 > Content
the problem is: "~/Index.aspx" and "~/Column.aspx?ColumnId=1" are actual URLs and navigation bar: "Home > Column1" really works,
but "~/Content.aspx?ColumnId=1" is only the beginning part of actual dynamic URL, for example: it may be
~/Content.aspx?ColumnId=1&NewsId=12598 or ~/Content.aspx?ColumnId=1&NewsId=37215
all the previous Urls are articles of Column1 with same "~/Content.aspx?ColumnId=1" but are followed with different "&NewsId=number".
So, how can I realize this kind of navigation bar?
Home > Column1 > Content
Error Populating Dynamic Navigation Menu
[Code]....
I've been tasked with managing the re-write of a very large enterprise application's UI. The existing UI was built upon an infrastructure which leverages the EntLib 3's PageFlow application block and the Web Client Software Factory. It performs horribly - part of the reason we need this upgrade so badly.
The problem is that these pageflows are very complex, using extensive conditional page transitions. When editing a data form, selection of a single value can determine not only what page you will reach when you click "Next", but whether a sub-pageflow is entered upon navigation instead, or a new pageflow is opened in parallel, etc. We deploy our UI in such a way where we control our API, but we allow certain licenses to purchase our UI code and extend/modify it as they deem fit. One of our selling points is that we allow the customer to "configure" or redefine pageflows using the VS designer.
In transitioning to MVC2 (or 3), we'd like to continue to offer configurable, conditional navigation throughout our various data entry page sequences. However, although I have developed the beginnings of our app in MVC2, I'm not sure the best way of implementing this data-entry pageflow "conversion". Sure, I've had my resources produce some solid designs - but all of them seem to require implementation of a complex controllerfactory. But one of the main attractions of MVC2 for me was its lightweight codebase and resultant performance gains - and I'm afraid that bypassing portions of MVC2 functionality by writing custom factories and the like will drastically reduce the performance of the app, making our UI refresh virtually worthless.
My initial thought was to write a custom filter that would implement the OnActionExecuted method. Every controller's primary POST methods would be marked with this attribute. Upon execution it would evaluate what view the user was on and look up the navigation event for that view in configuration. This config would have a default "next page"/"previous page" mapping, and can also allow for defining a type which would use conditional logic to determine the next page based on the posted model data. The actionfilter would use this type to find what route to navigate to next. I'd like to pick you experts' brains on this - does this seem like a solid design? Is it using best practices? And will it indeed perform better than a controller factory, or am I completely off-base here?
I Made label to had value from database and linked it . but the problem was it had only one value and i want it keep value when navigation thought site as.
x>y>z>....
this is my code
<
if (Request.QueryString["Category_Id"] != null)
{
Banar.ImageUrl = "Handlers/Banner.ashx?Category_Id=" + Request.QueryString["Category_Id"] + "";
using
(SqlConnection conn = Connection.GetConnection())
{
SqlCommand cmd = new SqlCommand();
cmd.Connection = conn;
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "Navcategory";
cmd.Parameters.Add(Parameter.NewInt("@Category_Id", Request.QueryString["Category_Id"]));
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
LblNavigaton.Visible = true;
LblNavigaton.Text = dr[i].ToString();
NavHref.HRef = "ListView.aspx?Category_Id=" + Request.QueryString["Category_Id"] + "";
}
}
}
else if (Request.QueryString["ProductCategory_Id"] != null)
{
Banar.ImageUrl = "Handlers/ProCatBanner.ashx?ProductCategory_Id=" + Request.QueryString["ProductCategory_Id"] + "";
using
(SqlConnection conn = Connection.GetConnection())
{
SqlCommand cmd = new SqlCommand();
cmd.Connection = conn;
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "NavProductcategory";
cmd.Parameters.Add(Parameter.NewInt("@ProductCategory_Id", Request.QueryString["ProductCategory_Id"]));
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
LblNavigaton.Visible = true;
LblNavigaton.Text = dr["Name"].ToString();
NavHref.HRef = "ListView.aspx?ProductCategory_Id=" + Request.QueryString["ProductCategory_Id"] + "";
}
else
{
LblNavigaton.Visible = true;
LblNavigaton.Text = Page.Title;
}
}
How I can Make Navigation bar in my site as A>E>D>S>H. I tried more to find an example also I searched more but I couldn't find particular example searched
View 2 Repliesim am trying to write a forum using asp.net at the moment i have threads -> topics -> comments i realised that at the moment if users try to go back (from comments to topics and to threads), they can only use the back button in the browsers i am now trying to creat a menu like the one used in this forum (at the top "home >asp.net forums > general asp.net > getting started") as at anytime you can go back to see other topics at the moment i have tried to implement the following :
[Code]....
i thought that if i store get the topic_id from the address bar once, and store it in the session - then when i navigate to ..?comment_id - the topic_id would remain in the seesion i thought that in theory it kind of works, but now that i am trying to explain it here, i know that the session would then = to null. So i wondering is their any way to implement this navigation system
want to study in depth about menus & bread crumbs using asp.ne
View 2 RepliesI'm trying to create an ASP.NET MVC master page so the site navigation on it will look like this:
Main Menu:Home | About | News
Sub Menu: Home_Page1 | Home_Page2
The Sub Menu section should always show sub-menu for the currently selected Main Menu page (on the example above 'Home' page is selected) unless a user hovers the mouse on another Main Menu item (then it shows that item's sub-menu instead).
I am building a project in asp.net 4.0. My navigation will be database driven where i return a datatable from the db containing all the pages of my site, some will be top level while others will be children and sometimes children of children n-times. Im thinking of going down the nested repeater route and databinding from code behind, dynamically generating repeaters for children, but have read that this is not a best practice and should consider the listview control. Im wanting to build a list of links using an unordered list.
View 1 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
I'm developing a Portal to a school
I need to login (ok)
I also need when the login is ok, to add some buttons to navigation menu, taht is created in the Master Page.
Is it possible?, how?
i already handle the page load on the default page.
In the application i come to products.aspx from five different pages.I have back button on the products.aspx page.How find from which page user navigated to products.aspx
View 2 RepliesI have a dynamic Table which contain 8 rows and 8 Colums
Table t = new Table();
TableRow rr = new TableRow();
TableCell cc = new TableCell();
and in the each Cell CC I add a dynamic Button(Or Linkbtn)
LinkButton LB1 = new LinkButton();
LB1.Text = "AM";
LB1.ID ="Link1";
cc.Controls.Add(LB1);
rr.Cells.Add(cc);
LB1.Click += new EventHandler(LB1_Click);
t.Rows.Add(rr);
i have a table with 8 rows , 8 colums and each cell contain a LinkButton (which diffrent in IDs) I want to add Lable in the same cell of this LinkBtn(LB1) which it clicked but I cann't What shoud I write here?
void LB1_Click(object sender, EventArgs e)
{
// throw new NotImplementedException();
}
Lets say I have a Web Application with a menu of products. When a user clicks a menu item, then create and display a dynamic set of controls in an Update Panel. I am currently doing this however the PostBack and recreation of controls is tedious and resource intensive.
Not sure about this but is it possible to build a webpage with controls on it, then display it in update panel or IFrame? Then on post back you wouldn't have to recreate everything all over again?
I have a loop which creates for each item ID a Dynamic created checkboxlist control
how do I create a dynamic validation control on a dynamic checkboxlist?
[Code]....
I want to be able to make the first line blank, in this case "about us" and still keep the same dyamtic alignment on my nav menu. Right now, if i take the "about us" title text out, it messy up my dyamtic or on hover nav menu. What would be best is i can replace those letters with spaces but it won't work with just blanks. Any idea on how i would not display the "about us" but keep everything as is?
I'd like to make navigation menu like one in [url=http://www.eveonline.com/]here[/url]. I thought about using TreeView, but I couldn't make "collapse" indicators to disapear. If I set ShowExpandCollapse property to "false" those indicators disapear, but tree becomes expanded and static. That's not what I want to achieve.
View 2 RepliesI have a site with a few pages, and I decided to have my navigation button (to go from page to page) on my site.master page so every page looks the same. Two questions:
1. is that the correct thing to do? seems to work fine, I'm just not sure if it is proper or not.
2. with the navigation/buttons being on the site.master. How can I pass an "id" from one page to another.
Example:
<asp:Button ID="Button5" runat="server" CssClass="style2" ForeColor="#000084"
PostBackUrl="~/Inbounds.aspx" Text="Inbounds" />
I want the postbackurl to be "~/Inbounds.aspx?id=" a value from a textbox on the page you are leaving. More or less to pass a company name or ID number from page to page, so the queries know who the "owner" is?
I have a site that uses authentication. I will be displaying links to other sites.Currently I am using Link Buttons because the link maybe to another site or a file in our DB so the Link Button allows me to place the DB id field into the command argument.So when the user clicks on one of the buttons I check to see if it match's a web site and if so I want to direct the user to the site. Here is the code.
[Code]....
strfile being the text of the button. This works, however it opens it in the same window which is less then desirable. I would like to open it in a new window. I have triedclient side scripting, I have tried process.start, and other ways to open the link in a new window. When I use these methods and I click on the button the page posts back but the link is never opened. I do have the Link Buttons inside a update panel and haveadded the button as a trigger with the same results. I have also moved the button out side of the update panel same results. Also the Link Buttons are inside a panel control.Another point this is being done in the code behind VB.net.
I want to restrict my application user to Navigate his previously visited page, How can we achieve this?
Somebody says we have to disable Back Button etc.
One of the possible solution is keep the below code in Page_Load event
[Code]....
I am having difficulties combing site navigation & securityTrimmingEnabled together.Please see my code below, let me know what am I missing:web.config file:
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<clear/>
[code]...
I have a small a problem with my navigation control. My navigation control has many menuitems. But here is just an extract to explain my problem.
<asp:MenuItem Text="Customer">
<asp:MenuItem NavigateUrl="~/CustomerLogin.aspx" Text="Log In"></asp:MenuItem>
<asp:MenuItem NavigateUrl="~/CustomerProduct.aspx" Text="Product"></asp:MenuItem>
<asp:MenuItem NavigateUrl="~/CustomerInformation.aspx" Text="Information"></asp:MenuItem>
</asp:MenuItem>
so when i put my mouse on Customer, the child menuitem drops vertically. The problem is I have a panel on the page which I use Gray Color as it background color and child menuitems are hidden behind that panel. Is there a way to show the menuitems on top of the panel beside moving the panel further down?