I have an .aspx file with the .aspx.vb code behind page that is working just fine in Visual Studio 2010 but not in production.
Most disturbing is that the Page_Load (non PostBack) is only working with some of the lines. Here is the code from Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim Shortages_Filter As String = ""
If Not IsPostBack Then
' The next four lines work in localhost, but don't work in production
Alert_Label.Text = "Not Postback"
Shortages_Filter += "(num_Short_Qty > 0) "
ddl_Shortages_List.Items.Insert(0, New ListItem("Shortages List Filter", "1=1"))
ddl_Shortages_List.Items.Insert(1, New ListItem("Show Shortages List", Shortages_Filter))
' The next six lines work in both environments
Pref_DataSource.FilterParameters.Add("User_Name_Param", Replace(System.Web.HttpContext.Current.Request.ServerVariables("LOGON_USER"), "BOUMATIC\", ""))
Pref_DataSource.FilterParameters.Add("Current_Page_Param", Me.Page.Title)
Common_Functions.Add_Date_Filters(ddl_Order_Date, "dat_Order_Date", "Order Date")
Common_Functions.Add_Date_Filters(ddl_Request_Date, "dat_Request_Date", "Request Date")
Order_Search.Text = Request.QueryString("Order_Num")
Part_Num_Search.Text = Request.QueryString("Part_Num")
Else
End If
Any thoughts?
Rob