Web Forms :: Sitemap Displays Out Of Control In Firefox?
May 13, 2010
I thought I was pretty smart when I figured out how to make menus with sitemaps--they display very well in IE but scatter all over the place in a Firefox browser. Is there any way to maintain better control over these beasts, maybe through tables or CSS?
In the ASPX.CS file I define a datasouce and manually populate it.
DataColumn MDC = new DataColumn(); MDC.AllowDBNull = false; MDC.AutoIncrement = true; MDC.AutoIncrementSeed = 1; MDC.AutoIncrementStep = 1; MDC.ColumnName = "B2"; MDC.DataType = System.Type.GetType("System.String"); MDC.Unique = false; MDT.Columns.Add(MDC); MDC = new DataColumn(); MDC.ColumnName = "PRPT"; MDC.DataType = System.Type.GetType("System.String"); MDT.Columns.Add(MDC); I then manually fill each row: DR = MDT.NewRow(); DR["B2"] = "Test1<br/>Test2"; DR["PRPT"] ="Test3<br/>Test4"; MDT.Rows.Add(DR);
When the Grid is viewed using IE - both the Header and the data rows properly display the cells with multiple lines. When displayed using Firefox or Safari - only the Header utilizes multiple lines - the data rows are on a single line ---- "Test1Test2" what needs to be done to display multiple lines in all three browsers.
When user requests to download a document, I'm writing out a PDF file to HttpResponse using HttpResponse.OutputStream.Write method. It works in every browser except Firefox(3.5.8). In Firefox it sometimes displays the file and sometimes it displays the actual byte stream. When it displays a byte stream, http response is never finished. I see 'transferring data' status and the byte stream ends with EOF. After some time, I get 'connection was reset' window.
Here is response header:
HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache Content-Length: 103185 Content-Type: application/pdf Expires: -1 Server: Microsoft-IIS/7.0 X-AspNet-Version: 2.0.50727 Content-Description: stuff.pdf Content-Disposition: inline;filename="stuff.pdf" X-Powered-By: ASP.NET Date: Mon, 22 Feb 2010 16:15:38 GMT
We are getting this error message when we try to click the link in the menu to go to Report Server:
Source Error: Line 31: <siteMapNode title="Reports" description="Reports"> Line 32: Line 33: <siteMapNode url="https://ffxsqldgc01.ffx.co.fairfax.va.us/Reports/Pages/Folder.aspx?ItemPath=%2fDPZ&ViewMode=List" title="View Reports" description="Click here to view the reports" /> Line 34: </siteMapNode> Line 35:
I tried to add after the &, as it was suggested on one of the forum but it did not work. Any other ideas.
i am using a sitemappath control in my application. I have a master page and three content page. I declared a sitemappath control in all the three pages and a web.sitemap file. My problem is i get the sitemap only in my first page and in the other page i am not getting the sitemap control.
I built a user control that displays a drop down list of states. I'm using it, but if I try to put it in a listview control, all I get is the frop down with nothing in it.
this is probably something stupid that i am forgetting to do but its got me stumped. I have a web.sitemap file in my app with the following entries
[Code]....
i then slapped a sitemapdatasource into my masterpage with a menu control and changed the design in the designer. I then run the app for my default page /Pages/Default.aspx. when the page comes up i see "Home" with a flare out arrow. when i mouse over home it shoots out a small box, as expected, to the right which obscures my text on the default page. the problem is the flared out box is blank and then i try move over it, essentially moving off home it dissapears. If im not mistaken, even if my links are broken or dont extist i should at least see the text right? so when i mouse over home, in the flareout menu i should see Dive, DIve Location, User, Client, Cert at least in unclickable plain text or something.
I'm trying to develop a webpage for a small college who want to keep the format similar to an existing webpage. I've created an ASP.NET master page and included a menu (web.sitemap) to navigate the various pages of the school's site. However, I'm trying to format the menu to match their existing old style html websites.
I need to place a line between the various items of the menu. I've tried border but I need the lines to appear above and below the items (or inbetween) and not on the left and right. I've read that I may have to use CSS to format it the way I want but i can't figure out the code to so.
I have developed a site using the TreeView control in Visual Studio 2008.When I try to run it, it only displays lines of text, with no treeview formatting.Is their something obvious I am missing here?
I've been having some production runtime errors that I don't fully understand. This has happened to us on a couple different ASP.NET 4.0 Web Sites (shudders - yes, I know - we're porting it to MVC but that's taking some time).
First of all, we have never been able to reproduce this issue in development/QA environments. Secondly, upon deployment, the issue seems to be non-existent. Sometimes the issue manifests within a day or two of deployment and other times the deployment will be live for a month without it manifesting at all. However, once it manifests, then ANY page viewed under the web site causes the error. Lastly, this problem seemed to only come up once we migrated to .NET 4.0. We started at 2.0, a year ago upped to 3.5, and recently upped to 4.0 with this solution and most child projects.
The error:
Could not find the sitemap node with URL '~/Default.aspx'.
A simplified version of our sitemap (with some names changed and uninteresting nodes removed) is as follows:
I have confirmed in all of the SiteMaps that there is a node with url="~/Default.aspx" with roles="*" (which includes public/anonymous access), so I am very confused as to why this problem occurs.
SiteMap does not have a node for Default.aspx. All of them do. SiteMap's Default.aspx node is not accessible for security reasons to the current user/role. They're all accessible to anonymous users and this problem even exists for super admin users. Passed-in URL contains querystrings (Default.aspx?abcd). I don't know if this is a problem (I sure would hope not) but once the problem manifests itself, I can handwrite the URL with no querystrings and the problem still exists.
SiteMap changes. It doesn't Service's permissions to the sitemap file. The sitemap works perfectly fine after a deployment, so unless permissions are changed in a way that IISRESET fixes, then this is not an issue. The worker process becomes globally corrupt. I don't think so. We have ~12 web sites all in the same app pool and the problem always stays confined within a single web site. Also, we have yet to have this happen to more than a single web site at a time although it has manifested itself in 4 different ones so far.
m using the Ajax Control Toolkit's ModalPopupExtender. It works great but when I add a user control to the panel it is set to display, the modal popup is displayed with a black box over it.This is how it looks like:Is anyone familiar with the problem? Is there a workaround?
However, now I want to be able to create multiple web.sitemap files, and then programmatically determine which web.sitemap file to use, but I can't seem to find out how to do this. I'm assuming I could either create one custom SiteMapProvider that can perform the logic to determine which web.sitemap file to load, or I have multiple providers, each one with the SiteMapFile property set to a specific *.sitemap file, and then switch providers programmatically before I access SiteMap.RootNode.
How would I programatically reference a .sitemap file that is not the root web.sitemap file? I have a file called research.sitemap in a folder a level under root. I want to refernce this file in my code behind like his: SiteMapNode m1 = SiteMap.RootNode (but since this isnt web.sitemap in the root, I dont know how to get access to it).
I have a second level node that goes onto two lines. The first line indents 15px as is set by the class for node level 2. The seond line kicks back to the same level as 1st level nodes. Here's what I mean:
i am using file upload control if i check tha applicaion in IE i get it correctly i slect a file using fileuplaod control and use fileuplad.postedfile.filename so i get teh physical path of the file whereas from firefox i just get the filename not the path hence i am not able to get teh file as its showing me msg unable to load file
i need to get the physical path of the file
i cant use server.mappath as the file can be from any drive
The right sides of the dynamic menu items are being chopped off. Also, the entire menu is moved slightly to the left in both browsers. I have been searching for a solution but everything I find so far with Google talks about a problem with the menu not starting on the correct node but I am not having that issue.
However, I also have a web.sitemap which basically contains the same information, i.e. which user roles can see/access which pages. A snippet from my web.sitemap:
Is there some kind of nifty way of using web.sitemap only to configure access? The <location> tags are quite verbose, and I don't like having to duplicate this information.
I have a main menu option of "Dashboard". Under this menu item I have 2 options: 1) Campaign Manager & 2) Negotiation Manager. Now, what is interesting is when I am in either the campaigns role OR the auto-negotiation role I see the Dashboard and BOTH sub-menu items. This is not the behavior I expected. I expect to only see both sub-menus when I am in the campaigns role AND auto-negotiation role. The OR scenario should give me the Dashboard menu item and one OR the other sub-item...Am I doing something wrong here or thinking a wrong way?
I have a .net Chart Control working beautifully in IE, but when I test it in Firefox, the chart initially does not show up. I do a shift+reload and it then does show up (?)
1) I have the .net Chart Control set to run in memory in the web.config: