Discussion:
呼叫另一asxp
(时间太久无法回复)
unknown
2006-04-20 00:59:01 UTC
Permalink
如果是以下的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
........
......
....
璉璉
2006-04-20 02:14:01 UTC
Permalink
œÐ°ÑŠÒ¡G
http://www.microsoft.com/taiwan/msdn/columns/mvp/aspxcode.htm
©ó news:535218FE-4489-4209-A18B-00B21663955E%40microsoft.com µoªí
ŠpªG¬O¥H€UªºFunction
<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
.........
.......
.....
--
€ô®ü¬ì§Þšt²Î¬ãµoÅçÃÒ€u§@«Ç ASP.NET Web News Reader 0.2.0 UTF-8 Beta
·s»Džs²Õ RSSºô»xµo¥¬ŽúžÕ€€ http://tlcheng.no-ip.com/News/rss2.aspx
ºô¯žŠa¹Ï http://tlcheng.no-ip.com/wwwmap.htm
¬y°ìšŸ¬x/°Ï°ì€ôžê·œ/®}ª@ºô/ªŽºÀ¹Ï/»y­µ³q°T €å³¹»Pµ{Š¡
Basic/Fortran/Windows API/.Net/»²§U»¡©úÀÉ ­ì©lœX¡B€å³¹»P°Qœ×
--
ASPNET News http://tlcheng.no-ip.com/News/ | http://tlcheng.twbbs.org/News/
RSS 2.0 http://tlcheng.no-ip.com/News/rss2.aspx?Action=List&Newsgroup=microsoft.public.tw.dotnet.framework.aspnet
Loading...