救命 !如何运行下载的asp.net项目 [英] Help ! How to run a downloaded asp.net project

查看:52
本文介绍了救命 !如何运行下载的asp.net项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是asp.net的新手。我正在尝试使用visual studio运行带有sql数据库的asp.net程序,发现很难运行脚本并更改连接字符串。任何人都可以帮忙!



这是我下载的链接

http: //sourceforge.net/projects/lms-dml/ [ ^ ]

I am newbie to asp.net .I am trying to run a asp.net program with sql database using visual studio and finding it very difficult to run the script and changing the connection string.Can anyone help!

Here is link from which i downloaded
http://sourceforge.net/projects/lms-dml/[^]

推荐答案

通常在web.config文件中,您会找到一段这样的代码...



Usually in the web.config file you will find a section of code like this...

<connectionStrings>
    <add name="ConnString" connectionString="data source = david-pc; initial catalog=database; user=typeyourusername; password=typeyourpassword;"/>
  </connectionStrings>





setp 1)

其中说数据源= david-pc

用服务器替换david-pc登录sql server管理工作室时登录屏幕上显示的名称



步骤2)

在登录时用登录值替换typeyourusername到sql server管理工作室



步骤3)

当你登录sql server管理工作室时用密码值替换typeyourpassword



步骤4)

用您运行的脚本创建的数据库名称替换数据库



setp 1)
where it says data source = david-pc
replace david-pc with the server name displayed on your login screen when you log into sql server management studio

step 2)
replace typeyourusername with the login value when you login to sql server management studio

step 3)
replace typeyourpassword with the password value when you login to sql server management studio

step 4)
replace database with the name of the database you created through the script you ran


替换你的用户名和你的密码



Just replace yourusername and yourpassword

<connectionstrings>
    <add name="InnovationManagement_ConnString" connectionstring="Data Source=(localdb)\test;Initial Catalog=CSPproject-v2;User ID=yourusername;Password=yourpassword" providername="System.Data.SqlClient" />
  </connectionstrings>


这篇关于救命 !如何运行下载的asp.net项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆