Home > Net >  Asp small white consult
Asp small white consult

Time:09-16

Recently new to asp, download a program on the Internet, want to run and see, how can I run, how to connect to the database

CodePudding user response:

What all have no, how do you say

CodePudding user response:

The database first MDF file in your database, such as the installation directory of the data folder, and then write to connect to the database in the web site's webconfig statements,
For example I am wrote
& lt; ConnectionStrings>
& lt; Add name="LSJSqlDbConn connectionString"="Data Source=. Initial Catalog=LSJ; Integrated Security=True "providerName=" System. The Data. SqlClient/& gt; ""

On behalf of the local computer, behind the datasource; Behind the Initial Catalog is your database name

CodePudding user response:

Data source: to connect the SQL Server instance name or network address,
Initial catalog: the Initial connection database name,
The Provider: data Provider,
Specific database connection statement can find!

CodePudding user response:

Are generally connected essentially a database, there is a server explorer in vs can choose database links, premise is opened the SQL server on the computer

CodePudding user response:

Asp,,, this is my second year working with,
You have a choice, or learn.net MVC or. Net core MVC

CodePudding user response:

This iis not enable asp, none of them didn't enable new system

CodePudding user response:

CodePudding user response:

Asp, iis enable asp, vbscript, enable the parent path, enabling the server contains, set access execute permissions, set the mime header

Behind and then see the, the estimate and the database engine, the problem such as access to the connection string,

Scarlet letter part you baidu, because asp this thing, most people are almost didn't touch the dec 15 years, Microsoft iis are out of the N version, the version of the pieces in there, we don't study, so do you know these things, oneself baidu

Ps: please note that iis version check information, those ancient level iis5, iis 6 just don't see the information, has no dice

CodePudding user response:

To enable the parent path (also in this option vbscipt)
https://www.jb51.net/article/70811.htm
To enable the server contains (enable asp is here, it is 7th floor at the bottom of the figure that option)
https://blog.csdn.net/kylinbl/article/details/7781190

Basic can use the normal situation, if still do not have to manually add the application pool, Mime header, set access permissions, this is a follow-up, if you also not line, according to the above step 3 to ask specific

CodePudding user response:

Baidu IIS deployment

CodePudding user response:

Your inc directory there should be a conn. Asp file or a similar name, there is a database connection string,
You need to open asp support iis, upstairs one post said, you also need to open the header file contains and the parent path,

CodePudding user response:

7th floor says, your IIS not open support asp program, open, just search on the net again a connection string
  • Related