rt,代码如下:
Imports System
Imports System.Web
Imports System.Web.UI Namespace MySpace Public Class My
Inherits System.Web.UI.Page Protected Button As System.Web.UI.WebControls.Button Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Show = "ABC"
End Sub Public Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Write(Show) End Sub Public Property Show() As String
Get
Return "CHINA"
End Get
Set
Show = value
End Set
End Property
End Class
End Namespace
现我对 Show = "ABC"进行操作时,就出错:发生类型为 System.StackOverflowException 的异常。 请问如何解决?请大家指点.
Imports System
Imports System.Web
Imports System.Web.UI Namespace MySpace Public Class My
Inherits System.Web.UI.Page Protected Button As System.Web.UI.WebControls.Button Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Show = "ABC"
End Sub Public Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Write(Show) End Sub Public Property Show() As String
Get
Return "CHINA"
End Get
Set
Show = value
End Set
End Property
End Class
End Namespace
现我对 Show = "ABC"进行操作时,就出错:发生类型为 System.StackOverflowException 的异常。 请问如何解决?请大家指点.
解决方案 »
- 图片上传后显示为jpg,图片另存为时为png
- 关于CONFIRM的框功能
- aspx页面有一url,带中文参数.如:abc.aspx?id=测试
- 怎么使"<div>"显示到dropdownlist或listbox 的前面?
- asp.net iis7 怎么写.htaccess文件
- 请问如何给FooterTemplate中的DropDownList绑定数据
- 做了个网页,做的时候用服务器用localhost,改为http://192.168.148.86/的时候就调试不了,怎么帮,救我
- asp.net 学习 从什么地方开始
- 这个问题也有点难度,高手请进,如何在DataGrid里同时显示超链接和非超链接的信息呢?
- 用asp.net怎么实现动网论坛那样的分类管理功能.急
- 招聘精英
- 求MagicAjax.dll,急用!那位好心人能发个给我,收到马上给分,谢谢了
Show = value
End Set这个Show又回到了他本身,死循环
return _showend get
set
_show = value
[email protected]
cpp2017(慕白兄) ,那以下的代码为什么不用新建变量也是可行的呢?
Public Property PageSize() As Integer
Get
Return Me.DataGrid1.PageSize
End Get
Set
PageSize = value
End Set
End Property