1。textbox输入文本,点击enter响应某按钮事件:
txt.Attributes.Add("onkeydown", "if(event.keyCode==13){document.all." + btnsave.ClientID + ".focus();document.all." + this.btnsave.ClientID + ".click();}");
2.string.format():
string info = string.Format("order为:{0}的数为:{1}", arr[i].ToString(), arr[i].ToString()) + "\r\n";