ASPX -Schaltfläche Onclick ruft die C# nicht auf
Posted: 13 Feb 2025, 06:53
Schaltfläche Klicks machen nichts. Hier ist einige der Möglichkeiten, wie ich versucht habe, es zu nennen: < /p>
ist eine Formregelung:
Code: Select all
Pass
Fail
N/A
< /code>
Hier ist die Funktion in C#: < /p>
protected void OSTAQ1Button1Click(object sender,EventArgs e)
{
OSTAFileNumber.InnerText = "PASS";
}
< /code>
OSTAFileNumber
Code: Select all
< /code>
In another site I built (this one is a collaborative effort), this line of code works for a button:
< /code>
When clicking on the button, nothing happens. I tried using breakpoints, and I also tried some of these other things as well:
CausesValidation="False"
UseSubmitBehavior="False"
private void...