protected void Button1_Click(object sender, EventArgs e)
{
this.Test_FileDownload(1);
this.Button1.Visible = false;
}上边的代码 测试后 button 还是可见的。。达不到要求
{
this.Test_FileDownload(1);
this.Button1.Visible = false;
}上边的代码 测试后 button 还是可见的。。达不到要求
解决方案 »
- ASP.NET TreeView控件使用中的问题
- 关于SessionId问题,请高手指教
- 为什么我在App_Code文件夹下的类引用会出问题呢?
- 关于XML的问题,求助~~~!
- Visual Studio2005创建的网站发布后,数据库文件一会被发布到哪里去呢?
- 让字段绑定到table的一个单元格
- 为什么有参数没有给定值?
- 求DATALIST中的DROPDOWNLIST的SELECTEDINDEXCHANGED 事件处理方法 !
- 发生System.StackOverflowException原因有哪些?
- 将程序发布到web服务器,出现错误修改怎莫办
- DropDownList問題
- 高手帮帮忙,着急!!!!!!!!!
this.Test_FileDownload(1); 会弹出文件下载窗体。我刚才测试了。如果屏蔽 this.Test_FileDownload(1); 是可以达到按钮不可见的。。只要弹出下载窗体,就不行有什么方法?
this.Button1.Visible = false;
protected void Button1_Click(object sender, EventArgs e)
{
this.Button1.Visible = false; this.Test_FileDownload(1);
}
{
this.Button1.Visible = false; this.Test_FileDownload(1);
}
这样还是不行吗?
<asp:Button id="button1" runat="sevrer" OnClientClick="this.style.display:none">
{
if(!IsPostBack) {
Button1.Attributes.Add("onclick", "Button1.style.display='none';");
}
}