asp.net - DropDownList Losing DataSource on Postback on live site only -


i have dotnetnuke web page uses asp.net controls , vb.net code. on page load retrieve dataset includes of users work orders. dataset used fill asp:datagrid. retrieve datasets fill combo boxes include retail accounts user, service type, order status, , retail locations. on selectedindexchange of these dropdownlists, create/modify datagridfilter modify display results of grid. store complete work order dataset session variable.

in development environment, running on local host , works expected. when code released live site, page loads expected calling selectedindexchange event each of dropdownlists datasource set , bound. when user makes selection of dropdownlists, datasource of dropdownlists appears lost. not occur in development environment. database on live , developmental side appear have same structure , data.

 private sub page_load(byval sender system.object, byval e system.eventargs) handles mybase.load         dim dsstatus dataset         dim dschangestatus dataset          if ispostback             if not session.item("workordersds") nothing                 m_dsworkorders = ctype(session.item("workordersds"), dataset)             end if              if not viewstate("datagridfilter") nothing                 m_datagridfilter = viewstate("datagridfilter").tostring             end if         else             ddaccount.datatextfield = "namecity"             ddaccount.datavaluefield = "accountid"             loadretailaccounts()             loadlocations(cint(me.ddaccount.selectedvalue))             dgworkorders.attributes("sortexpression") = "lastupdated_dt"             dgworkorders.attributes("sortasc") = "desc"              dsstatus = m_dl.runspgetds("prc_gsi_csworkorder_status_s")             ddstatus                 .datatextfield = "status_vc"                 .datavaluefield = "status_id"                 .datasource = dsstatus                 .databind()             end             library.gsi.library.controlhelp.createblankfirstitem(ddstatus, "all except withdrawn", "-1")             library.gsi.library.controlhelp.createblankfirstitem(ddstatus, "all", "0")              dschangestatus = m_dl.runspgetds("prc_gsi_csworkorder_status_s_canchange")             ddchangestatus                 .datatextfield = "status_vc"                 .datavaluefield = "status_id"                 .datasource = dschangestatus                 .databind()             end              if me.ddaccount.selecteditem.tostring.substring(0, 1) = "*"                 createorgchartfilter()             else                 createfilter()             end if             getworkorderslist()             loadservicetypes()             binddatagrid()         end if     end sub      missing might different in live , development code? 


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -