Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
elwoos
Master Smack Fu Yak Hacker
2052 Posts |
Posted - 2006-05-15 : 08:58:58
|
I've discovered two little snippets that I will find useful if onoly due to their simplicity, just thought I would share them.The first one is from [url]http://mikepope.com/blog/AddComment.aspx?blogid=309[/url] and lets you set the default button when the enter key is hit. All you do is put Page.RegisterHiddenField("__EVENTTARGET", MyButton) in the Page load eventThe second one is taken from [url]http://www.dotnet247.com/247reference/msgs/26/132161.aspx[/url] and sets the focus to whichever control you choose. For this one you change the <body> tag in your HTML to <body onload="javascript:document.myForm.Name2.focus();"> steve-----------Oh, so they have internet on computers now! |
|
|
|
|