点击按钮1显示图片A,再次点击就会隐藏A. 点击按钮2显示...
1个回答
展开全部
protected void Button1_Click1(object sender, EventArgs e)
{
if (Image1.Visible = false)
{
Image1.Visible = true;
}
else
{
Image1.Visible = false;
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Image2.Visible = true;
}
protected void Button3_Click(object sender, EventArgs e)
{
Image3.Visible = false;
}
{
if (Image1.Visible = false)
{
Image1.Visible = true;
}
else
{
Image1.Visible = false;
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Image2.Visible = true;
}
protected void Button3_Click(object sender, EventArgs e)
{
Image3.Visible = false;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询