postback

radio button loses value on postback

Hi I have a set of radio buttons for "yes" and "no" values which have a name="choice". "yes" is checked by default. They're both runat="server". I read the choice on postback like below. It works perfectly fine as long as the validation doesn't fail. For example, if I select "no" and validation fails on postback, I still see "no" se...

ASP.NET - FileUpload with PostBack Trigger

I have an UpdatePanel which has an upload control and a button to upload. The button is set as a trigger, but the event handler for the button fails to execute on the first PostBack. My ASPX code is: <asp:UpdatePanel ID="updPages" runat="server" UpdateMode="Conditional"> <ContentTemplate> <div class="tabs"> <ul...

ASP.net UpdatePanel - Works first time then fails

I have a simple update panel that contains an ASP DataList. It shows a list of documents and their approval status. Here is some sample markup <asp:UpdatePanel ID="upDocuments" runat="server" UpdateMode="Always"> <ContentTemplate> <asp:DataList ID="dlDocuments" runat="server" RepeatLayout="Table"> <HeaderTempla...

Has form post behavior changed in modern browsers? (or How are double clicks handled by the browser)

Background: We are in the process of writing a registration/payment page, and our philosophy was to code all validation and error checking on the server side first, and then add client side validation as a second step (un-obstructive jQuery). We wanted to disable double clicks server side, so we wrote some locking, thread-safe code to h...

Run javascript after form submission in update panel?

This is driving me crazy! I have read at least 5 questions on here closely related to my problem, and probably 5 or so more pages just from googling. I just don't get it. I am trying to have a jqueryui dialog come up after a user fills out a form saying 'registration submitted' and then redirecting to another page, but I cannot for the ...

How to bypass onSubmit Form validation in ASPX page

Hi, i have a form on a particular ASPX page that has custom js validation. Also on this form is a navigation menu in the header. The navigation menu items are built programatically and are initiated by __doPostBack calls which obviously submits the form. The problem i am having is that the form itself has code something like the follow...

How to trigger a postback using JQuery Droppable plugin ?

Hi, This is my script for the draggable and droppable <script type="text/javascript"> $(function() { $(".Source li").draggable({ appendTo: "body", helper: "clone", revert: "invalid" }); $(".Destination ").droppable({ activeClass: "ui-state-default", ...

ajax "loading" icon with UpdatePanel postbacks

I have a form that is being dynamically built depending on user selection using Ajax (built in .NET Ajax with UpdatePanel). how can I insert a "standard" ajax loading icon (maybe have it attached to the mouse pointer) while the postback is happening then remove it when the post back is finished? I do have the AjaxToolKit installed if t...

JSF: initial request and postback request?

Please take a look at this below line of code in JSF <h:inputText id="name" value="#{customer.name}" /> Quote from java.sun.com For an initial request of the page containing this tag, the JavaServer Faces implementation evaluates the #{customer.name} expression during the render response phase of the lifecycle. During this phase, the...

i have many div in my aspx page. how to update the content of a particular div?

I have many div in my aspx page. how to update the content of a particular div? It should update every one minute time interval.. with out reloading entire page.. ...

GridView doesn't remember state between postbacks

Hi, I have a simple ASP page with databound grid (bound to an object source). The grid is within the page of a wizard and has a 'select' checkbox for each row. In one stage of the wizard, I bind the GridView: protected void Wizard1_NextButtonClick(object sender, WizardNavigationEventArgs e) { ... // Bind and display matche...

run the script only once?

being new to php and coming from asp.net, i would like to know if there is an equivalent of IsPostBack, which calls a function or a method only once, once the user is logged in. i have a facebook application, in which once the user authorizes the application it should enter his details in the database. this basic stuff should have been...

List box values on postback

Hi, I am using asp.net mvc. I have used two list box in one of my views. I transfer desired items from left-hand-side list box to right-side list box. On a button click, i want to get the list box contents from right side list box. I don;t get in form collection. Can anyone please suggest how can I get it? thanks, kapil ...

maintainscrollpositiononpostback not working with firefox

I am using VS 2008. I like the feature maintainscrollpositiononpostback. It works fine with IE 8. But it does not work consistently with Firefox. Sometimes, instead the line I click on goes to the bottom of the page. The field I am trying to refresh is with a div tag with overflow set to auto. Also I have several update panels with updat...

TabContainer paging using javascript and update panels

Hello, I am trying to create a Ajax Toolkit TabContainer which has Previous and Next links on each tab. I have added update panels to each tab container in an attempt to get from one tab to the next without postback. With the code show below, a page reload is NOT being fired as I click tab headers (GOOD), but it IS being fired when I cl...

Why this button doesn't cause triple postback?

We have developed a page with a asp.net and debugging it accidentally we have discovered on our page button with the next code on onclik attribute onclick="__doPostBack('ctl00$FormPlace$m_userTaskMarkAsUnreadButton',''); __doPostBack('ctl00$FormPlace$m_userTaskMarkAsUnreadButton','');WebForm_DoPostBackWithOptions(new WebForm_PostBackOpt...

Textbox OnTextChanged and Button Click Event Not Firing

I have textboxes being generated by a repeater that use OnTextChanged with autopostback enabled so that I can know when when the values change. This all works perfect. The problem starts when I try to click on any buttons on the page. The loss of focus triggers the event for the OnTextChanged; however, the event for my buttons never get...

Why is post() not updating the DOM after it returns? Wierd timing problem observed.

Hi all, I have the following code that is really bugging me, I'm thinking perhaps the post() function needs to be blocking. I am new to jQuery(latest version) and AJAX, but I'm using ColdFusion which returns some HTML in the data variable. var dataResult; var statusResult; $.post('fh_result.cfm',$('#myform').serialize(),function(data,...

Using YUI, how do I assemble the request using a RecordSet and submit a form to the server?

Could you please provide me a simple example for assembling the request and sending to the server using the RecordSet? If someone knows how,please post it here. Also how do I handle the form post-back, any ideas? Thanks!! ...

How to stop Telerik RadWindow from always reloading on the next PostBack

I am invoking a RadWindow as a dialog in my web page. I am invoking from code-behind since I need to pass some parameters: radWindow1.NavigateUrl = url + "?England,Germany,France"; radWindow1.VisibleOnPageLoad = true; This works great, however it keeps reloading on each and every postback. How can I stop the RadWindow from reloading...