473,398 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Whole page refreshes with update panel rather than just the content area

hello ive only started using ajax for first time today . i am trying to use an update panel in asp.net but my whole page keeps refresh rather than just the content area. can any one help.

Expand|Select|Wrap|Line Numbers
  1. <asp:Panel id="pnlQA" runat="server">
  2.                                         <asp:UpdateProgress ID="upcQuestionnaire" runat="server">
  3.                                             <ProgressTemplate>
  4.                                                 <div>
  5.                                                     <img src="images/indicator.gif" alt="" />
  6.                                                     Updating...
  7.                                                 </div>
  8.                                             </ProgressTemplate>
  9.                                         </asp:UpdateProgress>
  10.                                         <asp:UpdatePanel ID="upPanel" runat="server">
  11.                                             <ContentTemplate>
  12.                                                     <br />  
  13.                                                     <asp:table ID="tblChoice" runat="server" Width="100%">
  14.                                                         <asp:TableRow>
  15.                                                             <asp:TableCell ColumnSpan="2" HorizontalAlign="center" Height="50px"><b><asp:Label ID="lblIntro" runat="server" ></asp:Label></b></asp:TableCell>
  16.                                                         </asp:TableRow>
  17.                                                         <asp:TableRow>
  18.                                                             <asp:TableCell ColumnSpan="2" HorizontalAlign="center" Height="50px"><span style="color:Red;"><b>Question <asp:Label ID="lblPageCount" Text="1" runat="server"></asp:Label> of <asp:Label ID="lblQuestionCount" runat="server"></asp:Label></b></span></asp:TableCell>
  19.                                                         </asp:TableRow>
  20.                                                         <asp:TableRow>
  21.                                                             <asp:TableCell ColumnSpan="2"><b>Question: </b><asp:Label ID="lblQuestion" runat="server" ></asp:Label><asp:Label ID="lblDisplayOrder" runat="server" Visible="false"></asp:Label><br /><br /></asp:TableCell>
  22.                                                         </asp:TableRow>
  23.                                                         <asp:TableRow>
  24.                                                             <asp:TableCell ColumnSpan="2">&nbsp;&nbsp;&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="radAnswers" ErrorMessage="*Pleae choose one option" /></asp:TableCell>
  25.                                                         </asp:TableRow>
  26.                                                         <asp:TableRow>
  27.                                                             <asp:TableCell><img src="Images/Spacer.gif" width="20px" alt="" /></asp:TableCell>
  28.                                                             <asp:TableCell><asp:RadioButtonList ID="radAnswers" runat="server" CssClass="PollOptions" /></asp:TableCell>
  29.                                                         </asp:TableRow>
  30.                                                         <asp:TableRow><asp:TableCell><br /></asp:TableCell></asp:TableRow>
  31.                                                         <asp:TableRow>
  32.                                                             <asp:TableCell ColumnSpan="2"  Height="50px"><b>Comment:</b> <br /><asp:TextBox ID="txtComment" runat="server" Width="75%" TextMode="MultiLine" Height="100px"></asp:TextBox></asp:TableCell>
  33.                                                         </asp:TableRow>
  34.                                                     </asp:table>
  35.                                             </ContentTemplate>
  36.                                             <Triggers >
  37.                                                 <asp:AsyncPostBackTrigger ControlID="cmdSubmit" EventName="click" />
  38.                                             </Triggers>
  39.                                         </asp:UpdatePanel>
  40.                                         <img src="images/spacer.gif" alt="" width="150px" height="1px"/><asp:imagebutton ID="cmdSubmit" runat="server" AlternateText="Next" ImageUrl="Images/next.gif" />
  41.                                     </asp:Panel>
Mar 18 '08 #1
0 1139

Sign in to post your reply or Sign up for a free account.

Similar topics

31
by: Greg Scharlemann | last post by:
Given some recent success on a simple form validation (mainly due to the kind folks in this forum), I've tried to tackle something a bit more difficult. I'm pulling data down from a database and...
3
by: Arun K | last post by:
Hi, I am creating a simple .aspx page to add some fields with validation. I have used different .NET validations like REquiredFieldValidator, RegularExpressionValidator and showed the summary...
5
by: Invalidlastname | last post by:
Hi, I just read the pattern "Design and Implementation Guidelines for Web Clients" from MSDN. Here is my question. In chapter 3,...
3
by: Aaron | last post by:
I'm trying to parse a table on a webpage to pull down some data I need. The page is based off of information entered into a form. when you submit the data from the form it displays a...
9
by: she_prog | last post by:
Dear All, I need to save the content of a panel to a bitmap. The panel can have many child controls which also need to be saved. The problem would be solved if I could have the panel saved to a...
10
by: paulie | last post by:
Hi, I have been experiencing an issue when trying to use AJAX to reload a DIV area using a timer of 2000ms, which contains a html page with another DIV and javascript. Scenario -------------...
1
by: mbruyns | last post by:
i have been trying (and sometimes succeeding) to use the modalpopupextender to show various panels of controls on my asp pages. the strange problem that i keep on running into is that sometimes it...
3
by: John Kotuby | last post by:
Hi all, Just wondering why this would happen. I had created a standalone ASPX page in which 5 controls are wrapped in an UpdatePanel. The idea is Control1 selection populates Control2 then...
8
by: Ben | last post by:
Hi, i'm trying to build a simple site navigation (using c#)... i implemented a master page that shows a sidebar user control on the left side, and a content page on the right. i click the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.