I have two pages, main page and popup page. On main page, users can either manually entering the start date and end date or selecting the date form popup calendar, then click the search button, it pops up a page which displays a report. The problem is if the users re-select the date form calendar, it doesn’t display the new selected date range on the report until clicking the search button twice. It works fine for manually entering the date range. I noticed it calls popup page load first, then back to main page load, it happens every time except the first time clicking the search button. Anyone can help? Many thanks!
If Not Page.IsPostBack Then
ButtonSearch.Attributes.Add("onClick", " MM_openBrWindow('DesktopModules/test/testreport.aspx?alias=" & PortalSettings.PortalAlias.ToString & "','triggers','toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=yes,menubar=no, location=No,resizable=yes,titlebar=no, width=800,height=545')")
End If