cross page postback: two postbackurl

  • Thread starter Thread starter Pao
  • Start date Start date
P

Pao

Hi all

I have two buttons that perform a crosspagepostback to two pages:

<body>
<form>
<div>
<table>
<tr>
<td>
<atlas:UpdatePanel>
<ContentTemplate>
<table>
<tr>
<td style="width:5%">
<asp:Button ID="bttRepSchedaCliente" runat="server"
Text="Scheda cliente" PostBackUrl="~/
reports.aspx" />
<asp:Button ID="bttRepElencoClienti" runat="server"
OnClick="bttRepElencoClienti_click"
Text="Elenco" Width="55px" PostBackUrl="~/
repEleCli.aspx" />
<asp:TextBox ID="txtPr" runat="server"
Width="20px"></asp:TextBox>
</td>


The first button works fine, but the second not. The
bttRepElencoClienti_click event is never fired, and the repEleCli.aspx
is never displayed.
 
I saw that the second button always performs post on the first page
(Reports.aspx) and NOT on the correct page (repEleCli.aspx)
 
I saw that the second button always performs post on the first page
(Reports.aspx) and NOT on the correct page (repEleCli.aspx)


my fault...
I forgot to update "codefile" and "Inherits" declaration in the target
page (I copied that from reports.aspx)...
 
Back
Top