Asad.Safari
یک شنبه 31 خرداد 1383, 10:07 صبح
من تو دیتابیس dbo هارو به یوزر نیمم در آوردم
تو صفحم سرورو از local به سرور ماتریکس تغییر دادم
باز دوباره کار نمیکنه
تگ اتصال به بانک هم اینه:
<script runat="server" language="vb">
sub login(sender as object,e as eventargs)
dim strconnection as string="server=(my matrix server);database=H_myusername;integrated security=true;"
dim objconnection as new sqlconnection(strconnection)
dim strsql as string="select password from Register where email = '" & txtemail.text & "'"
dim objcommand as new sqlcommand(strsql,objconnection)
objconnection.open()
dim dr as sqldatareader=objcommand.executereader()
if dr.read()
if dr("password").tostring=txtpassword.text
response.Cookies("CustomerID").value=txtemail.text
response.Redirect("def.aspx")
else
response.Write("password not found")
end if
end if
dr.close()
end sub
تو رو خدا بگیییین چه کنم؟
تو صفحم سرورو از local به سرور ماتریکس تغییر دادم
باز دوباره کار نمیکنه
تگ اتصال به بانک هم اینه:
<script runat="server" language="vb">
sub login(sender as object,e as eventargs)
dim strconnection as string="server=(my matrix server);database=H_myusername;integrated security=true;"
dim objconnection as new sqlconnection(strconnection)
dim strsql as string="select password from Register where email = '" & txtemail.text & "'"
dim objcommand as new sqlcommand(strsql,objconnection)
objconnection.open()
dim dr as sqldatareader=objcommand.executereader()
if dr.read()
if dr("password").tostring=txtpassword.text
response.Cookies("CustomerID").value=txtemail.text
response.Redirect("def.aspx")
else
response.Write("password not found")
end if
end if
dr.close()
end sub
تو رو خدا بگیییین چه کنم؟