小白求助个小白问题 一个button按钮 比如叫“添加”点击“添加”的时候按钮变成“移出” 点击移出的时候再变成“添加”怎么实现的 = =~~~! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如id="MyBotton"点击事件里写if(MyBotton.Text=="添加"){ MyBotton.Text=="移出"}else if(MyBotton.Text=="移出"){ MyBotton.Text=="添加"} private void Button1_Click(object sender, EventArgs e){ if(Button1.Text=="添加") { Button1.Text="移出"; } else { Button1.Text="添加"; }} 使用js 更高效:<input id="Button1" type="button" value="添加" onclick="document.getElementById('Button1').value=='添加'?document.getElementById('Button1').value='移出':document.getElementById('Button1').value='添加';" /> 多个字段合并成一个字段 使用了MasterPage以后,主页面里的Button控件要点击两次才能执行Button_Click。 C#的Activx资料真那么少吗 asp.net 抛出错误??? 谁有电子邮箱系统的例子,或者原代码给我学习下可以不?或者推荐个地址我去下载 一个javascript传递值的问题 急在线等 !!! 关于gridview中的checkbox 新手求教(简单问题) 如何实现自动发邮件,就是过5分钟发一次,各位大虾,有何高见 想开始学习ASP.net,谁能给我推荐一套好的源码供参考练习啊! Global.asax在什么条件下才执行? 关于HtmlTable的,高分奉送哦~
{
MyBotton.Text=="移出"
}
else if(MyBotton.Text=="移出")
{
MyBotton.Text=="添加"
}
{
if(Button1.Text=="添加")
{
Button1.Text="移出";
}
else
{
Button1.Text="添加";
}
}
<input id="Button1" type="button" value="添加" onclick="document.getElementById('Button1').value=='添加'?document.getElementById('Button1').value='移出':document.getElementById('Button1').value='添加';" />