我的系統(tǒng)是windows server 2003,剛好把windows xp上的一個asp.net程序搞過來,在xp是好的,在2003系統(tǒng)上程序總是出現(xiàn)
System.Data.SqlClient.SqlException: 在建立與服務(wù)器的連接時出錯。在連接到 SQL Server 2005 時,在默認的設(shè)置下 SQL Server 不允許進行遠程連接可能會導(dǎo)致此失敗。 (provider: 命名管道提供程序, error: 40 - 無法打開到 SQL Server 的連接) 在 DataOpreate.DataAccess.GetUser(String loginName, String pwd) 在 Login.Button1_Click(Object sender, EventArgs e) 位置 d:\work\Develop\another\Login.aspx.cs:行號 44
但我直接用sql server 2005可以連接到
a:link{color:#175CBB;TEXT-DECORATION: none}
a:active {color:#FF5400;TEXT-DECORATION: none}
a:visited {color:#175CBB;TEXT-DECORATION: none}
a:hover {color:#FF5400;TEXT-DECORATION: none}
function check()
{
var control = document.getElementById('txtAccount');
if( Trim(control.value)=="")
{
alert('帳號不能為空.');
return false;
}
control = document.getElementById('txtPWD');
if( Trim(control.value)=="")
{
alert('密碼不能為空.');
return false;
}
}
function Trim(str)
{
return typeof(str)!="undefined"?str.replace(/^\s+|\s+$/g,""):str;
}
function clear_txt()
{
var control = document.getElementById('txtAccount');
control.value="";
var control2 = document.getElementById('txtPWD');
control2.value="";
}
添加回答
舉報
0/150
提交
取消