|
Howdy
Ich
hoffe jemand kann mir bei folgendem Problem helfen:
Ich
habe ein Usercontrol navigation.ascx, welches eine ASP:DrowDownList enth�lt und
eine dazugeh�rige Methode zum Ereignis OnSelectedIndexChanged. Das Ziel w�re,
dass diese Methode nach einem Indexwechsel einen Response.Redirect auf eine
andere Seite ausf�hrt, dies funktioniert jedoch nicht. In der Statusbar des IE
erscheint schon beim Laden der Seite eine Fehlermeldung". Ist es �berhaupt
m�glich, in einem UserControl diese Methode aufzurufen? Wenn ich n�mlich das
ganze als normale aspx-Seite abspeichere funktioniert es ohne Probleme.
Die Funktion sieht so aus: void teams_SelectedIndexChanged(object sender, EventArgs e) { Response.Redirect(teams.SelectedItem.Value); } Ich
habe auch schon versucht, Response.Redirect(teams.SelectedItem.Value, true);
aufzurufen, auch ohne Erfolg.
Die dazugeh�rige DropDownList: <asp:DropDownList id="teams" runat="server" AutoPostBack="true" "> <asp:ListItem Text="Anaheim" Value="http://www.mightyducks.com" /> <asp:ListItem Text="Atlanta"" Value="http://www.atlantathrashers.com" />.... </asp:DropDownList> Die Seite
findet man unter http://www.uhcbiel-seeland.ch/faceoff/default.aspx,
die DropDownList ist oben links im Navigationsmenu.
Mfg
|
- RE: [Asp.net] Response.Redirect in einem Usercontrol? Patric Martin
- RE: [Asp.net] Response.Redirect in einem Usercontro... Alexander Zeitler
- AW: [Asp.net] Response.Redirect in einem Usercontro... Dirk Sch�fauer
- AW: [Asp.net] Response.Redirect in einem Userco... Thomas Bandt
- RE: [Asp.net] Response.Redirect in einem Us... Alexander Zeitler
- AW: [Asp.net] Response.Redirect in eine... Thomas Bandt
- RE: [Asp.net] Response.Redirect in... Alexander Zeitler
- AW: [Asp.net] Response.Redirec... Thomas Bandt
- RE: [Asp.net] Response.Red... Alexander Zeitler
- [Asp.net] Combobox / DropD... St.Fricke
