How do I setup multiple auth schemes in ASP.NET Core 2.0?
I’m trying to migrate my auth stuff to Core 2.0 and having an issue using my own authentication scheme. My service setup in startup looks like this:
I’m trying to migrate my auth stuff to Core 2.0 and having an issue using my own authentication scheme. My service setup in startup looks like this:
I am exploring ASP.NET MVC and I wanted to add jQuery to make the site interactive. I used StringTemplate, ported to .Net, as my template engine to generate html and to send JSON. However, when I view the page, I could not see it. After debugging, I’ve realized that the $ is used by the StringTemplate to access property, etc and jQuery uses it too to manipulate the DOM. Gee, I’ve looked on other template engines and most of them uses the dollar sign :(.
I’m new to MVC, and am not following how you’d do paging and sorting on a grid. I’m used to using the asp.Net GridView control with an ObjectDataSource pointed at objects in our business layer – and in that case the ODS handles all of the paging & sorting using the methods that our ORM … Read more
i’m using Asp.net MVC with Sharp Architecture.
I am getting the error below: Child actions are not allowed to perform redirect actions. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Child actions are not allowed to … Read more
Is it possible to display a view from another controller?
I am trying to trigger an action method for onchange event for dropdownlist, how can I do this without using jquery onchange.
There is a lot of confusion it seems around IdentityDbContext.
I need to be able to construct a link in the Action on the controller to send an email. What is best practice to do this? I don’t want to construct it myself in case my routes change.
I use the Html.Raw to print a raw html content, for example when I send some thing like ViewBag.div = "<div> Hello </div>"; from the controller to the view side it does not print a raw html content unless I use the Html.Raw method but if I have an encoded content, like content encoded using jquery and inserted into the database and I want to print it as a raw html content the Html.Raw method does not work and I have to use HttpUtility.HtmlDecode(EncodedContent) before I use Html.Raw so please could anyone explain why it acts in this way and what is the proper situation to use Html.Raw method? or in another way, why Html.Raw does not work when it receives html entities as a parameter instead of html tags?.