在我们有提交按钮的页面上,单击它时由于 m_strPageDefinition 具有空值而出现错误。以下是它的代码以获得更多洞察力。只有有时且仅在生产中我们才获得m_strPageDefinition
as的价值null
,这会导致问题。有谁知道为什么m_strPageDefinition
会来null
。
Private m_strPageDefinition As String
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
If (Not Context.Items("MyXmlString") = Nothing) And (Not Context.Items("mFormID") = Nothing) Then
MyXMLString = Context.Items("MyXmlString")
MyHiddenXMLString.Value = MyXMLString
End If
Else
m_strPageDefinition = MyHiddenXMLString.Value
End If
End Sub
Private Property MyXMLString()
Get
Return m_strPageDefinition
End Get
Set(ByVal value)
m_strPageDefinition = value
End Set
End Property