Click here to Skip to main content
15,879,535 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Answer[Message Deleted] Pin
haleemasher24-Aug-09 19:45
haleemasher24-Aug-09 19:45 
GeneralRe: login page Pin
N a v a n e e t h24-Aug-09 20:49
N a v a n e e t h24-Aug-09 20:49 
GeneralRe: login page Pin
Ashfield24-Aug-09 21:09
Ashfield24-Aug-09 21:09 
Questiondynamic menu... Pin
RajpootRohan24-Aug-09 19:08
professionalRajpootRohan24-Aug-09 19:08 
AnswerRe: dynamic menu... Pin
Christian Graus24-Aug-09 19:12
protectorChristian Graus24-Aug-09 19:12 
GeneralRe: dynamic menu... Pin
RajpootRohan24-Aug-09 19:30
professionalRajpootRohan24-Aug-09 19:30 
GeneralRe: dynamic menu... Pin
Christian Graus24-Aug-09 19:32
protectorChristian Graus24-Aug-09 19:32 
GeneralRe: dynamic menu... Pin
RajpootRohan24-Aug-09 21:32
professionalRajpootRohan24-Aug-09 21:32 
Hi,

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();


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


In this I am unable to find the menu index of a particular category. In this I just tried by giving it as "0".
I want the menuindex based on the category name "ca_name".

cheers,
sneha

QuestionCannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
haleemasher24-Aug-09 18:21
haleemasher24-Aug-09 18:21 
AnswerRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
Abhijit Jana24-Aug-09 18:34
professionalAbhijit Jana24-Aug-09 18:34 
GeneralRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
haleemasher24-Aug-09 18:46
haleemasher24-Aug-09 18:46 
GeneralRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
Sendilkumar.M24-Aug-09 19:28
Sendilkumar.M24-Aug-09 19:28 
AnswerRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
ali_reza_zareian24-Aug-09 18:46
ali_reza_zareian24-Aug-09 18:46 
GeneralRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
haleemasher24-Aug-09 18:54
haleemasher24-Aug-09 18:54 
AnswerRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
Christian Graus24-Aug-09 19:01
protectorChristian Graus24-Aug-09 19:01 
AnswerRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
padmanabhan N24-Aug-09 19:04
padmanabhan N24-Aug-09 19:04 
GeneralRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
Christian Graus24-Aug-09 19:10
protectorChristian Graus24-Aug-09 19:10 
AnswerRe: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' Pin
harshangrana24-Aug-09 19:54
harshangrana24-Aug-09 19:54 
QuestionA page can have only one server-side Form tag. Pin
haleemasher24-Aug-09 18:15
haleemasher24-Aug-09 18:15 
AnswerRe: A page can have only one server-side Form tag. Pin
Abhijit Jana24-Aug-09 18:31
professionalAbhijit Jana24-Aug-09 18:31 
AnswerRe: A page can have only one server-side Form tag. Pin
Christian Graus24-Aug-09 19:14
protectorChristian Graus24-Aug-09 19:14 
AnswerRe: A page can have only one server-side Form tag. Pin
Sendilkumar.M24-Aug-09 19:31
Sendilkumar.M24-Aug-09 19:31 
QuestionHow to create exe file of C# web project? Pin
nudma24-Aug-09 18:15
nudma24-Aug-09 18:15 
AnswerRe: How to create exe file of C# web project? Pin
Abhijit Jana24-Aug-09 18:28
professionalAbhijit Jana24-Aug-09 18:28 
AnswerRe: How to create exe file of C# web project? Pin
ali_reza_zareian24-Aug-09 18:41
ali_reza_zareian24-Aug-09 18:41 

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.