Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 6th, 2007, 06:30 AM
Authorized User
 
Join Date: Aug 2006
Location: Mumbai, Maharastra, India.
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
btnAdd.Attributes.Add("OnClick","Setfocus()")

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
thanks



  #2 (permalink)  
Old March 12th, 2007, 06:28 PM
Friend of Wrox
 
Join Date: Jun 2004
Location: Chennai, Tamil Nadu, India.
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

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

You can find some code here

http://ganeshprof.blogspot.com/2007/...rver-side.html

Please let me know if you need furthur assisatance

Regards
Ganesh
http://ganeshprof.blogspot.com
Find your solution here...
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:27 PM.


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