Autopost back and Blank Page

T

Tony Doyle

All,

I have a web form with 3 embedded panels, all working fine.

However, I have now added a Checkbox where autopostback=true, and only the
ascx pages on my page appear, none of the panels / tables do.

It just doesnt make sense, looking at the source of the page in view i see

<input type="hidden" name="__VIEWSTATE" (plus a lot of text)

and then underneath that the actual first panel that should be shown, inside
its natural div and panel tags...

all seems bizarre to me.

Any ideas?

Cheers

Td
 
T

Tony Doyle

They are created dynamically, they work on all other pages. Just not this
one...

Will go and add an autopostback control to another page and test that just
in case.

Td
 
T

Tony Doyle

Can you explain as well, as to why this could be a problem?

Td
Tony Doyle said:
They are created dynamically, they work on all other pages. Just not this
one...

Will go and add an autopostback control to another page and test that just
in case.

Td
 
T

Tony Doyle

Here is my code if it helps

<%@ Register TagPrefix="uc1" TagName="pagefooter" Src="ctrl/pagefooter.ascx"
%>
<%@ Register TagPrefix="uc1" TagName="pageheader" Src="ctrl/pageheader.ascx"
%>
<%@ Register TagPrefix="xl10n" Namespace="Xaviar.L10n"
Assembly="Xaviar.L10n" %>
<%@ Register TagPrefix="uc1" TagName="localeSelector"
Src="ctrl/localeSelector.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="signup.aspx.vb"
Inherits="RunAShopSystem.signup" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>signup</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<LINK href="css/Styles.css" type="text/css" rel="stylesheet">
</HEAD>
<body MS_POSITIONING="FlowLayout">
<form id="frmData" action="pay.aspx" method="post" runat="server">
<P><uc1:localeselector id="LocaleSelector1"
runat="server"></uc1:localeselector></P>
<P><uc1:pageheader id="Pageheader1" runat="server"></uc1:pageheader></P>
<div align="center">
<table>
<tbody>
<tr>
<td><!-- Sign Up Introduction ->
<asp:panel id="pnlIntro" style="TEXT-ALIGN: center" runat="server"
Visible="True">
<TABLE class="form" cellSpacing="0" cellPadding="0" width="600">
<CAPTION>
<xl10n:Literal id="llsignupintrotitle" runat="server"
textkey="signupintrotitle"></xl10n:Literal></CAPTION>
<TR>
<TD align="left">
<P>
<xl10n:Literal id="Literal9" runat="server"
textkey="suintro"></xl10n:Literal></P>
</TD>
</TR>
<TR>
<TD>&nbsp;
</TD>
</TR>
<TR>
<TD align="left">
<P>
<xl10n:Literal id="llsi" runat="server"
textkey="suintro1"></xl10n:Literal></P>
</TD>
</TR>
<TR>
<TD>&nbsp;
</TD>
</TR>
<TR>
<TD align="left">
<P>
<xl10n:Literal id="Literal2" runat="server"
textkey="suintro2"></xl10n:Literal></P>
</TD>
</TR>
<TR>
<TD>&nbsp;
</TD>
</TR>
<TR>
<TD align="left">
<P>
<xl10n:Literal id="Literal3" runat="server"
textkey="suintro3"></xl10n:Literal><A
href="http://https://www.paypal.com/uk/cgi-bin/webscr?cmd=_registration-run"><IMG
alt="Join PayPal"
src="https://www.paypal.com/en_US/i/bnr/bnr_join_190x75.gif" align="right"
border="0"></A></P>
</TD>
</TR>
<TR>
<TD>&nbsp;
</TD>
</TR>
<TR>
<TD align="left">
<P>
<xl10n:Literal id="Literal4" runat="server"
textkey="suintro4"></xl10n:Literal></P>
</TD>
</TR>
<TR>
<TD>&nbsp;
</TD>
</TR>
<TR>
<TD align="left">
<P>
<xl10n:Literal id="Literal5" runat="server"
textkey="suintro5"></xl10n:Literal></P>
</TD>
</TR>
<TR>
<TD>&nbsp;
</TD>
</TR>
<TR>
<TD align="left">
<P><A href="terms.aspx" target="_blank">
<xl10n:Literal id="Literal6" runat="server"
textkey="suintro6"></xl10n:Literal></A></P>
</TD>
</TR>
<TR>
<TD>&nbsp;
</TD>
</TR>
<TR>
<TD align="left">
<P>
<asp:CheckBox id="chkTerms" Runat="server" Checked=False
AutoPostBack=True></asp:CheckBox>
<xl10n:Literal id="Literal7" runat="server"
textkey="suintro7"></xl10n:Literal></P>
</TD>
</TR>
<TR>
<TD>&nbsp;
</TD>
</TR>
<TR>
<TD align="left">
<P>
<xl10n:Literal id="Literal8" runat="server"
textkey="suintro8"></xl10n:Literal></P>
</TD>
</TR>
<TR>
<TD>&nbsp;
</TD>
</TR>
</TABLE>
</asp:panel><!--Personal Details -><asp:panel id="pnlPersonal"
style="TEXT-ALIGN: center" runat="server" Visible="False">
<TABLE class="form" cellSpacing="0" cellPadding="0">
<CAPTION>
<xl10n:Literal id="llcontact" runat="server"
textkey="contactdetails"></xl10n:Literal></CAPTION>
<TR>
<TD class="label">
<xl10n:Literal id="lltitle" runat="server" textkey="sutitle"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtTitle" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="llfn" runat="server" textkey="sufirstname"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtFirstName" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="llsn" runat="server" textkey="susurname"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtSurname" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="lladd1" runat="server" textkey="suaddress"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtAddress1" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="lladd2" runat="server" textkey="suaddress2"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtAddress2" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="lltown" runat="server" textkey="sutown"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtTown" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label" style="HEIGHT: 15px">
<xl10n:Literal id="llcountry" runat="server" textkey="sucountry"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" style="HEIGHT: 15px" colSpan="3">
<asp:DropDownList id="ddPersonalCountry" CssClass="fixed300"
Runat="server"></asp:DropDownList></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="llpc" runat="server" textkey="supostcode"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtPostCode" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="lltel" runat="server" textkey="suphone"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtPhone" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="llmob" runat="server" textkey="sumobile"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtMobile" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="llemail" runat="server" textkey="suemail"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtEmail" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="llpw" runat="server" textkey="supassword"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtPassword" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="llcon" runat="server"
textkey="suconfirmpassword" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtConfirm" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="llchk" runat="server"
textkey="sushopaddressconfirm" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:CheckBox id="chkShopAddress"
Runat="server"></asp:CheckBox></TD>
</TR>
</TABLE>
</asp:panel><!--Business Details -><asp:panel id="pnlBusiness"
style="TEXT-ALIGN: center" runat="server" Visible="false">
<TABLE class="form" cellSpacing="0" cellPadding="0">
<CAPTION>
<xl10n:Literal id="Literal13" runat="server"
textkey="businessdetails"></xl10n:Literal></CAPTION>
<TR>
<TD class="label">
<xl10n:Literal id="Literal14" runat="server"
textkey="sushopname" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtShopName" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal43" runat="server"
textkey="sucompanynumber" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtCompanyNumber" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal44" runat="server"
textkey="sushopvatnumber" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtVatNumber" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
&nbsp;
<TD class="dataItem" colSpan="3">&nbsp;
</TD>
<TR>
<TD class="label">
<xl10n:Literal id="Literal46" runat="server"
textkey="subusinesstype" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:DropDownList id="ddbustype" CssClass="fixed300"
Runat="server"></asp:DropDownList></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal45" runat="server" textkey="susic"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:DropDownList id="ddSicCode" CssClass="fixed300"
Runat="server"></asp:DropDownList></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal15" runat="server" textkey="suurl1"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtURL1" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal16" runat="server" textkey="suurl2"
colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtURL2" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal17" runat="server"
textkey="susourcelanguage" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="dd" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
&nbsp;
<TD class="dataItem" colSpan="3">&nbsp;
</TD>
<TR>
<TD align="center" colSpan="4">
<H6>
<xl10n:Literal id="Literal47" runat="server"
textkey="sushopdetails"></xl10n:Literal></H6>
</TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal18" runat="server"
textkey="sucontactname" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtShopContact" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label" style="HEIGHT: 25px">
<xl10n:Literal id="Literal19" runat="server"
textkey="sushopaddress" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" style="HEIGHT: 25px" colSpan="3">
<asp:TextBox id="txtShopAddress" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label" style="HEIGHT: 25px">
<xl10n:Literal id="Literal20" runat="server"
textkey="sushopaddress2" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" style="HEIGHT: 25px" colSpan="3">
<asp:TextBox id="txtShopAddress2" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal21" runat="server"
textkey="sushoptown" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtShopTown" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal22" runat="server"
textkey="sushopcountry" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:DropDownList id="ddBusinessCountry" CssClass="fixed300"
Runat="server"></asp:DropDownList></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal23" runat="server"
textkey="sushoppostcode" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtShopPcode" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal24" runat="server"
textkey="sushopphone" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtShopPhone" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal25" runat="server"
textkey="sushopmobile" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtShopMobile" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal10" runat="server"
textkey="supaypalid" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3">
<asp:TextBox id="txtPayPalID" CssClass="fixed300"
Runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD class="label">
<xl10n:Literal id="Literal26" runat="server"
textkey="sushopbilling" colon="true"></xl10n:Literal></TD>
<TD class="dataItem" colSpan="3"></TD>
</TR>
</TABLE>
</asp:panel>
<asp:panel id="pnlSummary" Visible="False" Runat="server">
<FORM method="post" action="https://www.paypal.com/cgi-bin/webscr">
<!-- Display Summary->
<TABLE>
<TR>
<TD>
<H6>Personal Summary</H6>
</TD>
<TD>
<H6>Business Summary</H6>
</TD>
<TD>
<H6>Billing Summary</H6>
</TD>
</TR>
<TR>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>
<TR>
<TD style="HEIGHT: 23px" colSpan="2">
<xl10n:Literal id="Literal1" runat="server"
textkey="termsandconditions" colon="true"></xl10n:Literal></TD>
<TD style="HEIGHT: 23px"></TD>
</TR>
<TR>
<TD align="right" colSpan="3"><INPUT type="image" alt="Make
payments with PayPal - it's fast, free and secure!"
src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif"
name="submit"></TD>
</TR>
</TABLE>
</FORM>
</asp:panel>
</td>
</tr>
</tbody>
<TFOOT>
<TR>
<TD class="button">
<asp:button id="btnPrevious" runat="server" Text="Back"
enabled="False"></asp:button>
<INPUT type="reset" value="Clear Form">
<asp:button id="btnNext" runat="server" Text="Next"
Enabled="False"></asp:button>
<xl10n:literal id="llWizardStepIndicator1" runat="server"
textkey="wizardStepIndicator"></xl10n:literal>
<asp:button id="btnSubmit" runat="server" Visible="False"
Text="Confirm Details"></asp:button></TD>
</TR>
</TFOOT>
</table>
</div>
</form>
</body>
</HTML>




Tony Doyle said:
Can you explain as well, as to why this could be a problem?

Td
 
T

Tony Doyle

Cheers Eliyahu...

I have discovered the problem in that I am running Norton AV, and that seems
to be blocking it.

Does anyone know why, or what I can do to get round it.

Cheers

Td
 

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

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top