postback

XML Postback issue

I have a script that is designed to parse XML postbacks from Ultracart, right now just dumps it into a MySQL table. The script works fine if I point it to a XML file on my localhost but using 'php://input' it doesn't seem to grabbing anything. My logs show apache returning 200 after the post so I have no idea what could be wrong or how t...

Problem with jquery #find on partial postback

I have a third party component. It is a calendar control. I have a clientside event on it which fires javascript to show a popup menu. I do everything client side so I can use MVC. dd function MouseDown(oDayView, oEvent, element) { try { e = oEvent.event; var rightClick = (e.button == 2); if...

How to prevent PostBack on the client side?

I have some validation JS code on client, that must be executed befor PostBack. If this validation code return 'false', postback is needless. How it can be disabled? ...

ASP.NET how to use __doPostBack from Custom JavaScript with Master/Content Pages

In a simple aspx page I can have a custom JavaScript function postback as described in http://www.xefteri.com/articles/show.cfm?id=18 The simple page uses a linkbutton: <asp:LinkButton id="CreateFile" runat="server" onclick="CreateFile_Click" /> with code behind that has the VB subroutine: Sub CreateFile_Click(ByVal sender As System....

How can I access the value of a checkbox without a postback?

I have a radgrid controlling access to an application for users. There are two columns, a 'name' column and a checkbox 'access' column representing their current access permission. the checkboxes are populated from a database. I would like the to change the checkboxes to grant or deny access to the users I specify. Since there are alot o...

Post back on user control in asp.net 1.1

Hi i have written bit of code for customePostback in 3.5 .net frame work using clientscript manager and postbackoption. But i now need to implement it in 1.1 and i can't get around it. Can any one of you guys will be able to help me. the code looks like this in VS 2008 If Not scripts.IsClientScriptBlockRegistered("customPostback") Then ...

Cant assign values to variable in a user control on ajax postback... or something like that!

Hi everyone, I have a simple user control which toggles between the visibility of a few images depending on the UserId. When the page is loaded for the first time, the userID is being assigned correctly (I'm debugging). However, there are two other buttons on the page for filtering the type of users, they are perform their functionality...

MVC Html.textbox/dropdown/whatever won't refresh on postback

OK, let's start with the Html.Textbox. It is supposed to contain text read from a file. The file read is based on what the user picks from a dropdown list. The first time it is fine. The user picks a value from the dropdown list. The controller uses that value to read some text from a file, and returns that text to the view via the view...

Check Page PostBack in Customized Server Control

I'm creating an extended combobox server control by extending normal combobox. Inside prerender event, i am binding it with some data. I have achieved this successfully. Now i want to check whether the page that contains this control has been post-backed or partially post-backed. In fact I want to stop other instances of the same contro...

Postback when session Expires in Ajax call

On one of my pages I have a div that uses ajax to load content asyncrohnously. When a session expires the user is supposed to be redirected back to the loggin screen. However, when the session expires and the ajax call is triggered the login page gets put inside the div. What I want is for the user to be redirected back to the login scre...

Jquery tab selection on asp.net postback

Hi, I have an asp.net page with some JQuery tabs. Everything works ok. I added a dropdownlist in one of the tabs, that causes a postback. After the postback I want the same tab to be selected. I initialize the tabs as: <script type="text/javascript"> $(document).ready(function() { var $myTabs = $(".tabsDiv").tabs(); </script>...

ViewState and client-side changes

I noticed that some controls (e.g. TextBox) keep their changes between postbacks even if the change is made by a client-side script while some others don't (e.g. ListBox). Can anyone explain me why? Is there any way to extend the first behavior to other controls? Thank you! ...

How to prevent a password input from clearing after submit?

Hello, If you have a page with an <asp:TextBox TextMode="Password" ... />. How can you keep the value after a postback? This is my problem: At the registration screen of my app you need to enter a password. Then you click submit, a postback occurs and the password fields are cleared, how can I prevent the password field from clearing?...

How can I persist the data from a repeater after postback?

I have a repeater that displays financial data and prices for various stocks. On this page, I also have an "export" button that needs to take the data ~on the screen~ and convert it into a CSV for the user. The problem is, after I databind my list of "Stock" entities: List<Stock> stocks = GetStocks() rptStockList.DataSource = stocks; ...

Redirect without post back

Hello All, I have a user registration form. Here I have link to another page (card info page) which has to be filled for the registration. User fills the few fields in the user registration form and click on the link that takes to card info page. When user clicks the link in card info page to navigate back to registration page, the prev...

How can I force the user to have at least one selected checkbox, and postback from client-side javascript?

Hi, here's my story: I have two checkboxes: cb1 and cb2. They are both hooked up to an onClick event which checks if at least one checkbox is clicked. If this is not the case, it throws an alert and reverts the change. If a legal change was made (e.g. cb2 was checked, followed by cb1 being unchecked), the function calls the server funct...

ASP.NET data binding on postback

Hi, Working on an ASP.NET 4.0 project, which uses user controls to dynamically generate a form based on definitions stored in the database. One form field would look like this: <usc:RefControl ID="ctrlUser1" ReferenceFieldId='product.user1' ValidationFormat="^\d+\.?\d{0,2}$" runat="server"/> Behind the scenes the contro...

Calling event with HiddenField in ASP.NET without scripts

Hello! Looks like the "asp:HiddenField" doesn't have an "AutoPostBack" property, and I'm having problems with the "OnValueChanged" event... I need to call a function (C#) when I populate the hidden field, but in my case nothing happens. And I cannot use any scripts. What could it be? =( Thank you by any response! ...

ASP.NET custom control: when is LoadPostData() called?

Hi all I have developed a custom control that extends ListBox. The idea is that the control 'remembers' modifications to its elements which occurred client-side, e.g. as a result of an AJAX request. The way it works is that the control also renders a hidden input, and the result of the AJAX request is stored in the hidden input. This ...

User control inside update panel causing full page postback

I have a user control with linkbuttons (used for paging) and a repeater inside an update panel. The paging works correctly, but is causing a full page postback every time I click through to the next page. The update panel looks like this: <asp:UpdatePanel ID="up1" runat="server" UpdateMode="Always"> <ContentTemplate> ...