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  |  

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


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


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.

 


SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com
AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/
Willhite & Sharron Realtors
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com

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