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.

[VB.NET] Von Web User Control auf Event anderer ASP.NET Web Site zugreifen

Empfohlene Antworten

Hey Leute =)

Ich stehe gerade auf der Arbeit vor dem Problem, dass ich eine default.aspx und eine login.ascx habe. Jetzt weiß ich nicht, wie ich auf das Event des Buttons "btnSaveRad" von der default.aspx in der login.ascx zugreife.

Was ich schon hinbekommen habe, ist auf die Controls der default.aspx über die login.ascx zuzugreifen. Wenn ich jedoch das hier versuche:

Protected Sub btnSaveRad_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSaveRad.Click

Dim test As String

test = "test"

End Sub

...dann kennt er den Button btnSaveRad nicht, obwohl ich ihn vorher mit

    Dim btnSaveRad As Button = Me.Parent.FindControl("btnSaveRad")

deklariert habe.

Wie kann ich auf das Event von der login.ascx aus zugreifen? Bitte um schnelle Antwort ;)

Habe bei Google etc. schon gesucht, jedoch nix passendes gefunden.

LG

Leibi

Hallo,

habe es geschafft, indem ich das Event einfach in die default.aspx schreibe. Sehr simpel ;)

LG

Leibi

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.