Looking for sample global.asax.cs files for routing information
No matter what you read about ASP.NET routing or REST I think the best way to learn more about them is to read other people's routing files. In a video with Jeff once you could catch a glimpse of the...
View ArticleComment by Simon_Weaver on StringFormat is ignored
I couldn't figure out anyway to get CommandParameter to recognize StringFormat so I had to do it with a custom MultiBinding where I would pass the constituent parts to the be formatted.
View ArticleComment by Simon_Weaver on URL to compose a message in Gmail (with full Gmail...
It's a huge shame that if the intended account isn't found that it fallback and in any case you can't see which account you're sending from. (Yes you can click on the 'To' area and see the 'From' but...
View ArticleComment by Simon_Weaver on Generics in C# - how can I create an instance of a...
this is still the best way?
View ArticleAnswer by Simon_Weaver for Angular update from 8 to 13 peer dependency problem
This problem can get very frustrating. I've spent a couple of hours trying to understand it and even created dummy angular 13 / 14 projects to see what the latest defaults are.My tip is don't forget...
View ArticleComment by Simon_Weaver on Why can't the C# constructor infer type?
BTW: It's important to realize the Factory class can have the same name as the results class, and if it's being used just as a factory you can make it static eg. public static class MyType. For my...
View ArticleComment by Simon_Weaver on how to exclude an attribute using model binding in...
You may also need [ValidateNever] - (look at the stacktrace for any validation related stack frames). But if you're trying to block based upon that, consider renaming the property to a method...
View ArticleAnswer by Simon_Weaver for Mandrill inbound: Reply mail not adding Metadata...
If you're using the .NET client you must use the AddMetadata method as opposed to just manually adding to the dictionary. How annoying - especially since the same doesn't seem true for Tags!//...
View ArticleComment by Simon_Weaver on Visual Studio freezes on breakpoints
How does this only have TWO answers after 13 years? And the problem still exists!
View ArticleAnswer by Simon_Weaver for Configure launchSettings.json for SSL in debug -...
You can also set the path to the pfx file in launchSettings like this.These are 'well known' environmental variable names.This is all you need to do.{"profiles": {"MyApp": {"commandName":...
View ArticleAnswer by Simon_Weaver for Does Dbcontext registered as "scoped" or...
If you've ever considering using Blazor, you need to consider scope even more carefully.Briefly, in Blazor you may find your DbContext is longer living 'by accident' because components are long living...
View ArticleAnswer by Simon_Weaver for Blazor onclick event is not triggered
Does your project include ASP.NET Core MVC?Warning: Do not put Blazor .razor components in /ViewsSo the component I was having issues with was originally a .cshtml page under...
View ArticleComment by Simon_Weaver on Is there any way to disable CSS Isolation in...
Why is it so difficult to understand that people want different things? Personally I want to disable it for .razor.css files that are used as CSS for emails, where I don't want the scoping to occur but...
View ArticleComment by Simon_Weaver on How to embed the scoped css bundle file generated...
Confirmed works with Blazor 9. I just added your code directly in no particular location in my csproj file.
View ArticleAnswer by Simon_Weaver for Where does MyApp.styles.css come from?
It’s CSS Isolation and the .css file is the result of bundling.https://learn.microsoft.com/en-us/aspnet/core/blazor/components/css-isolation?view=aspnetcore-9.0
View Article