C# - Freez `<td>` At Time Of Scrolling A Page?
Feb 17, 2011I want the <td> to be Fixed/Frozen when page will be scrolling,
View 1 RepliesI want the <td> to be Fixed/Frozen when page will be scrolling,
View 1 RepliesSuppose I have a horizontally oriented ListView that always shows 4 items and also has a left & a right button: < A B C D >
Now, let's say I have a DataTable containing 20 entries, with indices ranging from 0 to 19.
When the page first loads, this is what'll be displayed: < 0 1 2 3 >
Assuming those buttons are regularly configured DataPage buttons then if I press the right one we'll get this: < 4 5 6 7 >
And if I press the right one again we'll get this: < 8 9 10 11 >
But suppose I'd like the left & right buttons to only scroll one at a time, so that pressing the right one at the start results in this: < 1 2 3 4 >
In such a case, is there a way to configure the DataPager to do this or should I instead introduce regular buttons and perhaps have them call a hidden DataPager?
I'm also looking for scrollable Grid with freezed header, which is working in IE8. In above solution fixed column width is used. Is it possible to have a such grid where grid width is changing together with page width (when changed)?
View 3 Replieswe have implemented the ajax drag and drop which is working fine on all browsers except for chrome, In chrome when i try to drag a module the page starts auto scrolling to the top of the page.
View 1 Repliesi have create an asp.net webapplication for which it has a master page with a 1280x1024 image as background,
so the whole application is within the 1280x1024 resolution, the thing is i tried to open the application from an ipad and when i am trying to scrolldown it shows me hell.it keeps pulling up....
i.e, when i try to scroll down, the page pulls up back again..I dont know whats causing this ...
I have a page with three tables, three charts and some other stuff. When I scroll up or down on the page it tries to jump to some other places, scrolling is not smooth. After a few minutes I also get this error popup: Error: Sys.WebForms.PageRequestManagerServerErrorException: The underlying connection was closed: An unexpected error occurred on a receive. The same behavior is noted on all pages with charts.
aspx page code:
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="AppMasterPage.master" CodeFile="ViewBG.aspx.cs" Inherits="ViewBG" %>
I'm quite new to mvc. We are using MVC 2.0 and there is a bug i need to fix.We have form to create new users on the create page i have for example
<ul class="settings_list">
<li class="settings_item settings_header">
<h5>
<%= Html.LabelFor(model => model.User.FirstName) %></h5>
</li>
<li class="settings_item settings_input">
<%= Html.TextBoxFor(model => model.User.FirstName)%></li>
<li class="settings_item settings_error">
[Code]....
How is a page kept where the user last clicked, instead of scrolling back to the top?
I have a page of controls, the user scrolls down to three dropdownlists to fill out, but when he clicks the first one, the page always scrolls back to the top, and he must scroll back down to the dropdownlists again.
I'm using an asp.net user control with a tree view. When I load the page I want to scrool the user control to the selected node in the tree view. I'm using js function .ScrollIntoView(true). But this is scrolling the entire page (not only what is inside the user control)
here's my code
[code]...
How can I keep the parent page scroll position but continue to set user controll position where I want?
I'm building an ASP.NET MVC site where I want one of the Views I return to be automatically scroll to a certain point.The part of the site where I want this to occur works sort of like a forum - there are "threads" that contain "posts". A user can either browse to the whole paginated thread or can browse to a specific post, using its ID. When a user browses to a specific post, I want to show the regular thread interface, then browse to the page that the post is on and scroll down to the post.
Is it possible to somehow automatically scroll down to a certain point when returning a View from an action in an ASP.NET MVC site? If so, how do I do this?NOTE: One solution to this problem that I've found is how Stack Overflow and the other Stack Exchange sites do it: each answer to a question can be linked to by adding #ID to the URL. If it's impossible to automatically scroll down when returning a View, I would implement this instead, but I don't understand how to use such an approach when there are multiple pages and the post in question isn't on the current page.UPDATE:Based on Chris' answer, I'm currently planning to implement it with the URL looking like this: example.com/forum/[ForumID]/thread/[ThreadID]/post/[PostID]#[PostID]. In my Action, I figure out what page of the Thread the Post is on, and then I return all the Posts from that page to the View.However, I noticed something special in how Stack Overflow solves this problem. Try going to: http://meta.stackoverflow.com/questions/57170 - it ends up sending you to http://meta.stackoverflow.com/questions/57155/gravatar-bugs-and-improvements-in-chat/57170#57170.
I have two grids on a page that seem to always be position:fixed.I want them to scroll with the page when an overflow scrollbar appears on the body. The grids however ALWAYS stay in the same place and don't scroll with the rest of the page content.Is there any way to get an UltraWebGrid to be relative and scroll up the page with the rest of the page's content?This seems to work in IE6 but not in IE8.
View 1 RepliesI am using gridview in my aspx page. In that i have placed questions and related link button with text viewAnswer.Bellow that gridview i have olaced a lable . When i click on viewanswer the answer apear on lable. but here i want that the user can view lable at first sight. for that how can i provide dynamic verticle scroll to my page target as lable..
View 1 RepliesI have developed a website in asp.net,c#. Its pages are not scrolling through arrow keys (Up/Down) in google chrome. They are working well in IE and firefix mozilla. I also have no problem in my admin control panel. Admin control pages are scrolling through arrow keys in google chrome, IE and firefox mozilla. What i should do to scroll my website pages through arrows keys in google chrome.
View 1 RepliesIs there a jQuery technique to select all the page controls/divs with a non-zero scrollbar position?
I'm trying to solve a problem faced by many; essentially after a partial asp.net postback all the controls/divs that had a scrollbar with a non-zero value (ie: were scrolled down to some position) are reset to the zero (top of the scrollbar).
My approach is to have a jQuery script save all the scrollbar positions for all the controls/divs contained on a page and after the postback, restore all the scroll bar positions.Is it possible, can it even work? If it is, how do I use jQuery to select all the divs with scrollbars and then save those positions.
Server Error in '/MedTegraSL.Web' Application.
Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
Description:
An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
Source Error:
[Code]....
Source File:
c:ProductiveTeamsMedTegraPresentationMedTegraSLMedTegraSL.WebMainMaster.Master Line: 16 Assembly Load Trace: The following information can be to determine why the assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' could not be loaded.
[Code]....
Stack Trace:
[Code]....
I have a series of collapsible panel extenders on my page and each time the page opens or postsback the panels open for a time and then close. Is there a way to prevent this?
View 4 RepliesI have developed an application in asp.net with crystal report. It has more than 30 pages in the project. Now I want to improve the performance of the application.1. What I need is , I want to know each and every page loading time and where actually it take long time to load while requesting the page.There are so many tools available. But am not able to follow as where actually the problem is and how to solve.
View 6 RepliesI thought that Page_Load events executed every time a page was loaded not just the first time. Am I wrong on this?
I have a Page_Load event that writes text to a label to display on the screen: Output.Text &= "Welcome to my Website <br />" (Output being the ID of a Label control)
I also have an On_Click event for a button to display the same information: Output.Text &= "Welcome to my Website <br />"
After clicking the button, I expected to see the output twice. Once for the page being reloaded and once for the click event. I thought that Page_Load events executed every time a page was loaded not just the first time.
I have read and referred your range slider and loading infinite images on scroll.The issue is when combining both the article the data is appending to old one.
View 1 RepliesI have an ASP.NET website that worked fine using and debugging in VS2008. I went through the upgrade process opening the solution in VS2010. I can run the site, but as I make changes in the app_code folder classes, they don't seem to commpile and warn me of compile-time errors. As soon as I get to a point that calls the class, the errors show up. Sounds JIT I guess, but this isn't how it was working in 08. Is there an option that was changed in the upgrade process? This is a large project, I really don't want to break something and not find out until some obscure page is opened.
View 1 Repliesi currently use the context.timestamp function to get the time in the beginning of the request but i want to know if i can check the time sooner in the pipeline (before the load page phase) or the timestamp is the earlier time i can get. now i need to find the latest time after the request was processed, of course i can check the time in the end of the function, but is there somewhere else where i can check the time of the request ending.
View 3 RepliesI have a web page which has about 11 gridviews.Hence the page takes bout 15 seconds to load.The grids are 1 below the other.They are populated at the page load.
I need a solution to reduce page load time. Is there a way,where the gridview loads only if user scrolls to it. I donot want the user to make selection for everytime he wishes to see a gridview. The page should show gridview if its data is bound to it, not waiting for entire page gridviews to get populated.
My web application has hosted on the canada server but my all clients are indians.So, as I am using System.datetime.Now to store all the dates in application.Obviously, it is displaying the canadian time instead of india time.How can i do it?Is there not any gloabl settings that we can do in our web.config file so that it indicates to the server at run time which time zone to execute..?Or any other suitable alternate?
View 3 RepliesI have web application where i want to show pdf files in web page. in my page there are 5 pdf files i have to show at a time.it's taking much time to load page. and also user has to wait until all files are loaded in page.is there any free components to show pdf files.
View 3 RepliesI am having a change password page in that when the user change his password and click on submit i will show a message and will redirect to main form. But the text which i like to display is not displaying. What i need is i would like to have the page in the same form for few amount of time and then redirect to the desired one.
<script type="text/javascript">function LoadPage()
{
var v =setTimeout("MovePage()",5000); //will call the MovePage() function after 5 seconds
}
function MovePage()
{
location.href='/FedData/newRoutingNumbervalidator.aspx';
}
</script>