MaintainScrollPositionOnPostback Is Not Working - How To Debug

Dec 15, 2010

I inherited some web shop project (asp.net 3.5, web forms, visual studio 2008 pro). On one page I have MaintainScrollPositionOnPostback set to true. When shopping cart (user control loaded in master page) is empty, then asp.net is not generating javascript code required for scroll position. When I add some items to the cart, then everything works fine.

how to find part of the code which is responsible for this issue? I don't have an access to the 3rd party profilers.

View 1 Replies


Similar Messages:

Web Forms :: MaintainScrollPositionOnPostback Not Working With Dynamic Data?

Jan 31, 2011

I have a page with GridView, one of templates of which is ascx page used like Field Template. This ascx page has a button to add some data to page, but by pressing this button "MaintainScrollPositionOnPostback" not working with main page.

Tried rather much from web, but still no result.

View 1 Replies

Forms Data Controls :: MaintainScrollPositionOnPostback Not Working For All Pages?

Nov 30, 2010

I set the MaintainScrollPositionOnPostback="true" control in the .aspx page code and for one of the pages, it works great. But in the second page, it doesn't work at all. The two pages are nearly identical in code, with just the addition of some more textboxes on the second page, at the bottom of the page. Both pages have virtually identical code above the <html> tag, with the exception of the values assigned to the "CodeFile" and "Inherits" controls in the <Page> tag, to correspond with each page's VB codebehind.

Both pages have two buttons at the bottom. The first page has a button for submitting a new record and a second button for clearing the fields. The second page has a button for updating an existing record and a second button for inserting a new record (for revision control). Both pages submit data to Oracle database tables. I've been trying to figure this out for the last several hours, searching this forum and Google, but so far I've come up with nothing. I can't figure out why the MaintainScrollPositionOnPostback won't work on the second page, but is fine on the first.

View 1 Replies

Web Forms :: Master Page Inside MaintainScrollPositionOnPostBack="true" Is Not Working

Feb 16, 2010

I have master page and i am using maintainScrollPositionOnPostBack="true"

but it is not working.

View 2 Replies

Asynchronous C# Method Calls In Page Working On Debug, But Not Working On Live Site

Jan 25, 2011

OK Here is the situation:

I have a web app with a table of statistics on our salesmen's customers, and each row has a sparkline graph showing the general trend of the sales data for the last 12 months. Each page shows a particular salesman's customer list, and some of them can have an enormous number of customers = an enormous number of rows = an enormous number of sparklines (e.g. one in particular has 125 and takes 15 seconds to load).

For this reason, jQuery sparklines could not be used - they completely pinned the CPU of a user accessing a page with a lot of sparklines with IE.

So I moved on to using the Google Chart API, which worked much better, except for two issues: 1) it's on a secure site, and the Google Chart API URL is only served over HTTP (solved by using a small wrapper script to download the graph dynamically and re-serve it from our secure server); and 2) on a page with 125 sparklines, it was still very slow due to the number of requests (even when the 0-9 server prefixes are used to maximize the # of available connections).

So my next step beyond this was to try to make each of the "download/grab/re-serve image" method calls asynchronous - and it worked!

...but only on my dev box running in debug mode.

When I pushed it up to the live site, it was faster, but it left some of the images unloaded, which is of course unacceptable.

So here is what I was hoping some SO hotshot would know:

1) Why are my asynchronous method calls working while debugging, but not working on the live site?

2) Is there any easier way to get a large number of sparklines of some sort to load quickly on a secure server without making me want to tear my hair out?

2a.) Does anyone have any experience using the ASP.NET Chart Library? Is this something I should investigate?

2b.) A co-worker suggested I make my own sparkline routine using a 1x1 CSS background image and varying the height. The problems are a) it is completely un-extensible in case we want to make changes; b) it seems hacky as hell (leaves about a bajillion DIVs per sparkline in the markup); and c) I have no idea if it will be fast enough when there are 100-200 of them on one page - what are your thoughts on the feasibility of the 1x1 sprite approach?

View 2 Replies

AJAX :: Unable To Debug / Debug EditPanel.debug.js File Of HTML Editor?

Apr 13, 2010

I want to debug EditPanel.debug.js file of HTML Editor, but it never shows in VS 08 and Im sure it executes to that line.What I did to enable debuggingUnchecked both 2 checkboxes for disabling the debugging

Set ScriptMode="Debug"

Change following line

[ClientScriptResource("AjaxControlToolkit.HTMLEditor.EditPanel", "AjaxControlToolkit.HTMLEditor.EditPanel.js")]
to
[ClientScriptResource("AjaxControlToolkit.HTMLEditor.EditPanel", "AjaxControlToolkit.HTMLEditor.EditPanel.debug.js")]

View 3 Replies

Webmatrix And Nopcommerce Debug Not Working?

Sep 15, 2010

I installed Web Matrix and then installed the NopCommerce site from the web gallery. I set a break point in the default.aspx page_load but when I try to debug it skips the break point because it says "~no symbols loaded..."

When I pressed play button initially it asked if I wanted to enable debugging and I answered yes.

View 2 Replies

Visual Studio :: CSS Not Working In IE Through Debug Mode?

Apr 19, 2010

Im using Visual Studio 2010 in Windows 7.

I got a problem regarding CSS in my pages. I managed to apply styles to my page using css and everything looks fine in the Design view. I ran it on IE8 and everything is working fine. Now after I returned to Visual Studio, added some rules to my CSS, and noticing that everything is working fine in the Design view, I ran it again in IE8 and nothing has changed. The rules I added was ignored and it looks the same. I ran it on Firefox and Google Chrome and it's working fine.

But if I ran my project in IE8 through IIS7.5, everything is working fine so it means, the problem is within visual studio 2010.

View 1 Replies

Configuration :: Debug Not Working In Login Form?

Jul 22, 2010

I'm starting a new web site which involves a Novell/LDAP login to enter. Just installed VS2008, using framework 2.0, configured web.config to use authentication using form login.aspx which is the LDAP form we reuse from app to app. Debug is enabled, in form and in VS options. I'm running with localhost web server. Problem is debug doesn't work in the login form, does not stop at breakpoints I put in page_load event. Tried to bypass the login form to make sure, turns out debug will work on some startup form I made but does not when I redirect to login form. It seems VS2008 does not like something in my login form.

View 3 Replies

Javascript - AJAX Enabled Controls Are Working - Debug When Necessary?

Mar 2, 2011

I use AJAX controls a lot - AJAX update panels, AJAX-enabled grids, etc. (mostly from Infragistics), and most of the time, things work great. But sometimes they don't, and I have no idea where to start with debugging etc. The AJAX part of it is a black box (seemingly), and I really don't like that. I want to know enough about AJAX and javascript such that I have confidence to work with these controls instead of just praying that they work. I want to be able to debug them, and also have confidence that I am using them properly (because I don't feel I can possibly use them really properly and appropriately if I don't know what they are doing). What do I need to know to get this comfort? Where can I learn about this? How should I go about tackling learning about this?

View 3 Replies

Repeater Control And MaintainScrollPositionOnPostback

Jul 27, 2011

I have a repeater control and everything works great except. . . Every time the form does a post back, which is often, it scrolls to the top (Grrrr). Unfortunately (and apparently) MaintainScrollPositionOnPostback="true" has no affect on the repeater control. I looked on-line and as is customary in .NET there are plenty of "work-around" solutions plenty of which look promising, none of which I could get to work. The most promising solution involved an UpdatePanel and some JavaScript, but that didn't work because it required a second ScriptManager (you can only have one) and I needed the other for my date picker extension. So all I want is the page to stay where it is on callback (I just hate dealing with irate users).Here is the ASP for the repeater:

Code:
<asp:Repeater ID="Repeater1" runat="server" >
<HeaderTemplate>
<table class="formTbl" border="0" cellspacing="2px">
<colgroup>
<col width="75px" />
<col width="75px" />
<col width="50px" />

[code]...

Note: the reason CalculateFootage() is a separate function is because I also call it in the Page_On_Load

View 10 Replies

Visual Studio 2010, WebForms Routing Not Working In IDE Debug Mode - Getting 404

Oct 26, 2010

I am using Visual Studio 2010 and ASP.NET 4.0 to build a WebForms project that uses the new routing features in System.Web.Routing. When I build my solution and run it from within VS.NET's debugging environment only routes with RouteUrl's that include a ".aspx" extension are being properly routed to the PhysicalFile. It appears requests made to other URLs are not being "detected" by the routing engine for processing. In the case below, "Scenario1" shows a 404 and "Scenario2" works properly.

Here is the relevant code in my global.asax:

[code]....

View 1 Replies

Web Forms :: Page.MaintainScrollPositionOnPostBack Does Not Work?

Aug 20, 2010

I have a content form based on a MasterPage. Within this form I have a custom, collapsible control which inherits from HtmlContainerControl. One of the controls I use is a DropDownList which has AutoPostBack enabled.

I need to maintain the current scroll position across postbacks so I have set the MaintainScrollPostionOnPostBack property to true within the web.config file. Unfortunately, this doesn't seem to work as the position is not maintained and there is no extra javascript present in the code when I view the source.

This content form does also contain some AJAX controls for date selection (CalendarExtender).

View 5 Replies

MaintainScrollPositionOnPostBack Error : Stack Overflow At Line 0?

Mar 15, 2010

I have used a MaintainScrollPositionOnPostBack = true function in 2.0 but is giving a stack overflow at line 0 error. What is the fix to this. I understand that it is a bug in IE.

View 2 Replies

Forms Data Controls :: Nested RadioButtonList, And Inconsistency Between Debug And Run Without Debug

Feb 23, 2010

On my web form, I have a RadioButtonList nested within a ListView as follows:

Nested RadioButtonList, and Inconsistency between Debug and Run without Debug

View 2 Replies

Visual Studio :: Debug-Start Debugging/Debug-StartWithoutDebugging OR Project Configuration Launches Dream?

Jan 3, 2010

Debug-Start Debugging/Debug-StartWithoutDebugging OR Project ASP.Net Configuration launches Dreamweaver. It started lastnight, I had both Deamweaver and VWD 2008 express open at the same time - (I was looking at JQuery in the Microsoft and Dreamweaver enviroments simultaniously). After the first tie this happened, I closed down Dreamweaver (CS3) and it opened when I tried to run my VWD project. I reinstalled VWD 2008 express, IIS and disabled Dreamweaver (renamed the exe). Dreamweaver still came up.

View 4 Replies

Visual Studio :: Break Points Not Working In "Debug" Mode?

Mar 5, 2010

I'm running ASP.NET on Visual Studio 2005, and I am not able to step through my break points when I run my application in "Debug" mode. I set the break points, run the application, and Visual Studio simply ignores them.I have gone through all of the configuration settings and project properties to see if their is something obvious that needs to be turned "on" - but I don't see anything.What would be the most logical settings or references to look at?

View 7 Replies

System.diagnostics And System.Debug Not Working From Page Method

Feb 1, 2010

We have a Page Method on a web page using ASP .Net. We tried to put in a trace statement using both System.Diagnostics and System.Diagnostics.Debug. In Visual Studio 2008, the break point is not even hit for the line, but other break points on other lines are hit.There is no output from either method that we can see.

There is also a Global.asax error catcher that works fine in other cases, but in the Page Method is not being catched.why a Page Method and System.Diagnostics do not play well together?

View 1 Replies

Web Forms :: Chrome/Safari Problems W/ MaintainScrollPositionOnPostback="True"

Jun 23, 2010

Does anyone know why MaintainScrollPositionOnPostback="True" works in IE, Firefox, and Opera .. but, not in Chrome or Safari?

View 1 Replies

How To Debug Web Application

Dec 6, 2010

In Many Interview they have asked me that.

How would u debug web application in .net?

I Say the using F10, F11 but this is not the correct answer.

View 3 Replies

How To Debug UrlRewriter.NET

Mar 12, 2010

can i register a debug logger that outputs information to the 'standard ASP.NET debug window'. My problem is I don't know what that means, if it means the debug output window in Visual Studio (where you see build output, debug output and more) I am not seeing any UrlRewriter debug output. The rules are working (mostly) I just want to get more debug output to fix issues. I added the register call to the rewriter section like this:

<rewriter>
<register logger="Intelligencia.UrlRewriter.Logging.DebugLogger, Intelligencia.UrlRewriter" />
....
</rewriter>

I am hosting this website locally in IIS on Vista, to debug it I attach the debugger to the w3wp process. Other selected parts from the web.config"

<compilation debug="true">
<assemblies>
...
</assemblies>
</compilation>
<trace enabled="true"/>

Where should I see the debug output from UrlRewriter.NET? If it is in the Visual Studio debug output window, any ideas why I am not seeing it there?

View 2 Replies

Debug A New Class In VS.Net?

Jun 4, 2010

What are the steps to debug a new class in VS.Net?

View 4 Replies

Debug A VB.NET WebMethod?

Jan 21, 2011

I have an ASP.NET C# project consuming webservices and WebMethods are wrote in VB.NET with source code on a local IIS server. The WebMethod returns null, and I want to debug it to know why I get this.

if I set a breakpoint just before the webmethod call, I cant step into this webmethod.

So, how is the correct way to debug this webmethod?

View 2 Replies

.net - How Can I Debug A Session?

May 2, 2010

I have been asked to work of a very large web application and deploy it. The problem that I'm facing here is that when I deploy the application and more that 1 user logs into the system, the sessions seem to cross over i.e: Person A logs in and works on the site, all good. When person B logs in, person A will then be logged in as person B as well.

I have been asked to work of a very large web application and deploy it. The problem that I'm facing here is that when I deploy the application and more that 1 user logs into the system, the sessions seem to cross over i.e: Person A logs in and works on the site, all good. When person B logs in, person A will then be logged in as person B as well.

If anyone has experienced this behaviour before and can steer me in the right direction, that would be first prize, Second prize would be to show me how I can debug this situation so that I can find out where the problem is and fix it.Some information about the application. From what I've been told and what I've seen within the app is that it started as a .Net 1.1 application and got upgraded to .Net 2 and that's why the log in system was done the way it is. (The application is huge and now complete and that's why I cant rewrite the whole user authentication process, it will just take to long and I don't know what effect it might have)

All the Logged in User information is stored in properties that have been added in the Global.asax.vb file. (could this be the problem?)

View 3 Replies

Debug Application - Relatively Slow

Apr 23, 2010

why is it that when i debug my application in chrome it is relatively slow between postbacks compared to internet explorer? when i use internet explorer, its lightning fast.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved