Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Funky Drop Down LIst Box Bug (Possibly)

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Hey guys, tell me what you make of this code. What its doing is checkign to see if my page is accessed for the first time, or if its a postback. If it is accessed for the first time, fill a drop down listbox. Otherwise, just leave it as is. Problem is: even if it jumps the function call, it STILL re-loads the listbox, but it just ADDS duplicate contents to the end! Any thoughts?

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
FillListBox()
End If
End Sub

Thanks,

Jack
 
*Sigh* Nevermind.

Note to self: check first to see if you have any OTHER funtions that all the FillListBox and if they fire due to events (like say, oh, clicking on the list box)

silly, silly me...
:p

Thanks anyways guys,

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top