Click here to Skip to main content
15,920,687 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAccess asp control from c# Pin
Paulraj G1-Mar-10 0:51
Paulraj G1-Mar-10 0:51 
AnswerRe: Access asp control from c# Pin
rakeshs3121-Mar-10 0:58
rakeshs3121-Mar-10 0:58 
GeneralRe: Access asp control from c# Pin
Paulraj G1-Mar-10 1:05
Paulraj G1-Mar-10 1:05 
GeneralRe: Access asp control from c# Pin
rakeshs3121-Mar-10 1:13
rakeshs3121-Mar-10 1:13 
GeneralRe: Access asp control from c# Pin
Paulraj G1-Mar-10 1:25
Paulraj G1-Mar-10 1:25 
GeneralRe: Access asp control from c# Pin
rakeshs3121-Mar-10 1:47
rakeshs3121-Mar-10 1:47 
Questionhow to get the right symbol beside the text box when validate the user Pin
developerit1-Mar-10 0:14
developerit1-Mar-10 0:14 
AnswerRe: how to get the right symbol beside the text box when validate the user Pin
dan!sh 1-Mar-10 0:25
professional dan!sh 1-Mar-10 0:25 
Questionhow to find the total hours he spend Pin
developerit1-Mar-10 0:11
developerit1-Mar-10 0:11 
AnswerRe: how to find the total hours he spend Pin
dan!sh 1-Mar-10 0:16
professional dan!sh 1-Mar-10 0:16 
AnswerRe: how to find the total hours he spend Pin
April Fans1-Mar-10 22:30
April Fans1-Mar-10 22:30 
QuestionDataset.WriteXml doesnot release file Pin
sunit_8228-Feb-10 23:51
sunit_8228-Feb-10 23:51 
Questioncalling panel mulitple times Pin
Ostwal Aarti28-Feb-10 23:29
Ostwal Aarti28-Feb-10 23:29 
AnswerRe: calling panel mulitple times Pin
dan!sh 28-Feb-10 23:56
professional dan!sh 28-Feb-10 23:56 
AnswerRe: calling panel mulitple times Pin
rakeshs3121-Mar-10 0:51
rakeshs3121-Mar-10 0:51 
Questionnot work in ff Pin
diyaa_0828-Feb-10 22:35
diyaa_0828-Feb-10 22:35 
AnswerRe: not work in ff Pin
Nasri871-Mar-10 21:09
Nasri871-Mar-10 21:09 
QuestionSub menu - How to write click event? Pin
Paulraj G28-Feb-10 19:46
Paulraj G28-Feb-10 19:46 
AnswerRe: Sub menu - How to write click event? Pin
sashidhar28-Feb-10 20:09
sashidhar28-Feb-10 20:09 
AnswerRe: Sub menu - How to write click event? Pin
Abhijit Jana28-Feb-10 20:13
professionalAbhijit Jana28-Feb-10 20:13 
GeneralRe: Sub menu - How to write click event? Pin
Paulraj G28-Feb-10 20:28
Paulraj G28-Feb-10 20:28 
GeneralRe: Sub menu - How to write click event? Pin
Abhijit Jana28-Feb-10 20:42
professionalAbhijit Jana28-Feb-10 20:42 
You need to close <items> tag and <asp:menu> tag First.

Try This :
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal"  staticdisplaylevels="5" BorderStyle="None" 
         onmenuitemclick="Menu1_MenuItemClick">
                    <Items>
                    <asp:MenuItem Text="File" Value="File">
                        <asp:MenuItem Text="Open" Value="Open" ToolTip="Open File"></asp:MenuItem>
                        <asp:MenuItem Text="Recent Files" Value="Recent"></asp:MenuItem>
                        <asp:MenuItem Text="Exit" Value="Exit"></asp:MenuItem>
                    </asp:MenuItem>
                    </Items>
    </asp:menu>

And In Code Behind :
protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
    {
        Response.Write(e.Item.Text);
    }


Here you will find on click of every menu items / subitems , Menu Text getting write on page.

Hope this will help you !
GeneralRe: Sub menu - How to write click event? Pin
Paulraj G28-Feb-10 21:42
Paulraj G28-Feb-10 21:42 
GeneralRe: Sub menu - How to write click event? Pin
Abhijit Jana28-Feb-10 21:45
professionalAbhijit Jana28-Feb-10 21:45 
QuestionPackaging a web application Pin
Priyanka15 g28-Feb-10 16:26
Priyanka15 g28-Feb-10 16:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.