p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
I forgot my password Register Now
Register | FAQ | Members List | Calendar | 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old March 12th, 2007, 07:28 PM
Friend of Wrox
Points: 1,094, Level: 12
Points: 1,094, Level: 12 Points: 1,094, Level: 12 Points: 1,094, Level: 12
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2004
Location: Chennai, Tamil Nadu, India.
Posts: 449
Thanks: 0
Thanked 0 Times in 0 Posts
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 01:24 AM
JavaScript Error For Server-Side LinkButton bmains ASP.NET 1.1 2 June 30th, 2004 02:03 PM



All times are GMT -4. The time now is 02:42 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc