与Asp.net相关的问题 [英] problem related Asp.net

查看:63
本文介绍了与Asp.net相关的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Asp.net中创建了网站表单,并在sql server 2005中为表单创建了数据库.现在,我无法将表单与数据库连接.我浏览了许多站点,但无法按照站点上的指示进行操作.请帮助,因为我希望我的网站正常运行.

I have created my website forms in Asp.net and created a database for the forms in sql server 2005. now I am unable to connect my forms with database. I have browsed many sites but unable to do as directed instructions on the site.please help as i want my website to work properly.

推荐答案

最简单的方法是使用智能工具提示.将GridView拖到页面上,您会注意到gridview右上方的小三角形下拉菜单.它有一个向导,它将引导您完成所有连接.
The easiest way is to use the Smart Tooltip. Drag a GridView onto your page and you will notice the little triangle dropdown in the upper right of the gridview. It has a wizard that will walk you through connecting it all up.


您对网络配置文件有问题...可能是sql密码验证,因此请检查一下..
如果sql是窗口身份验证,请尝试..

数据源= MICROSOFT-PC;初始目录=数据库名称;集成安全性= True


如果sql是密码,请尝试

数据源= MICROSOFT-PC;初始目录= dbemployee; uid =用户名; pwd =密码

可能会帮助您
You have problem with web config file...may b ur sql password authenication so check it out..
if sql is window authonication then try it..

Data Source=MICROSOFT-PC;Initial Catalog=databasename;Integrated Security=True


if sql is password then try it

Data Source=MICROSOFT-PC;Initial Catalog=dbemployee;uid=username;pwd=password

May b it can help you


这篇关于与Asp.net相关的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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