Hello,
Quick question and I would really appreciate if anybody could helps me.
Here are the steps to reproduce the problem. Create simple ASP.Net
application. In code behind added protected class variable:
protected string _result = "No result";
Page Load event has:
if (IsPostBack)
_result = "Posted back";
else
_result = "Loaded";
Form has the following code:
<html>
<head>
<title>WebForm1 </title>
<meta name="GENERATOR " Content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" Content="C#">
<meta name=vs_default ClientScript content="JavaSc ript">
<meta name=vs_targetS chema
content="http://schemas.microso ft.com/intellisense/ie5">
</head>
<body MS_POSITIONING= "GridLayout ">
<Form method="POST" name="ScheduleA pptForm" id="ScheduleApp tForm"
runat="server">
This is Test Control display content!!!! Result : <%=_result%>
<br>
<asp:Button class="Schedule ApptFormSubmit" id="_btnSend"
runat="server" Height="21" text="Schedule Your Appointment"
TabIndex="18"></asp:Button></TD>
</Form>
</body>
</html>
Everything works fine until I have added in Global, Application_Beg inRequest
following code:
Server.Transfer ("WebForm1.aspx "); // or any other form name. Just trying to
transfer form to itself.
And that’s it. IsPostBack returns incorrect value. This issue definitely the
one mentioned in
http://support.microsoft.com/default...b;EN-US;821758 and should be
fixed two years ago. I have reinstalled Microsoft .NET Framework 1.1 Service
Pack 1. It doesn’t help. Any idea or suggestion of what I did wrong? Does it
mean that Service Pack installed incorectly?
Regards,
Alex.