Base solution for your next web application

Activities of "alukaszewski"

I have noticed that when I publish my website to an IIS server (local or remote) there seems to be an issue that prevents the site from locating some of the .png files used in the css. When I build/run the project in VS using the inbuilt IISExpress, everything renders correctly and using Google Chrome to inspect the page I see that the menu-toggler in the light.css is resolved to "http://localhost:6234/metronic/assets/admin/layout4/img/sidebar-toggle-light.png".

However, when the site is published to IIS, the debug tools in chrome show error 404 when trying to find the .png files for the menu-toggler and the close button on the sample note portlet. Using the Google Chrome Page inspector the url it is looking for do not exist:

"http://mysite.mydomain.com/Bundles/img/sidebar-toggle-light.png" "http://mysite.mydomain.com/Bundles/Mpa/img/remove-icon-small.png"

In fact, you can see the second url there is also different from the first, even though the .png files are in the same folder. I verified that both files exist by typing in their URL manually as below, and they exist.

"http://mylivesite.mydomain.com/metronic/assets/admin/layout4/img/sidebar-toggle-light.png" "http://mylivesite.mydomain.com/metronic/assets/global/img/remove-icon-small.png"

So there doesn't seem to be a file missing/publishing error - more some sort of code/IIS issue with how the 'bundle' config works?

What gives?

I think I've solved this by poking around with the page inspector. I have added;

font-size: 16px; color: #a7bdcd;

to the simple-line-icons.min.css.

looks much better!

I prefer the original metronic theme presentation of keeping the icons for navigation sub-menu/sub-items at the same size and colour throughout the entire navigation menu, but ASP.NET Zero seems to shrink icons slightly for sub-items and also change to same colour as the sub-item font.

How do I change this to keep sub-item icon same as parent/top-level style?

Thanks!

Thanks for your reply DoubleDP,

Instead of L("string") if I just use "string" the project will not run/build and the editor shows a syntax error. If I use L("Microsoft") then the menu shows [Microsoft] instead of just Microsoft !?

Yes, the adjustment to C# may be a little tricky, but most of my custom code is JavaScript so I should be able to survive. I do have some WebService .asmx in my prototype that returns JSON data if you pass it the name of a .sql file or SQL query and I think what I will do with that is keep it as a separate project in VB.NET.

My project is fairly simple, so I'm hoping most of ASP.NET Zero I can leave alone and not have to worry about learning how it intricately works, or have to learn C# too much, I just want to throw in a good few dozen pages into the Mpa model each linked by the menu system or urls within each other. In my prototype, I centralised the whole navmenu into a single .ascx User Control and called this from each page, with a tiny JavaScript running on each page to set the desired menu item as "active". I am glad to see that the ASP.NET Zero project centralises the menu and takes care of this for me.

I hope some of the more advanced forums users might help us in overcoming some of these first hurdles in using ASP.NET Zero.

Thanks!

Andy

I have been prototyping a web application using VS2013 with .aspx pages and vb.net, using the metronic theme and things have been going well. I use Metronic datatables, ajax calls, google charts and morris.js. I now need to start looking at migrating my project into the ASP.NET Zero framework and this looks to be quite complicated! I expect I will have a lot more questions, but here are a few I'd like answering to get me started.

  1. Is there a guide for creating new pages accessed via the menu on the dashboard page in the MPA model? Are there any template pages to work with other than the dashboard page? Do I need to create new folders under the mpa/views or just new .cshtml pages within "dashboard"
  2. How do I add language-neutral/common language items to the navigation menu without having to use the L("item") function? For example, if I simply wanted the text "Microsoft" or "Symantec" as menu or item title?
  3. What is the version of the Metronic theme in the current ASP.NET Zero project? 4.5.2? I tried this version in my own environment and found that the datatables do not seem to render correctly anymore - the first column in the row does not highlight when you hover over a row.
  4. When I want to publish to a web server using VisualStudio, is it just the ProjectName.Web project I publish?

A lot of this is very new to me, but I am trying to move away from the traditional .aspx web page coding.

Showing 61 to 65 of 65 entries