Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

bin neu auf dem gebiet und kenn mich nicht sonderlich gut aus.

ich habe einen feld in dem eine zahl eingeben werden kann und einen asp button.

wenn der asp button geklickt werden soll, soll eine sql abfrage starten mit der eingegeben zahl aus dem feld.

wie kann ich dem button beibringen das er die daten aus dem feld mit übergeben soll?

das feld:

<td style="width: 150px;"><input type="text" style="width: 140px;"id="inputKST" />

der button:

<asp:button id="btnSuche" onClick="KSTbestaetigen" Text="Suchen" runat="server" />

danke für jegliche hilfe

a+

p.s. was vllt noch interessant ist, dass die sql-abfrage in apl geschieht (ich weis nicht ob die programmiersprache jemand kennt aber das ist auch egal)

es wird wenn der button geklickt wird ein event aufgerufen und die abfrage dann wiegesagt in apl realisiert.

aber ich will ja nur wissen wie man die feldeingabe übergeben kann

Ist das Classic ASP oder ASP.NET?

ist .net

Du musst gar nichts übergeben weil das Formular automatisch beim Postback mit übertragen wird. Das heißt du kannst im Code-Behind einfach auf den Inhalt der TextBox zugreifen.

Selber übergeben musst du die Inhalte nur wenn du Ajax oder ähnliches benutzt.

hm ok gut.

früher oder später soll auch ajax zum einsatz kommen wie macht man das dann?

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.