前端_按钮

发布时间 2023-10-24 08:07:38作者: AutomationAnywhere

<button>

  跳转页面(html):<button onclick="window.location.href='../routeEdit/index.html'" type="button" id="add">登录</button>

     执行动作(asp):<asp:Button runat="server" id="Button1" onclick="Button1_Click" class="btn btn-primary btn-block" Text="登录" />

  执行动作(asp.cs):protected void Button1_Click(object sender, EventArgs e){DateTime ipDatetime = DateTime.Now;  //获取访问时间}