I am making a document viewer. I will be passed from 1 to 15 docs
I want a Next button to load the next document. I have the document numbers in an array
How can I move to the next doc when I click the Next button?
This is my class
This is my VB ASP.NET
Or what ever is easiest
A global variable odes not work? As in VB.NET
TIA
DougP, MCP, A+
I want a Next button to load the next document. I have the document numbers in an array
How can I move to the next doc when I click the Next button?
This is my class
Code:
Public Class Class1
Private mDocsArray(15) As String
Private DocNum1 As Integer
Public Sub New()
End Sub
Property ParseDocs() As String()
Get
Return mDocsArray
End Get
Set(ByVal Value() As String)
mDocsArray = Value
End Set
End Property
‘ I want to use this Property to store a number ? Or do I
Property Docnum()
Get
Return DocNum1
End Get
Set(ByVal Value)
DocNum1 = Value
End Set
End Property
End Class
This is my VB ASP.NET
Code:
Private Sub cmdNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdNext.Click
Dim DocName As String
Dim p As New Class1
Dim AllDocs(15) As String
p = CType(Session("p"), Class1)
AllDocs = p.ParseDocs
DocName = p.ParseDocs(p.Docnum) <<<< want this to be a variable that increments up one each time this Next button is clicked.
Me.lblFullDocName.Text = DocName + ".doc"
‘load doc
…..
End sub
Or what ever is easiest
A global variable odes not work? As in VB.NET
TIA
DougP, MCP, A+