DotNetNuke 5.14 Search User Enter Key Issue


A04C0091

I recently upgraded a DotNetNuke installation and found several issues that are either different from the 4.x series or are now broken.

Most annoying is that there is now no longer any visual indication that a module is viewable by the administrator only.  Seems there should at least be a CSS class added to the module so that we can control the visual representation ourselves if we want.

Unfortunately there is nothing we can do about that.

But another issue that showed up is in the user screen.

There is a search box where you should be able to search for a user as the administrator.  If you put your cursor in that field, put in a name and press the ENTER key on your keyboard, you are directed to the Admin icons screen.  This is a new screen that was added in 5.x.

This is because the Admin LinkButton is getting “clicked” when you press the ENTER key.

To fix it, all we need to do is wrap the three controls: textBox, DropDown, and LinkButton, in a Panel and make the LinkButton the default button of the panel.

If you’d like to fix this yourself, open up the Users.ascx file located in ~\DesktopModules\Admin\Security\ .  Make sure you don’t pick the User.ascx file, there are two files.  You want the one with an S at the end.

Change this code

<td class="Normal" align="left" width="*">
    <asp:textbox id="txtSearch" Runat="server">
        </asp:textbox>
    <asp:dropdownlist id="ddlSearchType" Runat="server" />
    <asp:imagebutton id="btnSearch" Runat="server"
         ImageUrl="~/images/icon_search_16px.gif">
        </asp:imagebutton>
</td>

To this code

<td class="Normal" align="left" width="*">
    <asp:Panel ID="Panel1" runat="server"
       DefaultButton="btnSearch">
    <asp:textbox id="txtSearch" Runat="server">
        </asp:textbox>
    <asp:dropdownlist id="ddlSearchType" Runat="server" />
    <asp:imagebutton id="btnSearch" Runat="server"
       ImageUrl="~/images/icon_search_16px.gif">
       </asp:imagebutton>
    </asp:Panel>
</td>

and everything will work like it should.

Ads by Lake Quincy Media

Other Related Items:

Pan's Labyrinth [Blu-ray]Pan's Labyrinth [Blu-ray]Inspired by the Brothers Grimm, Jorge Luis Borges, and Guillermo del Toro's own unlimited imagination, Pan's Labyrinth is a fairytale for adults. Ofel... Read More >
A1 Cardone 718875DNN Engine Control ModuleA1 Cardone Engine Control Modules are designed to render superior performance. These powerful modules cautiously monitor RPM, timing, turbo boost pres... Read More >
Love in the First DegreeLove in the First DegreeProduced and arranged by Stock/Altken/Waterman for PWL Productions,sleeve designed by Peter Barrett assisted by Andrew Biscomb, photography by Herb Ritts.

Related Post

Comments are closed.

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor