-To get the content of a textbox use:
document.getElementById("MyTextBox").value OR with asp.net ajax use $get("MyTextBox").value
-To set the default button for a web page use:
The defaultbutton property of the form tag. IE. Set the defaultbutton property's value to the id/name of the textbox. eg. <form ... defaultbutton="MyButton">
tagged: professional // Comments [0]
Related posts:Select a random row in MS SQL...Regular expressionsVS2005, ASP.NET 2 & DLLs, DLLs..MS's ASP.NET and.. PHP2-way databinding cascading drop down lists within a FormViewApplicationName Property when customising providers
Disclaimer The posts on this blog are provided "AS IS" with no warranties. The opinions expressed herein are my own personal opinions and do not represent any other person's views in anyway.