I have a menu control on a master page that is attacted to a sitemap that is large. There are 236 items in the sitemap and it's about 52k file size. When I change content pages, there is a 2 second delay for the menu to refresh (reload). Does anyone have ideas how to make the faster? I realize that the content page is a "new" page so the control must reload. Maybe I shouldn't be using a master page? in example, I have 2 aspx content pages based on 1 master page with a menu control on it. When I click from one content page to the other, the menu takes about 2 seconds to load. I've tried putting the menu control on a custom control and caching it but that doesn't gain me anything since the other context page is a new page. Thanks, Jessica
lsugirljte
Posts
-
Large sitemap loading slowly.... any tricks to speed things up -
MenuItemClick not firing on MasterPage with SiteMapWell the event fires but the redirect doesn't happen. Not much progress.:(
Thanks, Jessica
-
MenuItemClick not firing on MasterPage with SiteMap(repost with code) Thanks. That worked. It modified my aspx menu control by adding the databindings section. Thanks, Jessica
-
MenuItemClick not firing on MasterPage with SiteMapThanks. That worked. It modified my aspx menu control by adding the databindings section. Thanks, Jessica
-
MenuItemClick not firing on MasterPage with SiteMapThanks. That worked. It modified my aspx menu control by adding the databindings section.
Thanks, Jessica
-
MenuItemClick not firing on MasterPage with SiteMap"the page"?? The master page? If the menu items are on the page (I don't use a SiteMap), the page fires the click event. But I have to use a SiteMap.
Thanks, Jessica
-
MenuItemClick not firing on MasterPage with SiteMapI'm trying to get some custom control on my MasterPage to happen on the click event on my menu control based on a SiteMap. It's never hitting the MenuItemClick code. Any ideas? In master page: In master page cs: protected void Menu2_MenuItemClick(Object sender, MenuEventArgs e) { lblTest.Text = e.Item.ValuePath; } Thanks, Jessica
-
MenuItemClick not firing on MasterPage with SiteMapI'm trying to get some custom control on my MasterPage to happen on the click event on my menu control based on a SiteMap. It's never hitting the MenuItemClick code. Any ideas? In master page: In master page cs: protected void Menu2_MenuItemClick(Object sender, MenuEventArgs e) { lblTest.Text = e.Item.ValuePath; }
Thanks, Jessica
-
freezing the SiteMapPath?I'm dynamically building my web.sitemap from the database table. It has all the first and second level menu items. On these pages, there are some hyperlinks to more child pages that aren't not in the sitemap. When I drilled down to these child pages, the SiteMapPath disappears. That makes sense since that page isn't in the sitemap BUT I would like to just freeze the breadcrump with the last valid option. Basically, how can I get the SiteMapPath only to refresh (change) when a menu item is changed? Not when a hyperlink is changed? example: menu item 1 (in web.sitemap and appears in the SiteMapPath) menu item 2 (in web.sitemap and appears in the SiteMapPath) hyperlink on menu item 2 page (not in web.sitemap and SiteMapPath is blank) For the hyperlink, I would like the SiteMapPath to display the menu item 2. Any ideas?? :wtf:
Thanks, Jessica
-
Easy xml file save questiongot it. Thanks for your help. I thought that would be easier but it wasn't.:) doc.LoadXml(ls_xml); string sitemapxslFile = MapPath("menu_sitemap.xslt"); string tempfile = MapPath("jte.sitemap"); StringBuilder sb = new StringBuilder(); TextWriter tw = new StringWriter(sb); XslTransform xsl = new XslTransform(); xsl.Load(sitemapxslFile); //load xsl file xsl.Transform(doc, null, tw, null); //does transformation XmlDocument ret = new XmlDocument(); ret.LoadXml(sb.ToString()); ret.Save(tempfile);
Thanks, Jessica
-
Easy xml file save questionI thought that was what I was doing in my initial code I posted. string ls_xml; XmlDocument doc = new XmlDocument(); Xml output_xml = new Xml(); ls_xml = GetXMLString(); // returns xml string doc.LoadXml(ls_xml); output_xml.Document = doc; output_xml.TransformSource = "menu.xslt";
Thanks, Jessica
-
Easy xml file save questionOOhh... that gets me so much closer. But my DocumentContent is blank. I looked at other properties but Document.InnerXML contains the initial xml (not post transform). I know the transform is happening because I can add an control to the form and see the transform xml. I just don't know how to access it at run time to save to a file.
Thanks, Jessica
-
Easy xml file save questionNo. That will save the original xml document file. and I need to save the xml after the transformation. I want to save the output_xml (type xml, not xmldocument) without parsing through the entire xml.
Thanks, Jessica
-
Easy xml file save questionI know this is an easy one but I can't find any examples. I have a xml file that I transform (via xslt) and I need to save it. How? string ls_xml; XmlDocument doc = new XmlDocument(); Xml output_xml = new Xml(); ls_xml = GetXMLString(); // returns xml string doc.LoadXml(ls_xml); output_xml.Document = doc; output_xml.TransformSource = "menu.xslt"; I can look at the output_xml and it's exactly what I want but in a web.sitemap file. How do I save it without using a xmlwriter to parse through the entire xml file? That seems a little redundent since it's in the desired format already. Thanks, Jessica
-
Master pages and menusFound it. In the epms web.config, there is a line This was causing my problem. http://weblogs.asp.net/dannychen/archive/2005/12/16/433332.aspx (Sorry about posting in this forum. I was in the asp.net forum but when I clicked New Message, it created it in this forum.) Thanks, Jessica
-
Master pages and menusHi, Can anyone see the problem here? I have a very simple master page with a very simple content page. I just want a menu on the master page. There are several things that aren't working the way I would like them to. 1. The menu is horizontal and pushing the content place holder down when it's expanding down. I would like it to hover over the content page and not move it. 2. it's not displaying the items when hovering. It's just displaying a white box where the items are suppose to be. I have been looking at this for 2 days without any progress. Can someone help me? simple.master *********************** <%@ Master Language="C#" AutoEventWireup="true" Codebehind="simple.master.cs" Inherits="EPMS.Frameset.simple" %> Simple Master .toolbar { font-size: 13px; font-family: Verdana; padding: 6px; filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#ffffff,endColorStr=lightblue); }
simplepage.aspx ******************************** <%@ Page Language="C#" MasterPageFile="~/Frameset/simple.Master" AutoEventWireup="true" Codebehind="simplepage.aspx.cs" Inherits="EPMS.EPMS_Request.simplepage" Title="Simple Page" %>
This is the simple page.
web.sitemap *******************************
-
I want a prettier applicationWe have several web applications (C#, asp.net 2.0) that are very 1996 looking. We want to update the look of the applications without changing much of the functionality (for now). Is there an easy way to do this? Some good articles? Good resources? I would like to stay in Visual Studio and not use something like DreamWeaver.
Thanks, Jessica
-
GridView and outer joinsno ideas? anyone?
Thanks, Jessica
-
GridView and outer joinsHi, I have a sql with an outer join that will always return 2 rows. How does the gridview know when they should be INSERTs instead of UPDATEs? It seems to always be wanting to update them. I have even changed the CreateRow routine to be an insert row but it will still calling the DataSourceControl.ExecuteUpdate instead of the DataSourceControl.ExecuteInsert. How do I get it to trigger the insert method?
Thanks, Jessica
-
Override inherited delegates???I found that this worked fine. base.RowUpdating -= new GridViewUpdateEventHandler(base.PreUpdate);
Thanks, Jessica