The right way [for now] is to use Page.RegisterStartupScript because:

(1)  It will make only one copy of the script in rendered page

(2)  It places the script block after all form tags are created

This is *extremely* useful and I use it quite often in user controls.

I agree this would be a useful feature, but I know the ASP.Net is working on
many new things [that I cannot talk about here as I am under NDA].  they
have a priority list that they are dealing with and I am sure will get to
this.


David L. Penton, Microsoft MVP
JCPenney Application Specialist / Lead
"Mathematics is music for the mind, and Music is Mathematics for the
Soul. - J.S. Bach"
[EMAIL PROTECTED]

Do you have the VBScript Docs or SQL BOL installed?  If not, why not?
VBScript Docs: http://www.davidpenton.com/vbscript
SQL BOL: http://www.davidpenton.com/sqlbol


-----Original Message-----
From: Matthew Small [mailto:[EMAIL PROTECTED]]

Hmmmm.... thanks for insulting me.  No, I'm not afraid of being too
technical.  It's just that when I know that element.focus() will give me
the exact solution that I need in Javascript and that .NET, being touted
as one of the NEXT BIG THINGS, which I really like and think is pretty
cool, is severely lacking such an object.

Now, what should I do?  I will probably not in any way attempt to do
what that page has called for.  I can write my own javascript do to it
much faster in my particular application.

Yes, it is gibberish.  I'm sure it works, but I'm also sure that there
are better ways.

Which you haven't attempted to point out, but rather insulted me.
Thanks big time for the help.

Matthew Small
IT Supervisor
Showstopper National Dance Competitions
3660 Old Kings Hwy
Murrells Inlet, SC 29576
843-357-1847
http://www.showstopperonline.com


-----Original Message-----
From: Neil Highley [mailto:[EMAIL PROTECTED]]

Such a rounded opinion of computer technology from an IT supervisor, you
afraid about being too technical then, because everyone is a nerd deep
down. GAP will tell you otherwise of course...

-----Original Message-----
From: Matthew Small [mailto:[EMAIL PROTECTED]]

Thanks for your help, David, but that was so much gibberish.  I thought
that a complete language like VB.net would have an easy focus function
of some sort.

Matthew Small
IT Supervisor
Showstopper National Dance Competitions
3660 Old Kings Hwy
Murrells Inlet, SC 29576
843-357-1847
http://www.showstopperonline.com


-----Original Message-----
From: David L. Penton [mailto:[EMAIL PROTECTED]]

I googled

http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Textbox+Load+Focu
s

hit #3 was:

http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=438


-----Original Message-----
From: Matthew Small [mailto:[EMAIL PROTECTED]]

How can I set focus on a textbox in my Asp.NET(VB) app?


Matthew Small
IT Supervisor
Showstopper National Dance Competitions
3660 Old Kings Hwy
Murrells Inlet, SC 29576
843-357-1847
http://www.showstopperonline.com


---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/


Reply via email to