Connecting Tech Pros Worldwide Forums | Help | Site Map

cross page postback: two postbackurl

Pao
Guest
 
Posts: n/a
#1: Feb 18 '07
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.


Pao
Guest
 
Posts: n/a
#2: Feb 19 '07

re: cross page postback: two postbackurl


I saw that the second button always performs post on the first page
(Reports.aspx) and NOT on the correct page (repEleCli.aspx)

Pao
Guest
 
Posts: n/a
#3: Feb 20 '07

re: cross page postback: two postbackurl


On Feb 19, 12:35 pm, "Pao" <paoloca...@gmail.comwrote:
Quote:
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)...

Closed Thread