unknown
2006-04-20 00:59:01 UTC
如果是以下的Function
test獨立到另一test.aspx,那在此aspx上要怎麼呼叫test.asxp並讓ttt可以得到function中的temp傳回值?
<script runat="server">
Function test(ByVal J As String) As String
Dim temp As String = "aaaaa"
Return temp
End Function
Public Sub Page_Load(Source As Object, E As EventArgs)
dim ttt As String
ttt = test("eee")
label99.text = ttt
........
......
....
test獨立到另一test.aspx,那在此aspx上要怎麼呼叫test.asxp並讓ttt可以得到function中的temp傳回值?
<script runat="server">
Function test(ByVal J As String) As String
Dim temp As String = "aaaaa"
Return temp
End Function
Public Sub Page_Load(Source As Object, E As EventArgs)
dim ttt As String
ttt = test("eee")
label99.text = ttt
........
......
....