Click here to Skip to main content
15,886,578 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: User Control Pin
padmanabhan N24-Aug-09 23:35
padmanabhan N24-Aug-09 23:35 
GeneralRe: User Control Pin
geeeeeeeetha24-Aug-09 23:52
geeeeeeeetha24-Aug-09 23:52 
QuestionDataList: Collecting IDs and TextBox values at same time Pin
Member 340288624-Aug-09 23:19
Member 340288624-Aug-09 23:19 
QuestionGenerate Events from Controls in ModalPopupExtender [modified] Pin
astrovirgin24-Aug-09 22:36
astrovirgin24-Aug-09 22:36 
QuestionASP.Net with Java Script Pin
Amit Patel198524-Aug-09 22:34
Amit Patel198524-Aug-09 22:34 
AnswerRe: ASP.Net with Java Script Pin
N a v a n e e t h25-Aug-09 0:50
N a v a n e e t h25-Aug-09 0:50 
QuestionCould not load file or assembly Pin
gtaure24-Aug-09 22:14
gtaure24-Aug-09 22:14 
Questionmenu index of a certain menu item.... Pin
RajpootRohan24-Aug-09 22:03
professionalRajpootRohan24-Aug-09 22:03 
Hi to all,

I am trying to add the menu items dynamically. But I am stucked in problem. I am unable to find the index of the menu items where menu text is "something".
public void populate_menu()
{
    DataSet ds = GetMenuData();
    foreach(DataRow drow in ds.Tables["CATEGORY"].Rows)
    {
        MenuItem masteritem = new MenuItem((string)drow["category_name"]);
        name = masteritem.Text;
        get_id();
        par_id = Convert.ToInt32 (ViewState["p_id"]);
        if (par_id == 0)
        {
            Menu1.Items.Add(masteritem);
        }
        else
        {
            //now find the category whose category_id is par_id
            get_category_name();
            ca_name = ViewState["cname"].ToString();

            //get the menu index where category name is "ca_name"


            //then under that category, add this sub category
            Menu1.Items[0].ChildItems.Add(masteritem);
        }
    }
}


please assist me..

cheers,
sneha

AnswerRe: menu index of a certain menu item.... Pin
N a v a n e e t h25-Aug-09 1:14
N a v a n e e t h25-Aug-09 1:14 
QuestionRetrive an image in web page Pin
rinku soni 2324-Aug-09 21:56
rinku soni 2324-Aug-09 21:56 
AnswerRe: Retrive an image in web page Pin
RajpootRohan24-Aug-09 22:07
professionalRajpootRohan24-Aug-09 22:07 
AnswerRe: Retrive an image in web page Pin
SeMartens25-Aug-09 0:43
SeMartens25-Aug-09 0:43 
QuestionC# in ASP.Net Pin
darolia.manish24-Aug-09 21:30
darolia.manish24-Aug-09 21:30 
AnswerRe: C# in ASP.Net Pin
Suresh Suthar24-Aug-09 21:34
professionalSuresh Suthar24-Aug-09 21:34 
AnswerRe: C# in ASP.Net Pin
RajpootRohan24-Aug-09 21:39
professionalRajpootRohan24-Aug-09 21:39 
AnswerRe: C# in ASP.Net Pin
Blue_Boy24-Aug-09 22:09
Blue_Boy24-Aug-09 22:09 
QuestionC# in ASP.Net Pin
darolia.manish24-Aug-09 21:27
darolia.manish24-Aug-09 21:27 
AnswerRe: C# in ASP.Net Pin
Suresh Suthar24-Aug-09 21:30
professionalSuresh Suthar24-Aug-09 21:30 
GeneralRe: C# in ASP.Net Pin
darolia.manish24-Aug-09 21:34
darolia.manish24-Aug-09 21:34 
AnswerRe: C# in ASP.Net Pin
geeeeeeeetha25-Aug-09 0:05
geeeeeeeetha25-Aug-09 0:05 
QuestionA grid view from scratch Pin
mrkeivan24-Aug-09 20:32
mrkeivan24-Aug-09 20:32 
AnswerRe: A grid view from scratch Pin
Suresh Suthar24-Aug-09 21:14
professionalSuresh Suthar24-Aug-09 21:14 
Question.net with flex Pin
Amit Patel198524-Aug-09 20:17
Amit Patel198524-Aug-09 20:17 
QuestionIs "string" be the only thing i can send from client to server side Pin
subramanian.rtechconet24-Aug-09 19:53
subramanian.rtechconet24-Aug-09 19:53 
AnswerRe: Is "string" be the only thing i can send from client to server side Pin
SeMartens24-Aug-09 20:26
SeMartens24-Aug-09 20: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.