是这样的,我在1.vb 定义一个类为Class1在类Class1中定义一个变量为Dim str as String 我在2.vb 中的Class2中能够取到str的值?谢谢!!!
问题是这样的,我定义的两个class如下:第一个class: Public Class topiframeaspx Inherits Page public str as string sub img_serverclick() str="1234 end sub end class第二个class如下: Public Class njframeaspx Inherits Page sub write() ''''''////能否取得str的值?比如说:response.write(?????) end sub end class 问题是我能否在第二个class中取得str的值??? 麻烦各位高手看看,本人对。net 刚入门。
public static str as string response.write (topiframeaspx.str)
<c# 高级编程 >
我在2.vb 中的Class2中能够取到str的值?谢谢!!!
Public Class topiframeaspx
Inherits Page public str as string sub img_serverclick()
str="1234
end sub
end class第二个class如下:
Public Class njframeaspx
Inherits Page sub write()
''''''////能否取得str的值?比如说:response.write(?????)
end sub
end class
问题是我能否在第二个class中取得str的值???
麻烦各位高手看看,本人对。net 刚入门。