This is a migrated thread and some comments may be shown as answers.

Menu with user login control help needed

1 Answer 226 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Kelvin
Top achievements
Rank 1
Kelvin asked on 27 May 2014, 03:05 PM
Hi,

A couple of months ago I saw one of the menu demos where one if the menu items was a login.  The item had a user id and password inputs along with a submit button.  I now need to code out something like this but I cannot find the demo as it seems to have been replaced with some newer ones.  Anyway can anyone provide a link to the demo if it still exists or some code samples (either C# or VB is fine) of how to accomplish having the login elements in a Rad Menu?

Thanks in advance...

K

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 May 2014, 06:30 AM
Hi Kelvin,

Please have a look into the sample code snippet which shows a Login form inside the RadMenu.

ASPX:
<telerik:RadMenu ID="radmenuLogin" runat="server">
    <Items>
        <telerik:RadMenuItem Text="Login">
            <ContentTemplate>
                <div style="border: 1px solid black;">
                    <telerik:RadTextBox ID="radtxtUserName" runat="server" Label="User Name">
                    </telerik:RadTextBox>
                    <br />
                    <telerik:RadTextBox ID="radtxtPassword" runat="server" Label="PassWord" TextMode="Password">
                    </telerik:RadTextBox>
                    <br />
                    <telerik:RadButton ID="radbtnSubmit" runat="server" Text="Submit" OnClick="radbtnSubmit_Click">
                    </telerik:RadButton>
                </div>
            </ContentTemplate>
        </telerik:RadMenuItem>
    </Items>
</telerik:RadMenu>

C#:
protected void radbtnSubmit_Click(object sender, EventArgs e)
{
    string userName = radtxtUserName.Text;
    string password = radtxtPassword.Text;
    //your code for submission
}

Let me know if you have any concern.
Thanks,
Princy.
Tags
Menu
Asked by
Kelvin
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or