FWNX-working diary - enter with different orders-
来源:互联网 发布:java项目进度表怎么写 编辑:程序博客网 时间:2024/06/05 01:09
aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
function BtnClick(obj) {
if (event.keyCode == 13) {
if (obj == document.all.TextBox1) {
alert("textbox1");
document.all.Button1.click();
}
else {
if (obj == document.all.TextBox2) {
alert("textbox2");
document.all.Button2.click();
}
else {
/* if (obj == document.all.txtInstSearch) {
alert("textbox3");
document.all.bnInstSearch.click();
}*/
if (obj == document.getElementById("txtInstSearch"))
{
alert("textbox3");
document.all.bnInstSearch.click();
}
}
}
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
</div>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:Button ID="Button2" runat="server" Text="Button" OnClick="Button2_Click" />
<asp:Panel DefaultButton="bnInstSearch" runat="server" Height="29px">
<asp:Label Text="Institution Number: " AssociatedControlID="txtInstSearch" runat="server"></asp:Label>
<asp:TextBox ID="txtInstSearch" runat="server"></asp:TextBox>
<asp:Button ID="bnInstSearch" Text="Search" CssClass="button" runat="server" onclick="bnInstSearch_Click" />
<asp:Label ID="lbInstError" runat="server" />
</asp:Panel>
</form>
</body>
</html>
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class _Default : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) return; Response.Write("<script>alert('Page_Load')</script>"); this.TextBox1.Attributes.Add("onkeydown", "BtnClick(this);"); this.TextBox2.Attributes.Add("onkeydown", "BtnClick(this);"); } protected void Button1_Click(object sender, EventArgs e) { Response.Write("<script>alert('bt1')</script>"); } protected void Button2_Click(object sender, EventArgs e) { Response.Write("<script>alert('bt2')</script>"); } protected void bnInstSearch_Click(object sender, EventArgs e) { Response.Write("<script>alert('bnInstSearch_Click')</script>"); }}
- FWNX-working diary - enter with different orders-
- diary with u
- Error: An App ID with identifier "*****" is not avaliable. Please enter a different string.
- An App ID with Identifier is not available. Please enter a different string
- An App ID with Identifier 'com.domainName.AppName' is not available. Please enter a different string
- An App ID with Identifier 'XXXX' is not available. Please enter a different string.
- An App ID with Identifier 'com.FE.BMH' is not available. Please enter a different string.
- 解决 an app id with identifier is not available. please enter a different string. xcode 7.3
- 解决 an app id with identifier is not available. please enter a different string
- An App ID with Identifier 'XXX.XXX.XXX’ is not available. Please enter a different string
- An App ID with Identifier "xxx" is not available . Please enter a different string.解决方法
- 【iOS开发】An Apple ID with identifier "xxx"is not available. Please enter a different string.
- An App ID with Identifier 'com.jd.xxx' is not available. Please enter a different string.
- fwnx -- working bugs in the two week of osp
- An App ID with identifier is not available.Please enter a different string. 或者这样的,fail to code sign
- 关于appID不可用 “An App ID with Identifier'xxxxxxxxxx'is not available. Please enter a different string.”
- iPhone开发 – iPhonAn App ID with Identifier 'XX.XX' is not available. Please enter a different string
- 打包显示:An App ID with Identifier 'com.xxx.xxx' is not available. Please enter a different string
- Ubuntu 12.04 LTS安装ns-2.34过程中出现的错误及其解决方案
- 生成自定义区间随机整数
- HtmlAgilityPack使用——XPath注意事项
- 33-使用递推算法求出5!
- [系统工具]VMware Workstation 10.0 官方中文版 (附注册机/序列号)
- FWNX-working diary - enter with different orders-
- 提示确认某一操作的对话框实现
- 天正制图步骤
- Java学习之-----输入输出
- Android环境架构问题
- UIUC同学Jia-Bin Huang收集的计算机视觉代码合集
- Linux redhat目录下用户管理
- 黑马程序员-学习日志-操作基本数据类型的数据流
- 严重: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost