Hello, I have started using Visual Studio 2022 and Was trying to create a new ASP.NET Core (.NET 6) project, but when I tried to add new JSON settings in
Startup.cs
, I wasn't able to found this file? So How can i configure JSON settings or database context details in .NET 6 without startup.cs
I need functionality like, if user enters http://localhost:5130 default page should be open like user/index
and if user enters http://localhost:5130/customer, customer/index page should be open
how can i achieve this in MVC using route.config?
...Bascially,LogParser is used to read IIS logs.We upload one log file to log parser, select query and we get results of query like :user agent,ip address(basically hits to particular url).That query is PS(PowerShell Script) file.
Any idea how to read that PS file and save output of that query to db?
...Hi, I have added login with facebook button using OAuth in my MVC project, now I want to get list of all the pages,while user is logging in, of which user is admin, here is the link which shows method to get list of pages that a user is admin of
But I would like to know to get the pages while logging in using ASP.NET MVC C#
Thanks.
...I want to load a dropdown list in my web forms based on certain conditions, first here is my Table_columns(With types)
id--Int
food_type --varchar
First_start_time -- time
First_end_time -- time
second_start_time -- time
second_end_time -- time
Now I want to load values in which Current_Time > First_start_time
How to do this, it's basic question but I am not able to do it, so please let me know, thanks
...I have a website that shows galleries, users can upload their own content from the web (by entering a URL) or by uploading a picture from their computer.
I am storing the URL in the database which works fine for the first case but I need to figure out where to store the actual images if a user uploads pictures from their local computer.
Is there any recommendation here or best practice on where should I store these and how can i store it on server?
help me! thank you very much
...