postback

ASP.NET Variable issues.

I have some terribly written ASP.NET code that is just not working right (go figure). I'm charged with maintaining and bug fixing this code, but I can barely make head or high water of it Unfortunately I don't have the time to rewrite it. If someone could help this would be great: (the code): given to you here (some minimal obfusca...

Invalid postback or callback argument

This question seems to have been asked before, but I feel like my situation is slightly different. I have a page that contains a gridview. When a button is pressed to edit one of the records in the gridview, the button first executes some client script that pops up a modal window for the purposes of editing (set using .onClientClick)...

asp.net MVC handling dependencies between input controls?

I have an application that has two dependent dropdown lists, where if the user selects a value in list box A, it updates the available set of inputs in list box B. Such as make/model of a car. when the user selects the manufacturer, the list of models would update accordingly. In winforms, this would just be handled in the autopost back...

ASP.NET enter key and form submit with no javascript

I have a form that I want to submit when the user presses the enter key. It works fine in Firefox, but not in IE. It is basically the same issue as this, except that I am not allowed to use any JavaScript: http://stackoverflow.com/questions/270494/enter-button-does-not-submit-form-ie-only-asp-net Unfortunately it looks like ASP.NET uses...

GridView with ITemplate fields export to Excel

I have a GridView wich has some programmatically Template fields added to it on Page_Load and on every PostBack (because, for some reason, these fields loose their value on PostBack). It worked fine, so I didn't thought anymore about the PostBack issue. Now I'm trying to export that GridView to Excel. I'm using the following code: pro...

ASP.Net links won't disable if done during postback

I'm still fairly new to ASP.Net, so forgive me if this is a stupid question. On page load I'm displaying a progress meter after which I do a post back in order to handle the actual loading of the page. During the post back, based on certain criteria I'm disabling certain links on the page. However, the links won't disable. I notice...

Prevent Page Refresh in C#

Duplicate of Asp.Net Button Event on refresh fires again??? GUID? hello, ive a website and when a user click a button and the page postback, if the user refresh the Page or hit F5 the button method is called again. any one know some method to prevent page refresh with out redirect the page to the same page again ? something like if (p...

ASP.NET TreeView performance

What would be the advisable thing to do to maximize the performance while using TreeView? By maximize the performance, i mean minimize the number of trips between client to server, ie postbacks. Would that mean then, that most of my Business logic will sit in the Javascript? What would be the compromise here? I am talking about ASP.n...

.net server control performance compromise

We are finding that for a large sets of data server controls (with the amount of postbacks) they do often times result in a very slow performance. While we don't want to do all the business logic in Javascript, we would like to speed things up. What were your solutions/ideas? AJAX? ...

Modal problem with asp.net being programmed with vb.net

Hi, I have an ajax modal panel with a div on it that I access from the server and dynamically insert a table into, by showing the values of various controls on the calling form. My problem is this, it works fine if all my controls are doing auto postback, but it ruins the user experience, because tabbing through the controls, the contr...

User Control Postback

I am working on rendering a set of cart items using a user control. Each cart item can be removed via a button in the user control. When a cart item is removed I need to visually show it's removal. However, since the cart item existed during the loading of the page it remains until the page is refreshed again. What I am after is a means ...

ASP.NET Double-postbacks - the always-fun question

I know the general guidelines to double-postbacks, but this one is driving me nuts. It's a button onclick. C#. ASP.NET 2.0. And it's intermittently posting back twice when I click it in production. Can't replicate from staging, at least on the scale I've tried so far. The code hasn't changed since before it starting doing this, as far a...

asp.net postback with jquery?

Hi there, Can anyone help, I have a asp.net button but recently replaced it with a standard html button ... What i need to do is postback to an asp.net page and ensure a method is called the button before was an asp.net button so i had this event Protected Sub btnCancelar_Click(ByVal sender As Object, ByVal e As System.EventArgs) ...

__doPostback - calling code behind events from JavaScript?

I wish to call a method in my code behind from JavaScript, I sort of know how to do it.. I must call __DoPostBack passing name of control and parameters.. But what if an event doesn't exist i.e. NO CONTROL. Really what i am trying to do is call an event.. but the event doesn't exist as there is no control associated with it.. I sort of...

JQuery UI Dialog with Asp .NET button postback..

Hello ... I have a JQuery UI Dialog working great on my Asp .NET page: jQuery(function() { jQuery("#dialog").dialog({ draggable: true, resizable: true, show: 'Transfer', hide: 'Transfer', width: 320, autoOpen: false, minHeight: 10, minwidth: 10 }); }); jQuery(document).ready(function() { jQuery("#button_id").click(function(...

jquery needs to rebind events on partial page postback

Hi, How can I rebind my events (jquery) when I perform a partial page postback? I am wiring everything up using: $(document).ready(function(){}; After a partial page postback, my events are not firing. ...

What is the difference between Page.IsPostBack and Page.IsCallBack?

I've recently ran into some code that checks Page.IsCallBack but I wasn't sure how it is different from Page.IsPostBack. Can anyone enlighten me? Edit: Are they mutually exclusive or can both occur at the same time in a given situation? ...

Why do controls get populated with postback data twice - during LoadPostBack and during...

Hello, Controls are populated with postback data during LoadPostBack data Stage. If dynamic control is not created and added to control tree during OnInit stage, but later, then control won’t get populated with postback data, as evident by the following code, where Label1 will display an empty string: public partial class _Default ...

Client-side JS and ASP.NET Postback

I have some client-side JavaScript that sets form fields. When the page posts back, those fields are reset. Why is this? Aren't the field values captured and put in the ViewState when the postback occurs? EDIT: When I break the debugger on Page_Load(), before any code executes after the postback, the form field values are empty. ...

render javascript on partialpostback through ajax

Hi All, I have a grid on a page along with a tooltip for each cell created dynamically on dlDrivers_ItemDataBound event through javacsript. I have been using ajax on my page. When i visit the page for the first time, all the tooltips are working fine but when i perform some actions on the page and grid ispostback through ajax, but the j...