C#中刷新按钮的代码
来源:百度知道 编辑:UC知道 时间:2024/06/25 02:46:07
有两种方法
一、
在刷新按钮的事件中重新执行一遍 Page_Load()中的代码
二、
<html>
<head>
<style type="text/css">
.zxrslbstyle
{
background-color:#ffffff;
FONT-SIZE: 12px; color: blue;
border-left:medium none;
border-top:medium none;
border-right:medium none;
border-bottom:medium none;
}
</style>
</head>
<body>
<input type="button" class="zxrslbstyle" value="刷新页面" onclick="ReloadButton()">
<script type="text/javascript">
function ReloadButton()
{
location.href="Zxrs.aspx";
}
</script>
</body>
<html>
有关java的问题,这里都有很详细的讲解,你可以参考一下,方法有很多
参考资料:求一段C#重置按钮的代码
C#代码,点击按钮
C#中一点按钮就弹出“拨号连接”的代码是什么啊?
求带暂停按钮的ASP网页自动刷新代码
刷新按钮的作用
在做网页中添加一个按钮,功能是刷新本页面。代码怎么写?
C#中换行的代码是什么?
C#中代码问题?
如何在.net c#代码 增加按钮的onmouseover鼠标移动上去的事件?
winform c#中的单选按钮不能为空的代码???