עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

שליפת נתונים מטבלה לצורך השוואה או בקיצור, התחברות.. asp.net

Featured Replies

פורסם

היי, אני מנסה ליצור סוג של התחברות לאתר, אבל לא משנה איזה נתונים אני מכניס בשדות הטקסט, אותו דף מגיע לי, גם אם הנתונים נמצאים בטבלה, או גם אם לא..

הינה הקוד:

זה הקוד של שליפת הנתונים מהטבלה:

public class DBAccounts
{
public DBAccounts()
{
}
public static DBAccountsDataContext DbAccountsConnect =new DBAccountsDataContext();
public static Boolean cheakUsername (String usernameCheak, String passwordCheak)
{
var result= from p in DbAccountsConnect.tbl_Accounts where p.userName==usernameCheak
&&
p.password==passwordCheak
select p;
if (result!=null)
return true;

else
return false;
}


}

וזהו הקוד של הטופס:

  protected void Button1_Click(object sender, EventArgs e)
{
Boolean exist = DBAccounts.cheakUsername(TextBox1.Text, TextBox2.Text);
if (exist==true)
{
Response.Redirect("home.aspx");
}
else
Response.Redirect("error.aspx");
}

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.