cross page postback: two postbackurl

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.
 
P

Pao

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

Pao

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)...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top