We help IT Professionals succeed at work.
Get Started

ASP.NET causes full postback via IIS, but not asp.net development server

Michhoho asked
Last Modified: 2012-05-09
I have this website running asp.net version 4.0, in a sub-virtual directory of a virtual directory in IIS (in XP Pro)

each virtual directory is different version of asp.net

one is set to isolation mode medium, another is high. both can run

however, there's something weird going on

if i run a simple page (code attached) via IIS, the ajax causes full postback, but when I try to run it via vs2010's built-in webserver, it doesn't.

What's wrong?

Edit = Same problem if I create a root virtual directory for the site. But no problem on Win2K3 IIS 6

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

	Protected Sub x_Click(ByVal sender As Object, ByVal e As System.EventArgs)
	haha.Text = Guid.NewGuid.ToString 
	End Sub

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server" ID="sc" />
	<asp:UpdatePanel runat="server" ID="up"><ContentTemplate>
	<asp:Literal runat="server" ID="haha" />

	<asp:Button ID="x" Text="xx" runat="server" OnClick="x_Click" />


Open in new window

Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE