Web Forms :: Page Is Shaking By Each Callback, Scrollbar Effect?
Jun 25, 2010
When the page is loading i have the problem, that the Page shakes a little to the right and then to the left. That´s maybe because of a scrollbar effect in the browser.
I tried to fix a vertical scrollbar, but it does not work.
Take a look at the site: [URL]
There the pages in progress are available. When you hit the Navigation bar, the Page reload is shaking.
When user cliick on the control before page fully loaded it goes to error page.
Following is the trace.
Execution Error
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
I am developing a project which has a master page and content page.In my content page I was using a gridview query from database with image display as an image button, when user click on the image in the gridview it will trigged a lightbox through Javascript. I follow the tutorial from the link in the following link [URL]
Everything works great when its on a stand alone page , however, as soon as I put the GridView in my content page then click on the image from the image button in the GridView I will be resulting the following error. Server Error in '/Photo_Master' Application. Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page nableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Here is my code, I noticed OnClientClick = "return LoadDiv(this.src);" in the following image button will return false to prevent postback, however, it will only work if this is a stand alone page but not in the content page that links to a master page. I had tried the following approaches, but none of them works.
1.) EnableEventValidation = "false" --- Page is not going to break at least but No Lightbox pop up.
2.) Added PostBackURL ="javascript:Void(0);" as the properties of <asp:imagebutton> in the GridView - Did not work.
*PS - I had tried to put my lightbox pop up page on either master or content page tried different ways , however, nothing works. My goal is to have the PhotoGallery display in GridView where image display as an ASP.net imagebutton control under the content page, when user click on the imagebutton the lightbox effect will show.
I've done my research about how will i save the selectednode in treeview and scrollbar state after page navigation but i can't find any solution. Is there a way or alternative way on how to do this?
Is 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.
I have an asp.net page. I'm using a jquery library to open a modal window on link click. Within this modal window I'm loading another page. After i make update within this modal window I need to send a callback to "Parent" page. if I call function from this window I'm getting the error it couldn't find function. Window.opener.functionname also not working.
In asp.net is it a requirement to rebuild the whole page during every callback? For example my web page is split into three distinct areas and I have an update panel for each area. Lets say I want to update the third area, do I have to bother with any processing of the other two areas?
For example lets say there is a grid view in area two. The update panel in area three callbacks to update its content. Do I have to rebind the grid in area two?
I have a web forms page with a button that involkes a __doPostBack callback to the page. I would like to invoke this manually - by "manually" I mean from outside the webpage, for example by using wget.
I have a following issue (it's only happening in Internet Explorer).
I add callback to a page in the old-fashioned way -> Page.ClientScript.RegisterClientScriptBlock(...)
The scenario is: 1) The default page is being loaded. On Page_OnLoad it assigns a NULL to some session key. Let's call it Control -> Session["Control"] = null;
2) User presses a button and gets redirected to a next page (let's call it NextPage.aspx) using javascript event -> window.location.assign(....) (also tried .href = ... - no help)
3) The NextPage.aspx assigns some value to Session["Control"] on Page_OnLoad
5) User clicks a button on the NextPage.aspx and a callback request is being sent to a server....
TA DA!!! The interesting part:
6) Along with the request to the NextPage.aspx another request is being sent to the default page.
7) The only response is being recieved by a client is a response from the NextPage.aspx BUT since the code on the default page is being executed it puts null to the Session["Control"] which screws all my following scenario. the default page doesn't recognize the request as a callback? so if(IsCallback) {} doesn't help....
I believe it's not a code issue since as I wrote above it works in development environment,but I have no clue what can 'cause it to fail in production and only in IE...
At least what to start to look at... and I have Helicon's ISAPI Rewrite installed on the production server. It doesn't seem to be the cause but who knows....
Correction
if I do not assign window.location and just add a link to the NextPage.aspx and click it manualy after callback ended it still sends extra request to the default page. if I click the link before I initialize callback it works fine without extra request.
I got a masterpage, in that i got login control and that page has height="800px" and i should not change the height but i need to remove the scroller to that page.
Looking to implement a solution on a web application but don't know if it is possible. If clicked the menu would take you to the full page with slide(Left to right / right to left). slide looks like iPhone Application.
I have a listview with multiple records inside a div whose overflow property has been set to enable scrollbars. Now I have another search panel in which If i click on a particular item the corresponding item in the listview gets selected. But the problem is that the item gets selected but the user cannot view it if its way down on the list.I also want the scrollbar to move in order to let the user show the selected item.
I've been researching an issue for quiet some time, but most of the posts I'm reading are older. I'm trying to figure out if there is a new solution to getting an asp:dropdownlist vertical scrollbar. I have several dropdownlists with fixed widths, but the data that populates these dropdownlist do not fit inside the width. Is there a recent - acceptable workaround or solution? I'm using Visual Studion 2010.
Due to which it adds a horizontal scrollbar to my controls. Now i have a checkox inside this with autopostback property enabled due to which whenever i checked it, my sroll position changes which makes a difficult task for user to enter data. Is there any way to maintain the horizontal-position of scrollbar om autopostback? although i have tried maintainscrollposition=true in page tag but doesnot work for horizontal scroll position
I have a gridview and its contains 16 column. I would like to use the scrollbar in the gridview with Freezing first two columns and use the scrollbar to show remaining data..