-
Set focus on a element inside a repeater control
Hello to all,
maybe someone can help me.
I use a repeater control which also contains other elements like Image Buttons. Imagine for example an article list with a button to buy. When the user clicks on it the server code does something, the information changes and the user see it on the browser. But the focus is now lost, so maybe the user have to scroll down to the article he was looking.
I know, that I can use Javascript to set the focus, using the id of the control. But I dont know how to realize it, because ASP.NET is automatically creating the controls in the repeater.
I tryed to set the id of the control inside the ItemDataBound - event of the Repeater. I got no error during executing, but when I looked at the source code of the Webpage I missed the given ID.
Has anyone an idea?
Thank you very much.
Greetings, Wolfgang
-
Try doing it in the ItemDataBound which you said you have done..
Try posting some code how you went about it you must be missing something..
Patrick
Similar Threads
-
Replies: 2
Last Post: 08-29-2002, 04:23 PM
-
By Russell Jones in forum ASP.NET
Replies: 1
Last Post: 06-19-2002, 05:11 PM
-
By KraKheD in forum ASP.NET
Replies: 5
Last Post: 12-06-2001, 01:35 PM
-
By mark erickson in forum ASP.NET
Replies: 8
Last Post: 11-30-2001, 11:31 AM
-
Replies: 1
Last Post: 12-23-2000, 08:42 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks