Try something like:
TextBox TextBox1 = (TextBox) Repeater1.FindControl("TextBox1");
TextBox1.Focus();
Since it is a repeater, you may have to go to the Row level before invoking
the FindControl method.

Signature
Christopher A. Reed
"The oxen are slow, but the earth is patient."
> I'm using a repeater for editing, but having a devil of a time setting the
> focus to a textbox inside the repeater. Does anyone have an example of how
> to
> do this?
CGW - 12 Jun 2006 14:54 GMT
Great! I had worked around it with tabindexing but I'll give this a shot.

Signature
Thanks,
CGW
> Try something like:
>
[quoted text clipped - 8 lines]
> > to
> > do this?
CGW - 16 Jun 2006 21:53 GMT
Didn't work. Focus, Focused, etc. don't seemed to be recogognized as members.

Signature
Thanks,
CGW
> Try something like:
>
[quoted text clipped - 8 lines]
> > to
> > do this?
Christopher Reed - 05 Jul 2006 12:23 GMT
Are you using 1.1 or 2.0?

Signature
Christopher A. Reed
"The oxen are slow, but the earth is patient."
> Didn't work. Focus, Focused, etc. don't seemed to be recogognized as
> members.
[quoted text clipped - 14 lines]
>> > to
>> > do this?
CGW - 12 Jul 2006 15:18 GMT
Sorry... been out on vacation. We're using 1.1

Signature
Thanks,
CGW
> Are you using 1.1 or 2.0?
> > Didn't work. Focus, Focused, etc. don't seemed to be recogognized as
[quoted text clipped - 15 lines]
> >> > to
> >> > do this?
Christopher Reed - 13 Jul 2006 12:41 GMT
Which explains things since my suggestions are for 2.0. With 1.1, you'll
have to figure out what the control is and use a dynamically created
Javascript to set focus. You can use something like the
Page.RegisterClientScriptBlock method to add your script dynamically.

Signature
Christopher A. Reed
"The oxen are slow, but the earth is patient."
> Sorry... been out on vacation. We're using 1.1
>
[quoted text clipped - 19 lines]
>> >> > to
>> >> > do this?
CGW - 13 Jul 2006 21:06 GMT
Thank you!

Signature
CGW
> Which explains things since my suggestions are for 2.0. With 1.1, you'll
> have to figure out what the control is and use a dynamically created
[quoted text clipped - 23 lines]
> >> >> > to
> >> >> > do this?