|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Need to find which text box has the focus.On another part of the form I have a further 7 text boxes, each representing a day of the week. I'd really like to be able to mimic the functionality in the VB6 program on which this is based, which is: When a text box gets the focus, the "day" text boxes are refreshed to show the daily data for that week. I realise that in ASP.NET this might provide a sub-optimal user experience, as there would need to be a postback each time the "day" text boxes was refreshed. As a compromise I propose adding a "Refresh" button on the form, that would determine which weekly text box has the focus, and refresh the "day" text boxes accordingly. Anyone got any ideas how to do this? Many thanks in advance Edward Use javascript or vbscript on the client side, you have exposure to many
events. OnBlur OnFocus OnFocusIn OnFocusOut OnActivate OnDeactivate you may also use document.activeElement <teddysn***@hotmail.com> wrote in message Show quoteHide quote news:1137690260.533530.300690@f14g2000cwb.googlegroups.com... >I have an aspx form with 52 text boxes, each one representing a week. > > On another part of the form I have a further 7 text boxes, each > representing a day of the week. > > I'd really like to be able to mimic the functionality in the VB6 > program on which this is based, which is: > > When a text box gets the focus, the "day" text boxes are refreshed to > show the daily data for that week. > > I realise that in ASP.NET this might provide a sub-optimal user > experience, as there would need to be a postback each time the "day" > text boxes was refreshed. > > As a compromise I propose adding a "Refresh" button on the form, that > would determine which weekly text box has the focus, and refresh the > "day" text boxes accordingly. > > Anyone got any ideas how to do this? > > Many thanks in advance > > Edward > |
|||||||||||||||||||||||