Hey leute (:
also, mein problem: ich hab da einen RB für plz-orte suche und einen RB für blz-bank suche. klicke ich auf einen dann zeigt er mir die richtige suchmaske an, klicke ich auf den anderen, dann zeigt er mir, für die suche die richtige maske an. klick ich dann zurück zum einen, dann is garnichts mehr da -.- weiß vL jemand warum das so is?
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38:
| <asp:Label ID="lbl_SuchMaske" runat="server" Visible="false"> <table class="mask"> <tr> <th colspan="5" class="Search" align="left"> <asp:Label ID="lbl_Uebers" runat="server"></asp:Label> </th> </tr> <tr> <td colspan ="5"> </td> </tr> <tr> <td> <asp:Label ID="lbl_PlzBlz" runat="server"></asp:Label> </td> <td> <asp:TextBox ID="tb_PlzBlz" runat="server"></asp:TextBox> </td> <td> </td> <td> <asp:Label ID="lbl_Name" runat="server"></asp:Label> </td> <td> <asp:TextBox ID="tb_Name" runat="server"></asp:TextBox> </td> </tr> <tr> <td colspan ="5"> </td> </tr> <tr> <td colspan ="5" align="right"> <asp:Button ID="b_Suche" runat="server" Text="Suche" CssClass="button" /> </td> </tr> </table> </asp:Label> |
C#-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18:
| protected void cb_Blz_CheckedChanged(object sender, EventArgs e) { cb_Plz.Checked = false; lbl_SuchMaske.Visible = true; lbl_Uebers.Text = "BLZ - Banknamen Suchfunktion"; lbl_PlzBlz.Text = "BLZ: "; lbl_Name.Text = "Bankname: "; }
protected void cb_Plz_CheckedChanged(object sender, EventArgs e) { cb_Blz.Checked = false; lbl_SuchMaske.Visible = true; lbl_Uebers.Text = "PLZ - Ortsnamen Suchfunktion"; lbl_PlzBlz.Text = "PLZ: "; lbl_Name.Text = "Ortsname: "; } |
Danke schon im voraus
LG mokona
Moderiert von Christian S.: C#- und XML-Tags hinzugefügt