我利用视觉演播室开发了一个网站。 后者使用积极指数,从一页到下页。
当用户点击下一个纽顿时,它将进一步削减指数。 根据增益值,下页已升值。
第1页的数值有所下降(A、B、C、D)。
通常,网站浏览方式如下:
页: 1->page2-->Page3->Page4等。
但是,如果将“B”价值放在第1页的倒数箱中,造成以下流动。
页: 1->page2-->Page4
但是,问题在于......网站是奇怪的。 流动情况如下。
Page1-->page2-->Page3-->Page4 instead of 页: 1->page2-->Page4 for that particular value selection (value "B") in drop down selection.
这个问题正在出现,用户在最后一页再次使用 back子进入前线,然后使用“next”进入最后一页。 (造成这一问题的多种因素)
这里需要两点:
- Why it is occurring?
- How to prevent this
我已提出以下准则:
事先得到帮助
Protected Sub btn_view1_back_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btn_view1_back.Click, btn_view2_back.Click, btn_view3_back.Click
Try
Dim currentView As Int16
currentView = mvRequestorForm.ActiveViewIndex
If currentView = 3 And BSelected() = 1 Then
mvRequestorForm.ActiveViewIndex = (currentView - 2)
Else
mvRequestorForm.ActiveViewIndex = (currentView - 1)
End If
If mvRequestorForm.ActiveViewIndex = 1 Then
If (ddl_view0_WULValue() = 0) Then
C
CSelected() = 1
strRoleType = "chkBx_C_workunit"
ElseIf (ddl_view0_WULValue() = 1) Then
head office
ASelected() = 1
strRoleType = "chkBx_A_workunit"
ElseIf (ddl_view0_WULValue() = 2) Then
B
BSelected() = 1
strRoleType = "chkBx_B_workunit"
ElseIf (ddl_view0_WULValue() = 3) Then
B
BSelected() = 1
strRoleType = "chkBx_B_workunit"
End If
End If
Catch ex As Exception
End Try
End Sub
《下顿法典》如下:
Protected Sub btn_View0_Next_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btn_View0_Next.Click, btn_View1_Next.Click, btn_view2_Next.Click
Try
Dim currentView As Int16
currentView = mvRequestorForm.ActiveViewIndex
If currentView = 1 And BSelected = 1 Then
mvRequestorForm.ActiveViewIndex = (currentView + 2)
rfv_view2_managersEmail.Enabled = True
rev_view2_managersEmail.Enabled = True
Else
mvRequestorForm.ActiveViewIndex = (currentView + 1)
End If
If mvRequestorForm.ActiveViewIndex = 1 Then
Sub_ActivateView1()
End If
Catch ex As Exception
End Try
End Sub