-
maxlength for text box
<pre data-sub="prettyprint:_"> <textarea rows="10" cols="25" maxlength="25" onkeypress="return TextUtil.isNotMax(this)"></textarea>
-
set textbox's next button click
<pre data-sub="prettyprint:_"> string script = @" function clickButton(e, buttonid) { var bt = document.getElementById(buttonid); if (typeof bt == 'object') { if (navigator.appName.indexOf('Microsoft Internet Explorer')>(-1)){ if (event.keyCode == 13){ bt.click(); return false; } } else { if (e.keyCode == 13) { bt.click(); return false; } } } } "; Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "search", script, true); if (this.Request["tab"] == null || this.Request["tab"] == "All Resources") { this.txtGeneralSearch.Attributes.Add("onkeypress", "return clickButton(event,'" + this.btnSearch.ClientID + "')"); } </pre>
-
clean up the white-space text
<pre data-sub="prettyprint:_"> document.documentElement.firstChild.nextSibling.firstChild; </pre>
-
digital tv standard
ATSC (Advanced Television System Committee) used in North America, Japan, Korea, Taiwan, and parts of Latin America
-
delegate asyn call
class Program { static void Main() { AsyncCallback callback = new AsyncCallback(Callback); Func
f = Console.ReadLine; f.BeginInvoke(Callback, null); Thread.Sleep(Timeout.Infinite); }