Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

listbox postback

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Petruszak - 29 Oct 2004 22:43 GMT
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)
Cor Ligthert - 30 Oct 2004 08:44 GMT
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/default.asp?url=/library/en-us/cpref/html/frlr
fsystemwebuiwebcontrolslistcontrolclassautopostbacktopic.asp


I hope this helps?

Cor
Mark Petruszak - 30 Oct 2004 21:55 GMT
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

> Mark,
>
[quoted text clipped - 6 lines]
>
> Cor
Cor Ligthert - 31 Oct 2004 09:24 GMT
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_Spam}petro66@yahoo.com>

> No, it's not that simple Cor.  Autopostback is set to true.  In fact, when
> I
[quoted text clipped - 22 lines]
>>
>> Cor
Mark Petruszak - 31 Oct 2004 20:09 GMT
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

> Mark,
>
[quoted text clipped - 36 lines]
> >>
> >> Cor

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.