Autor Beitrag
Kuehter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 30
Erhaltene Danke: 1



BeitragVerfasst: Mi 20.01.16 15:23 
habe schon vieles Versucht, aber es half nicht. Nur nun frage ich euch mal.

ausblenden HTML-Dokument
1:
    <asp:Button ID="Button1" runat="server" Text="Bestätigen" OnClick="Button1_Click" />					


ausblenden C#-Quelltext
1:
2:
3:
4:
protected void Button1_Click(object sender, EventArgs e)
{
    ResxReaderControl();
}


ganz banal aber er geht nicht mal in ResxReaderControl hinein,
damit meine ich er feuert nicht mal das Event
tomte
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19
Erhaltene Danke: 5

Win 7, Win 8.1, Win 10, Win Server 2012

BeitragVerfasst: Mi 20.01.16 15:56 
Hast du deinen Eventhandler für das Click-Ereignis registriert?

Zum Beispiel so:
ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<script runat="server">
...
void Page_Load(Object sender, EventArgs e){ 
    Button1.Click += new EventHandler(this.Button1_Click);
}
...
protected void Button1_Click(object sender, EventArgs e)
{
    ResxReaderControl();
}          
...
</script>

...
<asp:Button ID="Button1" runat="server" Text="Bestätigen" OnClick="Button1_Click" />          
...
Kuehter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 30
Erhaltene Danke: 1



BeitragVerfasst: Mi 20.01.16 16:10 
habe ich auch schon gemacht liegt wohl irgendwie an der Seite es geht allgemein kein einziges ClickEvent
tomte
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19
Erhaltene Danke: 5

Win 7, Win 8.1, Win 10, Win Server 2012

BeitragVerfasst: Mi 20.01.16 16:39 
Poste doch mal den Quelltext der Seite (C# und HTML). Anhand der 5 Zeilen die du bisher gepostet hast, kann man leider nicht sehen woran es liegen könnte.
Kuehter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 30
Erhaltene Danke: 1



BeitragVerfasst: Mi 20.01.16 16:49 
Bin es durchgegangen bei dem Programm erzeugten GridView kann ich nach dem GridView.Databind()
die Daten nicht mehr an Klicken