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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

button click causing page refresh

Status
Not open for further replies.

NTSGuru

Programmer
Jul 25, 2000
52
I am using a DTC button in my asp which is supposed to grab the selected item in a listbox. the listbox is dynamically populated every time the page is refreshed. my problem is that when I click the button, it refreshes the page BEFORE it executes the code in my button_onclick routine. therefore the listbox always gets set to the first item in the list, and I can't retrieve the value that I want. is there any way to force the page NOT to refresh when the DTC button is clicked?

TIA
Fred
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top