![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
From: "Trapulo" <trapulo2 (AT) noemail (DOT) noemail Subject: strange behavor on production Date: Thu, 3 Jan 2008 18:41:59 +0100 I've an aspx page that works well in development, but has strange behavor in production. Basically, the page hides or shows some webccontrols based on an http GET parameter. this is my simple page_load event hanlder: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Me.IsPostBack AndAlso Not Me.ScriptManager1.IsInAsyncPostBack Then If Not String.IsNullOrEmpty(Request.QueryString("mode")) AndAlso Request.QueryString("mode").ToLower = "add" Then Me.dvPerson.ChangeMode(DetailsViewMode.Insert) UpdateContainersVisibility() End If End If end sub and this is the called function: Private Sub UpdateContainersVisibility() Dim upContactsPrevVisibleState As Boolean = Me.upContacts.Visible Select Case Me.dvPerson.CurrentMode Case DetailsViewMode.Edit Me.panelContacts.Visible = False panelMemberships.visible = False panelclubMemberships.visible = False panelAssignments.Visible = False panelStreetDetails.Visible = False Case DetailsViewMode.Insert Me.panelContacts.Visible = False panelMemberships.visible = False panelclubMemberships.visible = False panelAssignments.visible = False panelStreetDetails.Visible = False Case DetailsViewMode.ReadOnly Me.panelContacts.Visible = True panelMemberships.Visible = True panelclubMemberships.Visible = True panelAssignments.Visible = True panelStreetDetails.Visible = True End Select ' -- trasmetto gli aggiornamenti ai pannelli coinvolti If Not upContactsPrevVisibleState = upContacts.Visible Then upContacts.Update() End Sub panelXX is a standard asp.net panel control upcontacts is an updatepanel that contains some controls. What I see is that when I call the page with the ?mode=add param, in development server is all ok, but in production I can see every control that may be hidden. What can be? thanks |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |