AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 reduce the refresh or jerk effect on a aspx page.
Posted by Bhaskaran Srinivasan on  1/19/2009 5:36:13 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend
i am working with visual studio 2008 and using C# code for developing aspx pages.
The appearence of my page is like this:

I have a drop down ,a textbox ,a radio button list , a command button and a gridview.

I am also using a Java script for edit or delete operation when a grid view row is clicked. for adding a new entry I use a modal popup extender.

My problem is The refreshing effect on this page is high.Can u help me to reduce the refreshing effect or the jerk created when any action is performed on the page ...
I have to use autopostback feature ... but any similar substitutes for autopostback that reduces refresh is welcome.

thank you in advance.

Post Your Reply Post New Question

 Viewer's Reply
reduce the refresh or jerk effect on a aspx page.
Answered By Kunwar on 3/4/2009 5:12:55 AM
you can do this in IE for FireFox you will have to make use of Div.

For Internet Explorer use
<head>
<meta content="blendTrans(Duration=0.9)" http-equiv="Page-enter"/>
<meta content="blendTrans(Duration=0.9)" http-equiv="Page-exit"/>
</head>

For FireFox
function opacity(id, opacStart, opacEnd, millisec) {
//speed for each frame
var speed = Math.round(millisec / 100);
var timer = 0;

//determine the direction for the blending, if start and end are the same nothing happens
if(opacStart > opacEnd) {
for(i = opacStart; i >= opacEnd; i--) {
setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
timer++;
}
} else if(opacStart < opacEnd) {
for(i = opacStart; i <= opacEnd; i++)
{
setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
timer++;
}
}
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
var object = document.getElementById(id).style;
object.opacity = (opacity / 100);
object.MozOpacity = (opacity / 100);
object.KhtmlOpacity = (opacity / 100);
object.filter = "alpha(opacity=" + opacity + ")";
}

From:-Kunwar
http://KpratapS.blogspot.com
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Easing the Migration to Microsoft SQL Server 2005
When Good HTML Goes Bad: How You Can Protect Your Web Applications
Washington Technology