473,406 Members | 2,847 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,406 software developers and data experts.

Screen Flicker ASP.NET

I am fetching some values from database and displaying them on screen. Query is generated on one page and then that page calls other page and displays the result. My problem is Screen flashes when I submit the first form. page appears without any data but with labels and table I put.then the screen flashes & the data is present.
How can I remove this flash? I don't want those labels and table to be appeared before data is fetched.

Thks
Mar 19 '08 #1
4 3394
Frinavale
9,735 Expert Mod 8TB
I am fetching some values from database and displaying them on screen. Query is generated on one page and then that page calls other page and displays the result. My problem is Screen flashes when I submit the first form. page appears without any data but with labels and table I put.then the screen flashes & the data is present.
How can I remove this flash? I don't want those labels and table to be appeared before data is fetched.

Thks
When you submit data to the server the page is sent to the server, then the server makes a New page and sends it back to the browser. This is why you are seeing a flicker (they page is being redisplayed).

You could use Ajax (UpdatePanels) to prevent full page updates...then only the section that needs to be update will be and you won't get a "flash".

-Frinny
Mar 19 '08 #2
bounded it in update panel's content template:

Expand|Select|Wrap|Line Numbers
  1.  
  2. <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="360000">
  3.         </asp:ScriptManager>
  4.  
  5. <asp:UpdatePanel ID="gpanel" runat="server">
  6.              <ContentTemplate>
  7.             <div class="tab-page" id="tabPage4" style="width:790px" >
  8.                 <h2 class="tab">
  9.                     Property Description
  10.  
  11.                 </h2>
  12.  
  13.  
  14.                 <script type="text/javascript">tp2.addTabPage( document.getElementById( "tabPage4" ) );</script>
  15.  
  16.                 <table bordercolor="blue" id="info" border="1" class="dataTable" style="background-color: #ffffde;width: 800px; border-collapse: separate;" cellspacing="0">
  17.  
  18.                        <tr>
  19.                             <td style="width: 338px;background-color:#e0eafc">
  20.                                 Section Block Lot Suffix:</td>
  21.                             <td style="width: 145px">
  22.                                 <asp:Label ID="PARCELLabel" runat="server"></asp:Label></td>
  23.                                 <td style="width: 217px;background-color:#e0eafc">
  24.                                 Property address:&nbsp;</td>
  25.                             <td style="width: 400px">
  26.                                 <asp:Label ID="praddrlabel" runat="server"></asp:Label>&nbsp;</td>
  27.  
  28.                         </tr>
  29.                         <tr>
  30.                             <td style="width: 338px;background-color:#e0eafc">
  31.                                 SWIS:&nbsp;</td>
  32.                             <td style="width: 145px">
  33.                                 <asp:Label ID="SWISLabel" runat="server"></asp:Label>&nbsp;</td>
  34.                                 <td style="width: 217px;background-color:#e0eafc">
  35.                                 Acres:&nbsp;</td>
  36.                             <td style="width: 400px">
  37.                                 <asp:Label ID="ACRESLabel" runat="server"></asp:Label>&nbsp;</td>
  38.                         </tr>
  39.                         <tr>
  40.                             <td style="width: 338px;background-color:#e0eafc">
  41.                                 Municipal:&nbsp;</td>
  42.                             <td style="width: 145px">
  43.                                 <asp:Label ID="MUNILabel" runat="server"></asp:Label>&nbsp;</td>
  44.                             <td style="width: 217px;background-color:#e0eafc">
  45.                                 Frontage:&nbsp;</td>
  46.                             <td style="width: 400px">
  47.                                 <asp:Label ID="FRONTAGELabel" runat="server"></asp:Label>&nbsp;</td>
  48.                         </tr>
  49.                         <tr>
  50.                         <td style="width: 338px;background-color:white">
  51.                                 &nbsp;</td>
  52.                                 <td style="width: 145px;background-color:white">
  53.                                 &nbsp;<asp:Label ID="keylabel" Visible="false" runat="server" Width="70px"></asp:Label></td>
  54.                             <td style="width: 217px;background-color:#e0eafc">
  55.                                 Depth:&nbsp;</td>
  56.                             <td style="width: 400px">
  57.                                 <asp:Label ID="DEPTHLabel" runat="server"></asp:Label>&nbsp;</td>
  58.                         </tr>
  59.  </table>
  60.  
  61.                 <iframe name="InfoLinks_1" src="propertydescription.aspx" width="800px"  height="400px"> </iframe>
  62.             </div></ContentTemplate>
  63.             </asp:UpdatePanel>
  64.  
as you see in the code there are labels. it is still displaying those labels and then flashes and displays labels as well as data.
Is there any way to solve it. Please let me know if I m doing anything wrong.
thks
Mar 20 '08 #3
I have a gridview on 1st page and I am dynamically creating a link button with name info inside the gridview. When I click on info link corresponding information is fetched from database and displayed on 2nd page. In above code, if I mention updatemode="conditional" then I have to explicitely mention update() method.
I don't know how to call update() method from another page and from that info link which is also contained inside gridview and being dynamically generated in front of each record(row).
Can you please guide me regarding this?
thks
Mar 20 '08 #4
Frinavale
9,735 Expert Mod 8TB
Query is generated on one page and then that page calls other page and displays the result
At first when you mentioned this I thought you were just saying that the page was displaying different Web User Controls...

Since you are displaying 2 different pages of course there's going to be a flash: a whole new ASPX page is being displayed. It doesn't matter if you use Ajax or not...because the whole page must be rendered.


I have a gridview on 1st page and I am dynamically creating a link button with name info inside the gridview. When I click on info link corresponding information is fetched from database and displayed on 2nd page. In above code, if I mention updatemode="conditional" then I have to explicitely mention update() method.
Remove the UpdatePanel, it's not needed (I'm sorry I mentioned it earlier, I didn't read your question properly). UpdatePanels are used to postback a portion of your page. You are displaying a whole new page, so this doesn't apply to your situation.

I don't know how to call update() method from another page and from that info link which is also contained inside gridview and being dynamically generated in front of each record(row).
Can you please guide me regarding this?
thks
I think it'd be easier to move your update() method somewhere that both pages can access it (maybe a create a Utils class that has a public method that both can refer to).

-Frinny
Mar 20 '08 #5

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

Similar topics

4
by: Marek Mänd | last post by:
This seems an IE issue only: 4253 bytes testcase: http://www.hot.ee/idaliiga/testcases/ieselect/bnlinkingselectinmsie.htm Can one have 1) a mouseover/mouseout element on TBODY 2) change in...
5
by: Patrick De Ridder | last post by:
My program produces a number of overviews, for which I use different forms, which are displayed. These forms are displayed at certain positions on the screen. I don't want the user of the program...
3
by: Rock | last post by:
There used to be a way to stop the screen from doing that flicker when the page changes, does anyone know how to do that in asp.net?
6
by: Karl | last post by:
We are developing a series of financial calculators based on ASP.NET technologies. Here's our first one: http://www.pine-grove.com/web%20calculators/Loan.aspx When the user clicks "Calc",...
3
by: Per Dunberg | last post by:
Hi all, I have to develop a "skinned" application and I have a problem with the graphics. When a form is loaded and displayed there's aways a flicker where all the controls are located on the...
1
by: Wayne | last post by:
I've noticed some screen flicker when using Access 2003 under Vista and I'm curious as to whether this is a bug or peculiar to my machine. In design view, if I make changes to a form and then...
3
by: piers.allard | last post by:
I am looking for assistance with an issue I am gettting with an Access2k application. When I have xp style switched on, switching from screen to screen causes the first screen to resize to it's...
4
by: Frank Rizzo | last post by:
Hello, I inherited a large Winforms project that is suffering from excessive flicker when switching between portions of the application. I've noticed that most parts of the application (user...
0
by: Rainer Queck | last post by:
Hello NG, I had/have a bad flicker Problem with my Application. On starting some applications, while my app was running, the whole Display started to flicker. Even the desktop Icons! Looking...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.