473,385 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

listbox postback

What types of things could short-circuit a listbox postback once the process
has begun?

I appreciate any help that you may provide.

-Mark
(alias the Zakman, at times)
Nov 21 '05 #1
4 1091
Mark,

I saw some messages from you, I hope that the answer is not as easy as
setting in the autopostback property from the listbox to true?

http://msdn.microsoft.com/library/de...tbacktopic.asp

I hope this helps?

Cor
Nov 21 '05 #2
No, it's not that simple Cor. Autopostback is set to true. In fact, when I
click on a list item, the autopostback process starts, but never finishes.
Code stops executing after the page_load event. The code inside the
SelectedIndex_Changed event never fires.

Note that this is the second time this has happened to me with this
application. Thinking that something was wrong with the first solution, I
created a new one. Before adding a project or a new class to the second
solution, I made sure that they worked separately before adding them.

It just shouldn't stop where it's stopping.

Warm regards,
Mark
"Cor Ligthert" wrote:
Mark,

I saw some messages from you, I hope that the answer is not as easy as
setting in the autopostback property from the listbox to true?

http://msdn.microsoft.com/library/de...tbacktopic.asp

I hope this helps?

Cor

Nov 21 '05 #3
Mark,

Are you sure that the handler is still attached to the event in your code.

You will not be the first one, who deletes a control from a form (and with
that the handler) and get this result when he dragged back a new control on
the form which gets the same name, however does not set the handler again.

I hope this helps?

Cor

"Mark Petruszak" <mark[No*************@yahoo.com>
No, it's not that simple Cor. Autopostback is set to true. In fact, when
I
click on a list item, the autopostback process starts, but never finishes.
Code stops executing after the page_load event. The code inside the
SelectedIndex_Changed event never fires.

Note that this is the second time this has happened to me with this
application. Thinking that something was wrong with the first solution, I
created a new one. Before adding a project or a new class to the second
solution, I made sure that they worked separately before adding them.

It just shouldn't stop where it's stopping.

Warm regards,
Mark
"Cor Ligthert" wrote:
Mark,

I saw some messages from you, I hope that the answer is not as easy as
setting in the autopostback property from the listbox to true?

http://msdn.microsoft.com/library/de...tbacktopic.asp

I hope this helps?

Cor

Nov 21 '05 #4
Note the following:
Private Sub lboServerList_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
lboServerList.SelectedIndexChanged

Cor, I appreciate your time. Thank you for looking at this but it seems
that something has gone wrong and the only recourse may to reinstall VS2003
or redesign my solution. I'm not sure that will help, though, as the listbox
works fine in other applications.

Thank you again,
Mark

"Cor Ligthert" wrote:
Mark,

Are you sure that the handler is still attached to the event in your code.

You will not be the first one, who deletes a control from a form (and with
that the handler) and get this result when he dragged back a new control on
the form which gets the same name, however does not set the handler again.

I hope this helps?

Cor

"Mark Petruszak" <mark[No*************@yahoo.com>
No, it's not that simple Cor. Autopostback is set to true. In fact, when
I
click on a list item, the autopostback process starts, but never finishes.
Code stops executing after the page_load event. The code inside the
SelectedIndex_Changed event never fires.

Note that this is the second time this has happened to me with this
application. Thinking that something was wrong with the first solution, I
created a new one. Before adding a project or a new class to the second
solution, I made sure that they worked separately before adding them.

It just shouldn't stop where it's stopping.

Warm regards,
Mark
"Cor Ligthert" wrote:
Mark,

I saw some messages from you, I hope that the answer is not as easy as
setting in the autopostback property from the listbox to true?

http://msdn.microsoft.com/library/de...tbacktopic.asp

I hope this helps?

Cor


Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Irene | last post by:
I'm developing a Web application where a user selects from a listbox which can have many items. The initial display only shows about 10 items. After a postback, the listbox is automatically...
1
by: chambersdon | last post by:
I have created a Web Custom Control that inherits from WebControls.ListBox but can't get it to retain the selectedIndex after a postback. As a test I created a very simple version of the control...
6
by: Valerian John | last post by:
I have a ListBox webcontrol on an aspx page. Items are added to the ListBox using client-side code. However, when the page is posted back the items are missing/not available. (It is like the...
8
by: Steve Schroeder | last post by:
For some reason I cannot get the OnSelectedIndexChanged event to fire for a listbox I have on a page. I'm able to populate the listbox with data from a stored procedure, but cannot trigger the...
10
by: Adam Clauss | last post by:
I have a page containing a list box. This list may contain duplicate items - in which the ORDER is important. ex: a b b a is significant as compared to: b
9
by: zdrakec | last post by:
Hello all: Clearly, I'm not getting it! Here is the scenario: On a web page, I have two list boxen and a text box. The first listbox is populated at page load time (if it is not a postback)....
7
by: Lit | last post by:
Hi, How can I capture the vertical scroll bar position for a Listbox. I have a Listbox of 100 items + when I click on it I post back remove the item selected. After returning to the client...
1
by: divya | last post by:
Hello, I used the below code to move selected items between two listboxes Left and Right:- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestPopup.aspx.cs" Inherits="TestPopup" %> ...
0
by: Mel | last post by:
On Oct 23, 8:30 am, bruce barker <nos...@nospam.comwrote: Huh? Did you mean Listbox not DropDownList? The drop-down is working fine, it's the Listbox data that gets cleared after the drop-down...
15
by: Doogie | last post by:
I have a .net app that a user currently enters a number in a text box, hits a button and a data call is executed. She wants the ability to enter in multiple numbers (up to 100). So to make...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.