glennc / realworldaspnetcore Goto Github PK
View Code? Open in Web Editor NEWRepo for the demos done at the Real World ASP.NET Core talk at dotnetConf 2016
License: MIT License
Repo for the demos done at the Real World ASP.NET Core talk at dotnetConf 2016
License: MIT License
Hi Glenn.
looks like some stuff from the demo is missing, like seq configuration for instance, etc.
I appreciate if you could push the latest snapshot of the code from the demo.
Thanks
Instead of all that gulp work can this vnext project be migrated to webpack using microsoft recommended setup?
by now everyone should be using:
we need bundles when in #if RELEASE mode and all files when in #if DEBUG mode
Hi @glennc
I'm trying to implement a custom error/404 page as you showed in your demo. In my startup I have it configured like this:
app.UseStatusCodePagesWithReExecute("/Home/Error/{0}");
and in my Home controller I have this:
public IActionResult Error(int statusCode)
{
return View(statusCode);
}
for a 404 it executes the controller and view ok but the statusCode is always 0
so I'm not able to customize the message based on the status code
am I doing something wrong?
based on your demo I'm doing this in my app:
app.UseStatusCodePagesWithReExecute("/Home/Error/{0}");
and in my home controller I have this:
public IActionResult Error(int id)
{
if(id == 404)
{
log.LogWarning("handled 404 for url: " + HttpContext.Request.Path);
}
return View(id);
}
but it logs as "handled 404 for url: /Home/Error/404"
is there any way I can get the original url that is what the user sees in the browser?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.