Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Sign out button always in focus
Previous Previous
 
Next Next
New Post 6/5/2008 9:06 PM
Unresolved
User is offline JoshD
3 posts
10th Ranked


Sign out button always in focus 

DotNetNuke.UI.Utilities.

ClientAPI.RegisterKeyCapture((TextBox)UserGrid.HeaderRow.FindControl("TextBoxFilterUsername"), (TextBox)UserGrid.HeaderRow.FindControl("ImageButtonFilterUsername"), Constants.EnterAscii);

I have an ASP page with a gridview and in that gridview is a TemplateField, now On my site I have a problem with the sign out button always having the focus, what I would like to have happen is when a user types in a textbox the focus switches to the imagebutton so when the user presses enter it doesn't automatically sign them out. I have tried putting the following call into the Page_Load event but it does not work, I am unsure if that is because the  FindControl method is not meant to be used here, in which case I have no other way to refrence my controls, below you can cee some of the file where the controls I need exist. Can some one please help me to get this code working

cheers

 

 

<

asp:GridView ID="UserGrid" runat="server" BackColor="#E9EAFE" GridLines="None" Width="100%"

 

AutoGenerateColumns="False" OnRowDataBound="GridViewUser_RowDataBound" OnRowCommand="GridViewUser_RowCommand">

 

<Columns>

 

<asp:TemplateField>

 

<HeaderTemplate>

 

<asp:Label ID="LabelGridHeaderUserName" runat="server" ForeColor="#CE0000"></asp:Label>

 

<asp:TextBox ID="TextBoxFilterUsername" Columns="10" runat="server"></asp:TextBox>

 

<asp:ImageButton ID="ImageButtonFilterUsername" ImageUrl="~/DesktopModules/MaxSec/images/search.gif"

 

OnClick="ImageButtonFilter_Click" runat="server" />

 

&nbsp

 

</HeaderTemplate>

 

<ItemTemplate>

 

<asp:Label ID="lblUsername" runat="server" Text='<%# Bind("UserName") %>'></asp:Label>

 

</ItemTemplate>

 

</asp:TemplateField>

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Sign out button always in focus
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk
Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP