I have a repeater like this:
 
<asp:repeater id="Repeater1" runat="server" EnableViewState="True">
         <ItemTemplate>
           <tr>
           <td>
                <input type="text" class="formulario" id="txtData11" 
name="txtData11" value='<%# FormatData(DataBinder.Eval(Container.DataItem, 
"Data")) %>' size="10" maxlength="10" runat="server" 
onKeyDown="if(event.keyCode==13) event.keyCode=9; javascript:PictDate(this);">
            </td>
            <td>
               <input type="text" class="formulario" id="txtPeriod11" 
name="txtPeriod11" value='<%# DataBinder.Eval(Container.DataItem, "Period") %>' 
size="5" maxlength="2" runat="server" onKeyDown="if(event.keyCode==13) 
event.keyCode=9;">
           </td>
          </tr>
         </ItemTemplate>
         <AlternatingItemTemplate>
          <tr>           <td>
                <input type="text" class="formulario" id="txtData22" 
name="txtData22" value='<%# FormatData(DataBinder.Eval(Container.DataItem, 
"Data")) %>' size="10" maxlength="10" runat="server" 
onKeyDown="if(event.keyCode==13) event.keyCode=9;">
            </td>
            <td>
               <input type="text" class="formulario" id="txtPeriod22" 
name="txtPeriod22" value='<%# DataBinder.Eval(Container.DataItem, "Period") %>' 
size="5" maxlength="2" runat="server" onKeyDown="if(event.keyCode==13) 
event.keyCode=9;">
           </td>
          </tr>
         </AlternatingItemTemplate>
        </asp:repeater>
 
like this:
 
txtData11            txtPeriod11
txtData22            txtPeriod22
txtData11            txtPeriod11
txtData22            txtPeriod22
...
 
 
In each line of Item/AlternatingItem, I have 2 fields (txtData11/txtData22 and 
txtPeriod11/txtPeriod22). As you can see, I´ve added the event onKeyDown and 
check if it is 13, assume event 9 (tab). But with this, the focus goes to the 
right (from txtData11 to txtPeriod11). What I would like is to go from 
txtData11 to txtData22 (a vertical tab). How can I do this?
 
Thanks,
Giovani.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to