Posted on: 5/6/2011 5:00:35 AM | Views : 222

Why would a control NOT databind when a control within it causes a postback?
Here's what I've got in the Load event of the page, but it is not working. The various .Databinds are there more for testing, but none of them are working.
Protected Sub Page_Load() Handles Me.Load Dim SQLStatement As String Dim WhereStatement As String = "" SQLStatement = "SELECT [ShowNumber],[NameLong],CASE WHEN isCEShow = 0 THEN '' WHEN isCEShow = 1 THEN 'CE' END AS CEFlag,[SharePointFolderName],[BranchNameLong],[BranchNameShort],[SharePointBasePath],[DescriptionLong],[ProductionMonth],[ProductionYear],[AccountingMonth],[AccountingYear],[ExhibitorMoveIn],[ShowOpen],[ShowClose],[ExhibitorClear],[isGeneralJobType] FROM [vw_ShowInformation_Dashboard_ShowGatewayControl]" WhereStatement = " WHERE ProductionMonth > 3 and ProductionYear > 2010 ORDER BY ProductionYear, ProductionMonth, ExhibitorMoveIn, ShowOpen, ShowCl ...

Go to the complete details ...