davesil2 Posted November 25, 2003 Posted November 25, 2003 I'm having a problem with my asp.net code. I have a function call to fill several drop down lists with hours (ie. 12:00AM, 12:15AM, 12:30...). I have it filling correctly and I can get the index to change. However, when the index changes it reloads the form and that resets the indexes since I set the indexes in the fill form code. I want to calculate the time and keep the current indexes when the index is updated.timecard.zip Quote
Travis Posted November 25, 2003 Posted November 25, 2003 You will need to place the code that fills your selector between If Not Page.IsPostBack Then End If Anything between this will only run when the page is loaded and not when you make a selection of press a button which causes a "PostBack". Quote
shahdan Posted November 26, 2003 Posted November 26, 2003 fill the list only once u shld use the filling inside the following code form_load() { If (!IsPostbsck) { drop down list filling code; } } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.