Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 153305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:46:40+00:00 2026-05-11T09:46:40+00:00

I’m following a simple example of how to use the update panel from here

  • 0

I’m following a simple example of how to use the update panel from here (http://www.asp.net/Ajax/Documentation/Live/tutorials/IntroductionUpdatePanel.aspx). Outside the update panel i’ve another html input control which calls a javascript function which displays an count to the user in an alert box. simple stuff. My problem is that the page behaves differently when running on IIS and on the inbuilt asp.net web server (cassini). Under IIS clicking the button within the update panel causes a full postback and so the count displayed to the user in the js function gets reset after that eachtime. under the inbuilt web server hitting the button inside the update panel behaves how i would expect it to and how i want it to in that it refreshes the label only so that the counter on the client side isn’t reset.

.net 3.5 is the target framework and I’m running IIS 5.1.

I’ve seen posts elsewhere describing the same problem (http://forums.asp.net/t/1169282.aspx)

<html xmlns='http://www.w3.org/1999/xhtml' > <head runat='server'>     <title>Untitled Page</title>      <script type='text/javascript'>     var count=0;     function incrementCounter()     {         count ++;         alert(count);     }     </script> </head> <body>     <form id='form1' runat='server'>     <asp:ScriptManager ID='ScriptManager1' runat='server'>     </asp:ScriptManager>     <asp:UpdatePanel ID='UpdatePanel1' runat='server'>         <ContentTemplate>             <asp:Label ID='Label1' runat='server' Text='Panel Created'></asp:Label>             <asp:Button ID='Button1' runat='server' Text='Button'     onclick='Button1_Click' />         </ContentTemplate>     </asp:UpdatePanel>      <input type='button' id='Button2' value='JS Clicker' onclick='incrementCounter();' />     </form> </body> </html> 

Update:

Thanks Crossbrowser for your answer. My reply will take up to much room in the Add Comment window. Ok, so following this simple example here (http://www.asp.net/Ajax/Documentation/Live/tutorials/IntroductionUpdatePanel.aspx) you can see that the update mode is not set to conditional so I’ve reflected those changes. However my problem still persists. That is that the page when running on IIS causes a full postback. i.e. the progress bar in you browser loads, the screen flickers, client side count that i was maintaining is lost. Running the code on the inbuilt asp.net webserver does not. That is the crux of my problem. I’ve come across this problem by others (http://forums.asp.net/t/1169282.aspx).

So my question is what is different when running on IIS compared to the inbuilt asp.net one?

Updated Code:

<html xmlns='http://www.w3.org/1999/xhtml' > <head runat='server'>     <title>Untitled Page</title>      <script type='text/javascript'>     var count=0;     function incrementCounter()     {         count ++;         alert(count);     }     </script> </head> <body>     <form id='form1' runat='server'>     <asp:ScriptManager ID='ScriptManager1' runat='server'>     </asp:ScriptManager>     <asp:UpdatePanel ID='UpdatePanel1' runat='server'>         <ContentTemplate>             <asp:Label ID='Label1' runat='server' Text='Panel Created'></asp:Label>             <asp:Button ID='Button1' runat='server' Text='Button' onclick='Button1_Click' />         </ContentTemplate>     </asp:UpdatePanel>      <input type='button' id='Button2' value='JS Clicker' onclick='incrementCounter();' />     </form>   </body> </html> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:46:41+00:00Added an answer on May 11, 2026 at 9:46 am

    Since you are using the .NET Framework 3.5 I will assume you are using Visual Studio 2008, and you say you are targeting IIS 5.1 for the production platform.

    The local web server that is part of Visual Studio 2008 is based off of IIS 6/7 architecture, not IIS 5. So, to answer your question of what is different with IIS compared to the local web server… unfortunately, in this case, you are mixing apples and oranges.

    Are you restricted to IIS 5.1?… ie client mandate or some other reason. If you are not, and you are developing with Visual Studio 2008 (.NET Framework 3.5) you really should be using IIS7 (or at least 6) as you would most likely not have this problem.

    Again, IIS7 may not be an option for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I want use html5's new tag to play a wav file (currently only supported
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.