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
相关问答:
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 ......
文件上传时怎样显示进度条 最好给个Demo 谢了~!
用Ajax吧,Ajax有例子
用 ajaxtoolkit 里面的代码,有例子
引用
用Ajax吧,Ajax有例子
顶
http://topic.csdn.net/u/20091010/23/4bb5017a-ac75- ......
正在学习这个东东 感觉很多地方不是很懂 正在努力 散点粉给asp.net的同仁们 求教好的学习资料 谢谢
参考
asp.net/mvc上有很多内容。
最近也在看。
同聊。
JF,3Q
比我有前途, 我至少目前 ......
在弹出框中点击一个按钮,怎么调转到另一个浏览器,并且在该浏览器打开两个页面
你的意思应该是
response.write("<script>alert('确认'); window.location.href('xxxx.aspx'); </script>"); ......
现在想一个事件来执行一个函数
这个事件是在每个用户访问网站时就会触发,但是在当前访问只能触发一次
我就是想做一个在线人数,当访问这个站时就触发,以后就不在触发了
除非关闭网站后,在打开 ......