Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 6th, 2007, 06:30 AM
Authorized User
Join Date: Aug 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default javascript after server side code

hi friends

i have on ascx user control

on user control i have three textboxes
which are invisible

i have one button on ascx
when i press this button

these textboxes will get visible

when it gets visible i want to set focus on
one of these textbox

so i write one javascript

and form load
i write

but in this case js code will execute first
 text boxes are invisible
and i am not able to refer these textboxes in js

so i not able to set focus

how can i solve this or any other way to solve this issue

pls help

Old March 12th, 2007, 06:28 PM
Friend of Wrox
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76

You should push javascript on your page load to set focus to your control.

You can find some code here


Please let me know if you need furthur assisatance

Find your solution here...

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Converting Client-side to Server-side Code kwilliams ASP.NET 2.0 Professional 1 November 21st, 2007 05:25 PM
How to pass javascript variable to server side Andraw Classic ASP Basics 17 January 22nd, 2007 01:05 PM
create server side logfile from javascript senthilkumar Javascript 1 March 22nd, 2006 02:50 PM
In ASP,Client side javaScript code casimir Classic ASP XML 0 October 24th, 2005 12:24 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.