Thursday, November 23, 2006

Quick ajax and javascript reminders*

Thursday, November 23, 2006 2:07:43 PM (GMT Standard Time, UTC+00:00)

-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">

Related posts:
Select a random row in MS SQL...
Regular expressions
VS2005, ASP.NET 2 & DLLs, DLLs..
MS's ASP.NET and.. PHP
2-way databinding cascading drop down lists within a FormView
ApplicationName Property when customising providers

Comments are closed.