易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net(vb)问题

login.aspx.vb:

    Public ReadOnly Property nameT() As String
        Get
            Return TextBox1.Text
        End Get
    End Property


    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Server.Transfer("webTop.aspx")
    End Sub


webTop.aspx.vb:

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim w As Login
        w = CType(Context.Handler, Login)  <------运行到这里报错

    End Sub


错误提示:
        无法将类型为“ASP.login_aspx”的对象强制转换为类型“System.Web.UI.WebControls.Login”。



按楼上的写法不报错了
但也取不到nameT的值

我是按照下面的代码写的
但总是报错

-------------------------------------------------------------------------------
使用Server.Transfer方法把流程从当前页面引导到另一个页面中,新的页面使用前一个页面的应答流,所以这个方法是完全面象对象的,简洁有效。

a.aspx的VB.NET代码

Public ReadOnly Property Name() As String
    Get


相关问答:

为什么C写DLL文件C、PB能调用VB不能调用

为什么C写的DLL文件C、PB能调用VB不能调用?
VB里为什么有的DLL直接通过引用可以使用?有的需要通过declare申明外部函数?这些DLL有什么差别?

1、为什么PB能通过DECLARE声明而VB不行?
2、如果这个dll中的 ......

asp.net分页问题

select top 12 * from Product where [id] not in (select top 12 [id] from Product)
这样可以分页,但是我在后面想加个条件
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......

asp.net 线程的问题? - .NET技术 / ASP.NET

前段时间碰到一道面试题如下:
test.aspx页面有如下代码:
 Response.Write(Test.GetDate());
Test类如下:
public class Test
{
  static string dt="";
  public static s ......

帮忙推荐一本ASP.NET的书,谢谢!

比较好的学习asp.net的书推荐一下吧,谢谢~~~
書的話等高人推薦, 我認為多上上www.asp.net對你幫助挺大, 那里有很多視頻, 如果是新手的話, 視& ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号