Skip to content
Advertisement

Tag: asp.net

add sql WHERE statement to select new ID:s in database (asp / sql)

I’m trying to update a website where there’s new ID’s for different damage groups. All the new ID’s start after ID 139. In SQL the statement to get the new groups are simply: However, I want to implement the same statement in my ASP code and in the method that fetches the current damage groups. Here’s the current method for

How to connect sql Database with ado.net in Asp.Net Core Mvc 5.0?

I can not find where am i missing. my code like this ; users.cs : } usersAccessLayer.cs ; appsettings.json And finally i got this error; An unhandled exception occurred while processing the request. NullReferenceException: Object reference not set to an instance of an object. Adonet_Sql.Models.users..ctor() in users.cs, line 14 Adonet_Sql.Models.users..ctor() in users.cs bla bla. Answer ConfigurationManager.ConnectionStrings[“DefaultConnection”].ConnectionString; is for .net Core

ASP / SQL: Filepath as clickable link

I have a database file that looks like the following: When I put this in a SQL Datasource (Visual Studio), the file should be clickable text or image. Now it’s just plain text. What I currently have is: But this links to link instead of the content of the sql. Thanks Answer Remember, code behind can use full file system

Increasing the number of ids in the TextBox by one

I have a table in my Sql Server and I have a value in this table. Table name = veriler Values name= Project ID int(PRIMARY KEY) I’m doing project automation for electrical engineer’s project. If engineer click the new project button. My program redirect to the Genel.aspx page. When the new project is opened, I want my id number to

Advertisement