Reputation: 121
How can i pass the value of two variables into a click event in my ASP.net forms application.
i have 2 varaibles:
DocNo & Prefix which i need the values of in the click event, i am new to this i know i obviously cannot use ByVal which is used further down the document,
here is my code block in which i need to pass the varaibles into,
If Settings.IsCountryMode("USA") Then
Script = "ShowPrintJobQuestionModal('" & Prefix & "', '" & DocNo & "', " & PrintDLG & ", " & Reprint & ", '" & ScrollBars & "');"
'Redriects to a page in a new separate window
'CreateOutput(AutoworkDocument.dt.job, Assign, AWDLineNo)
Else
General.RunJava(Me, General.OutputDoc("^", "", , , , , , False), "MultiDoc")
End If
RunJava(Script)
Upvotes: 0
Views: 126
Reputation: 121
Now resolved,
Dim awd As AutoworkDocument
awd = New AutoworkDocument()
awd.loadSes()
jobNo = awd.DocNum
If Settings.IsCountryMode("USA") Then
Script = "ShowPrintJobQuestionModal('" & Prefix & "', '" & jobNo & "', " & PrintDLG & ", " & Reprint & ", '" & ScrollBars & "');"
Else
General.RunJava(Me, General.OutputDoc("^", "", , , , , , False), "MultiDoc")
End If
RunJava(Script)
Upvotes: 1
Reputation: 1321
Unless I'm misunderstanding your question...
Set the variable as public in your other class/form and use it:
COtherClassName.DocNo
Upvotes: 1