如何将两个变量的值传递到 ASP.net 表单应用程序中的单击事件中。
我有2个变量:
我需要在点击事件中使用其值的 DocNo 和前缀,我对此很陌生,我知道我显然不能使用在文档中进一步使用的 ByVal,
这是我的代码块,我需要将变量传递到其中,
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)
最佳答案
除非我误解了你的问题...
在其他类/表单中将变量设置为公共(public)变量并使用它:
COtherClassName.DocNo
关于javascript - 在单击事件上传递来自不同页面的变量值 (VB.net),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24305167/