Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Setfocus to control in Iframe

Thread Tools

Setfocus to control in Iframe

Posts: n/a

I have a page with an iframe on it in which I load another page.
On this iframe page I have some textboxes above eachother.

When the first textbox is filled with a code the textchanged event is called
and the code is checked with the database.
After the code has been changed to the right one (if needed) I want the
focus to go to the next textbox.

So at the end of the event I do: Page.SetFocus(txtbox2)

But after the postback refresh, the focus is gone.

How can I put it on the 2nd textbox?
all is done in the Iframe page codebehind.

I would appreciate some help here

Reply With Quote

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can SetFocus(control)...set a control to the center of the page... trint ASP .Net 4 09-22-2007 08:31 PM
SetFocus gridview control ASP .Net Web Controls 0 10-04-2006 03:53 PM
How to SetFocus to an activex control when a dialog is prompted? Haobing Python 1 12-20-2005 04:07 AM
Any opinions of SetFocus Corporation? MCSD 0 07-07-2004 11:04 PM
Get form values from iframe (1) to iframe (2) inside a layer in iframe (1) Daedalous Javascript 3 01-16-2004 11:08 AM