使用OnClick隐藏表 [英] Hide Table with OnClick

查看:57
本文介绍了使用OnClick隐藏表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新手在ASP.NET上


我想隐藏一个Table with和OnClick事件。你是怎样做的?我不是在创建表格时显示ID的
,所以如何告诉它隐藏它?

有没有办法在表格中添加ID?如果是这样,你怎么隐藏它。请

以类似于标签的格式给我(label1.visible =

False)


谢谢提前


Phil

Newbie here on ASP.NET

I want to hide a Table with and OnClick event. How do you do that? I''m not
showing an ID when I create a table so how do I tell it to hide it? Is
there a way to add an ID to a table? If so, how do you hide it. Please
give it to me in a format like you would for a Label (label1.visible =
False)

Thanks in advance

Phil

推荐答案

< script runat =" server" language =" C#">


protected void Button1_Click(object sender,EventArgs e)

{

table1.Visibile = false;

}


< / script>


< table id =" table1" runat =" server">< / table>

< asp:button id =" Button1" RUNAT = QUOT;服务器"的onclick = QUOT;&的button1_Click QUOT; />


Phillip Vong写道:
<script runat="server" language="C#">

protected void Button1_Click(object sender, EventArgs e)
{
table1.Visibile = false;
}

</script>

<table id="table1" runat="server"></table>
<asp:button id="Button1" runat="server" onclick="Button1_Click" />

Phillip Vong wrote:

新手来自ASP.NET


我想隐藏一个Table with和OnClick事件。你是怎样做的?我不是在创建表格时显示ID的
,所以如何告诉它隐藏它?

有没有办法在表格中添加ID?如果是这样,你怎么隐藏它。请

以类似于标签的格式给我(label1.visible =

False)


谢谢提前


Phil
Newbie here on ASP.NET

I want to hide a Table with and OnClick event. How do you do that? I''m not
showing an ID when I create a table so how do I tell it to hide it? Is
there a way to add an ID to a table? If so, how do you hide it. Please
give it to me in a format like you would for a Label (label1.visible =
False)

Thanks in advance

Phil





" Phillip Vong" ; < phillip_vong * at * yahoo * dot * comwrote in message

news:ub ************** @ TK2MSFTNGP03.phx.gbl ...


"Phillip Vong" <phillip_vong*at*yahoo*dot*comwrote in message
news:ub**************@TK2MSFTNGP03.phx.gbl...

新手在ASP.NET上


我想隐藏一个Table with和OnClick事件。你是怎样做的?我在创建表时没有显示ID,所以我怎么告诉它隐藏它?

有没有办法在表中添加ID ?如果是这样,你怎么隐藏它。

请以类似于标签的格式给我一个

(label1.visible = False)
Newbie here on ASP.NET

I want to hide a Table with and OnClick event. How do you do that? I''m
not showing an ID when I create a table so how do I tell it to hide it?
Is there a way to add an ID to a table? If so, how do you hide it.
Please give it to me in a format like you would for a Label
(label1.visible = False)



如果您想通过服务器端点击事件来执行此操作,请执行以下操作:


< table id = table1 runat = server>


然后就这样做:

table1.visible = false


If you want to do it with a server side click event go with:

<table id=table1 runat=server>

then just do:
table1.visible = false



或者你的意思是什么时候点击桌子?


Aemca写道:
or do you mean when the table itself is clicked?


Aemca wrote:

" Phillip疯" < phillip_vong * at * yahoo * dot * comwrote in message

news:ub ************** @ TK2MSFTNGP03.phx.gbl ...
"Phillip Vong" <phillip_vong*at*yahoo*dot*comwrote in message
news:ub**************@TK2MSFTNGP03.phx.gbl...

新手在ASP.NET上


我想隐藏一个Table with和OnClick事件。你是怎样做的?我在创建表时没有显示ID,所以我怎么告诉它隐藏它?

有没有办法在表中添加ID ?如果是这样,你怎么隐藏它。

请以类似于标签的格式给我一个

(label1.visible = False)
Newbie here on ASP.NET

I want to hide a Table with and OnClick event. How do you do that? I''m
not showing an ID when I create a table so how do I tell it to hide it?
Is there a way to add an ID to a table? If so, how do you hide it.
Please give it to me in a format like you would for a Label
(label1.visible = False)



如果您想通过服务器端点击事件来执行此操作,请执行以下操作:


< table id = table1 runat = server>


然后就这样做:

table1.visible = false


If you want to do it with a server side click event go with:

<table id=table1 runat=server>

then just do:
table1.visible = false


这篇关于使用OnClick隐藏表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆