Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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".

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...