vb.net - Posting Panels Twice (Understanding pre-init) -


i have page dynamically builds group of panels based on sql call.

here example of trying accomplish.

when page first loaded several panels dynamically built. lets there 1 panel each state: ca, nj, fl, etc.

if user clicks on 1 of panels (ie. 1 of states) sql call made , brings list of cities within state. page dynamically builds panels time listing cities within state clicked. when user clicks on of cities calls sql , find of schools listed in city , displays them in panels (again 1 school per panel).

what's happening

when states loaded display fine. though when user clicks particular state page reloads , displays of states , of cities after listing of states instead of listing cities.

the proper cities being listed sql call working.

solution

i know several things.

  1. viewstate remembering panels created , loading them or
  2. when step through code it's loading both states , cities.
  3. dynamic controls handed during pre-init stage of life-cycle.

question

how can solve problem? didn't post relevant code because there decent amount of sift though. if parts of needed / wanted ask , can edit post.

i have searched though microsoft's documentation , please don't post links unless issue.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -