no argument given that corresponds to required format parameter error
i have ran into some problems with my insert function.
i have ran into some problems with my insert function.
I am building a test web application in asp.net core and I have hosted my site from laptop. Everything seems good but when I go to access any database related page the page just loads for a bit until it gives me an error and prompts me to go developer mode to see more relevant information(which I can’t because the site is not on localhost it is on the web). I tried to change my connection string to different iterations it did not work, the site works locally with IIS express. Frankly I do not know what to do the documentation seems to be not existent so I would appreciate your help. You can test the website at http://digital60.ddnsking.com/.
I’m currently deploying my ASP.NET MVC5 project. I already deployed project files, but I got some problems with, I guess, the database. I did the following steps to deploy the database:
This might be a really dumb question (I’m new to ASP.NET). Anyways, I’m making a web application for practice that will manage students and their courses of a school. The information of the student’s courses, student id number, name, grade etc. will be stored on Student objects in the database. When an admin adds a … Read more
When trying to register a database context in startup.cs
I have a button in my HTML code in an ASP project. The method Button1_Click() in aspx.cs where I actually define my connection and insert values to a table.
I am trying to connect my database with the login.aspx file, but I keep getting an error:
I created two models using fluent api in my dbcontext(ToDo, Category) what I want to achieve is that whenever I create a new ToDo object, the default value for CategoryId is specified as an id for the ‘Default’ category that I successfully created previously, I still need that relationship to be non optional to be able to use cascade deletion, but so that if not specified in a request body, the value of categoryid always assigns to 1.
I am trying to SUM my UNUSED column (named UNUSED). The challenging part in this context here is, I have a COUNT function. The results are calculated correctly. But how can I add a SUM function in this statement? Appreciate any kind advice.
So I have a table like this: