باسلام خدمت دوستان
من یک جدول دارم که نام کاربری و رمزعبور در آنجا ذخیره شده و می خوام درون صفحه login با ورود اطلاعات این دوفیلد در جدول چک بشه ، جدول هم بصورت زیر هست:
کدی که دورن Web.Config نوشتم بصورت زیر هست:
<configuration><coectionStrings>
<add name="testCoectionString" coectionString="Data Source=testCoectionString;Initial Catalog=test;Persist
Security Info=True;User ID=sa;Password=123"
providerName="System.Data.SqlClient" />
</coectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<authentication mode="Forms">
<forms loginUrl="./WebLogin.aspx">
<credentials passwordFormat="Clear">
<user name="TextBox1.texr" password="TextBox2.text"/>
</credentials>
</forms>
</authentication>
<authorization>
<allow users="?"/>
</authorization></system.web>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
</appSettings>
</configuration>
و کدی که پشت دکمه ورود نوشتم بصورت زیر هست:
<configuration><coectionStrings>
<add name="testCoectionString" coectionString="Data Source=testCoectionString;Initial Catalog=test;Persist
Security Info=True;User ID=sa;Password=123"
providerName="System.Data.SqlClient" />
</coectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<authentication mode="Forms">
<forms loginUrl="./WebLogin.aspx">
<credentials passwordFormat="Clear">
<user name="TextBox1.texr" password="TextBox2.text"/>
</credentials>
</forms>
</authentication>
<authorization>
<allow users="?"/>
</authorization></system.web>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
</appSettings>
</configuration>
اما با این حال با Error زیر مواجه میشم:
میشه راهنماییم کنید که چکار باید کنم؟ چی باید بنویسم؟ کجا باید بنویسم؟ چطوری بنویسم؟
باتشکر از شما دوستان
برچسب:
نویسنده: محمد رضا جوادیان