postback

Does the ListBox SelectedIndexChanged event require postback in ASP.NET?

I'm trying to add a JavaScript function to show all selected items from a ListBox as concatentated strings in a Label on the page. It's needed because AutoPostBack="true" will cause the ListBox to scroll all the way back to the first selected item. So this code works: <script type="text/javascript"> function Updatelist() { ...

Carriage Return (ASCII chr 13) is missing from textbox postback values when used within an ASP.NET Update panel

I have an ASP.NET TextBox with TextMode = TextBoxMode.MultiLine that is used within an AJAX Update Panel. The .Text value has been pre-set to a value that has multiple lines. When using Chrome(7.0.517.41) or Firefox(3.6.11) working with the controls posted back value on the server the carriage return is lost if the user hasn't edited th...

Securing a payment gateway POST

I'm setting up a payment gateway on our site that we can post information to via php (so all information is hidden from prying eyes) which will post to authorize.net, post back to our gateway and post back to our current page. The purpose for this is to give us a streamlined method of processing payments and easier debugging. I have an...

php session not saving after $_post

Hi I am experiencing issues with session where if i put the following code on a page the counter will increment by one every time i reload the page. session_start(); if(isset($_SESSION['views'])) $_SESSION['views'] = $_SESSION['views']+ 1; else $_SESSION['views'] = 1; if i put the above code in an if statement where it on...

How to handle the loss of controls on post back?

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Data.SqlTypes; using System.Data; if the execution of the code is allowed at post back, then for each post back extra column are created. yes i know the ro...

advancing to button code-behind when validation fails... how to solve it without Page.IsValid?

Hello! I have an ASP .NET page with both asp .net validators and some javascript checking too. I am advancing into the button code behind: protected void Button2_Click(object sender, EventArgs e) { if (Page.IsValid) { /// ... Even when the validation fails! The Page.IsValid check solves it, but it also ...

ASP.NET Button Click Event Won't Fire After User Downloads File

Hello. I've got a page that has a button control and several links to download files. The links for the file downloads point to a generic handler, since these files are secured and they will only be returned if the user is logged in. If I load the page and click the button without doing anything else it works fine, and the event fires. ...

dynamically generated form how to actually save entered data

hi there i have a form that is generated dynamically. the plan is to generate it, the user to enter data, and then to save all that lot away. although a slight variation to this is if the form has previous data associated with it, and then it loads in all pre-populated. - the user may then change any previous selections. and that is th...

Encountering Error when doing post-back using __doPostBack()

Hi, I am getting an error on javascript when doing post back. The code is as follows: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/...

change cursor to busy while page is loading

I understand how to use javascript to change the cursor to busy while the page is making and ajax call. However I have a page that does not use ajax, it uses a postback to reload the page. However the load is rather data intensive and it takes a few seconds. During this time the user can still click on the page. I want to turn the curs...