mvc
55 TopicsOpen Source ASP.NET 8 MVC 5 Admin Template - Sneat
Hi All, Sharing here https://themeselection.com/item/sneat-free-aspnet-core-mvc-admin-template/ If you’re a developer looking for the latest Free ASP.NET Core 8, MVC 5 Admin Panel Template that is developer-friendly, rich with features, and highly customizable look no further than Sneat. Incredibly versatile, this https://themeselection.com/item/category/asp-net-dashboard/ also allows you to build any type of web application. For instance, you can create: SaaS platforms Project management apps E-commerce backends CRM systems Analytics apps Banking apps Education apps Fitness apps & many more. Features: Based on ASP.NET Core 8, MVC 5 UI Framework Bootstrap 5 Vertical layout 1 Unique Dashboard 1 Chart library SASS Powered Authentication Pages Fully Responsive Layout Organized Folder Structure Clean & Commented Code Well Documented You can check the GitHub repo as well: https://github.com/themeselection/sneat-bootstrap-html-aspnet-core-mvc-admin-template-free Hope you all like it.21KViews1like0CommentsOpen Source Materio Asp.NET Core MVC Admin Dashboard Template
https://themeselection.com/item/materio-free-aspnet-core-mvc-admin-template/ Hi All, Sharing here https://themeselection.com/item/materio-free-aspnet-core-mvc-admin-template/ If you’re a developer looking for the latest Free ASP.NET Core 8, MVC 5 Admin Panel Template that is developer-friendly, rich with features, and highly customizable look no further than Sneat. Incredibly versatile, this https://themeselection.com/item/category/asp-net-dashboard/ also allows you to build any type of web application. For instance, you can create: SaaS platforms Project management apps E-commerce backends CRM systems Analytics apps Banking apps Education apps Fitness apps & many more. Features: Based on ASP.NET Core 8, MVC 5 UI Framework Bootstrap 5 Vertical layout 1 Unique Dashboard 1 Chart library SASS Powered Authentication Pages Fully Responsive Layout Organized Folder Structure Clean & Commented Code Well Documented You can check the GitHub repo as well: https://github.com/themeselection/sneat-bootstrap-html-aspnet-core-mvc-admin-template-free12KViews1like1CommentASP.Net Core 6 Web App - Fails to connect to database after published to on-prem IIS
Dear Community, I started to learn .Net core and entity framework, and its great. I built a small webapp as a test with a database (SQL LocalDB) and locally on my dev machine, it works fine. I publish to a folder location, then copy locally to a Windows 2019 Server and added a website on the server's IIS. The app will run the razor pages without a model, but the page that serves the model to add data or view data from the SQL database fails and the error is weird and it says there is no server found and cannot authenticate NT Authority\System. I made sure that SQL server express is installed and I can connect, I made sure localDB was added as a feature to the sqlexpress instance, etc., etc., My question is, do I have to do anything funky like wear a foil paper hat, to get this to work? I cant seem to find any documentation at all and youtube tutorials go through all the motions except publishing the app. Any help will be greatly appreciated.6.1KViews1like5CommentsAsp.net Core MVC application with Azure AD authentication. Unable to unprotect Message.State error
I have a ASP.NET Core 3.1 MVC application which is integrated with AZURE AD for authentication. The problem is that when redirecting between the pages it issues a request to a url something similar to : https://login.microsoftonline.com/e3a291d3-8a20-4c35-8d08-38ffcafa479d/oauth2/authorize?client_id=86cda223-2296-46c3-a... it automatically authenticated and next page loads perfectly fine. but if I press back button then it gets redirected back to this weird login url. And that's when it throws exception. This doesn't always happen, only every few minutes or so.4.5KViews0likes0CommentsMVC Controller Method Overloading
Hi Folks, The application is built using .NET Framework 4.5.2 with MVC pattern. The current situation requires validating the input parameter and redirecting to the respective method. public ActionResult GetSomeData() { // Default execution for given route } public ActionResult GetSomeData(int inputValue) { // Route detection with the input parameter and change the functional flow for INT data type } public ActionResult GetSomeData(string inputString) { // Route detection with the input parameter and change the functional flow for STRING data type } Is such redirection possible? Thank you for reading.2.7KViews0likes6CommentsHow to localize Routes in Core 5 MVC and/or Razor Pages
Hi, I've been developing websites and applications in webforms for the last 15 years. With the appearance of URL Routing, i've been using it for SEO purposes, allowing multilingual websites to change the URLs according to the user selected language, while calling the same route. This allows me to have localized routes call the same webform. Ex: mydomain.com/{language}/{category_meta_id}/{product_meta_id} mydomain.com/en/games/my-game mydomain.com/pt/jogos/o-meu-jogo the above route can call the same webform, for instance ProductDetail.aspx, and have it gather the parameter 'language' to decide the language to load, 'category_meta_id' to understand the area to call that must be challenged on the database along with the selected language, and the 'procuct_meta_id' that also uses the language to challenge the database in order to determine which content to load. This is supported by a DB table structure like: Category -CategoryId (PK) -IsActive CategoryText -CategoryTextId (PK) -CategoryId (FK) -Language -MetaId -Title -ContentText Product -ProductId (PK) -CategoryId (FK) -ProductImage -IsActive ProductText -ProductTextId (PK) -ProductId (FK) -Language -MetaId -Title -ContentText Bottom line is, i can have a localized URL call the same exact product on the selected language while using one single form to handle the request. I've been considering making the transition to either Core5 MVC or Core5 Razor Pages, but due to the way both these technologies handle routing, i'm not sure how, or even if it is possible to have the same URL approach without having to either duplicate folders in case of the Razor Pages, or duplicate controllers and views in the case of MVC. Making this transition also seems to implicate loosing the capacity of determining all the URL parts from the database, which currently allows content admins to create categories and/or products on the fly without having to code new Controllers and Views for each language of a new category or product. For instance, if a content admin wishes to add a new product with the title 'Game 2' in English and 'Jogo 2' in Portuguese, he/she only needs to use a form on the backend to create the new product, first in one language, then on the other under the same ProductId, allowing that the URLs mydomain.com/en/games/game-2 and mydomain/pt/jogos/jogo-2 to call the same ProductDetail.aspx webform. The same could be done to create a new category, for instance 'Toys' / 'Brinquedos'. How can i achieve the above on MVC or Razor pages? It seems to me that the content admin would have to create new controllers and views, or folders and pages in the case of Razor Pages, for each product or category while also having to duplicate them for each language... am I missing something? Can someone give me a hand on this? Thanks2.1KViews0likes2CommentsSimple forms-based web app authenticated against Azure AD - Need advice re framework / tools to use
We have a need for a simple forms-based application that fronts SQL Server data, but this one needs to be secure. And we also need to support named users from outside the firm. It seems like a .NET web application is what we're looking for, with Azure AD as our source of authentication. But as a novice .NET programmer, I find it confusing trying to sort through all the advice and tutorials and best practices out there, many of which are not dated. Much of the advice seems out of date or inappropriate with today's technology. We're planning to use C# and .NET 6 for this project and have Visual Studio Enterprise for development. We'd like to get off on the right foot and use current technology and techniques. For the application, we're looking for easy rapid development of a forms and event driven application, similar to what we're used to when using Access forms, buttons, controls for rapid development of utility programs. Is there a recommended framework, or tool, or project type to support this kind of coding? While I can do HTML and CSS and client-side Java if I have to, I'd prefer not to be involved in all the intricacies of the form presentation. Visual forms design is a definite plus. For security, we're looking to authenticate the user against Azure AD, with MFA. We've got experience setting up other people's applications to authenticate against Azure AD, but never had to write one ourselves. Is OWIN the current preferred method and, if so, is there a preferred library to use or tutorial to follow that is relevant to today's technology and .NET 6? For reference, in the past, we'd often make Access front ends for quick and easy tools, especially those that interacted with SQL server databases. The visual forms and easy event driven programming made it quite cost effective to develop and support these important but low-complexity projects. We'd build a few forms, each fronting a table or view, add a few buttons or other controls with a couple of key lines of code to implement our logic and rules, and be all set. The fact that users could, if they tried, bypass the code and see the linked tables was not a concern in these cases. Now it is. We'd love that kind of ease of use, with the addition of webhosting and AAD authentication. I've done a good deal of development over 25+ years in many languages and worked with client server tools, SQL, remote procedure calls, and REST APIs. I'm currently working mostly in Python and some VB for Microsoft programs, though I can get by in C-like languages when needed. Thanks in advance for any advice on what the current .NET Web equivalent of our old tools would be. I don't mind putting in the effort to learn but want to be heading in the right direction.1.8KViews0likes1Commentprogid:dximagetransform.microsoft.gradient is not a valid value for the "filter" property
I am trying to implement bootstrap 4 in my code. I am using ASP.NET MVC This error occurs. What replacement should I put in the filter property? I tried adding overflow:auto in the property but I get the same error. This is how my login page looks after this error:1.7KViews0likes1CommentHow to get the identity name from the httpcontext
Hi there, I can get the identity name through "HttpContext.User.Identity.Name" in localhost. But when I deployed to my server, it always fail to get the identify name. P.S. Both machine are in the same domain How do I fix this issue? Controller.cs: var user = HttpContext.User.Identity.Name ?? ""; Startup.cs public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { app.UseDeveloperExceptionPage(); app.UseStaticFiles(); app.UseRouting(); app.UseSession(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(); Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); }1.7KViews0likes1CommentLooking for recommendations for hosting ASP.NET web apps
I've been with an ASP.NET web hosting service for several years. However, the service provided has declined in the last couple of years. So, I started looking for a new, inexpensive, web hosting service. This is for my side business, which doesn't attract that much traffic. Yes, I'm sure that Azure would do, but like I said I'm trying to keep costs down. Naturally, I started searching. I've come across a couple of "Top 10 hosting services for 2023". I've spent about three weeks looking at different ones. I want to publish my ASP.NET Core both from Visual Studio and Azure DevOps Services, using the Azure DevOps FTP task if necessary. My website is currently written in .NET 6. This search experience has not been a pleasant experience. Some services I've spoken to said that because I am working with ASP.NET, then it can only run on Windows, and therefore I couldn't use their service, since they are a Linux only provider (mostly WordPress). I have told two of these web hosting services that ASP.NET Core can run on Linux. I even shared links from Microsoft that ASP.NET Core can run on Linux, Mac, and Windows. In both cases their response was disbelief and a refusal to discuss the topic further with me. Since it seems that many web hosting services have a mindset that refuse to accept the idea that anything from Microsoft can run on Linux, I decided to go back to researching web hosting companies that offer ASP.NET on Windows (both traditional .NET Framework varieties as well as .NET Core with .NET 5, 6, and 7). I settled on one, but they insist that I must allow them to re-register the domain I've owned for 10+ years. They will not allow me to upload my website to them until I've unlocked my website from the domain registrar I use. I've told them, at least three times, that I am satisfied with the domain registrar I have and only need a web hosting provider. They won't hear of it and refuse to go any further with me. So, once again I'm back to searching for a web hosting company for small businesses, that is inexpensive (OK, cheap), that I might be able to have multiple domains on. Therefore, I'd appreciate recommendations from this community, please.1.5KViews0likes8Comments