Click here to Skip to main content
15,891,473 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question[Message Deleted] Pin
Zafar A khan 23-Jul-09 20:25
professionalZafar A khan 23-Jul-09 20:25 
AnswerRe: Outlook 2003 addin not working in outlook 2007 Pin
Abhijit Jana23-Jul-09 20:31
professionalAbhijit Jana23-Jul-09 20:31 
QuestionHow to get Free WebServices to Send SMS in ASP.net Pin
ChandrakanthGaddam23-Jul-09 20:13
ChandrakanthGaddam23-Jul-09 20:13 
AnswerRe: How to get Free WebServices to Send SMS in ASP.net Pin
Baran M23-Jul-09 20:19
Baran M23-Jul-09 20:19 
AnswerRe: How to get Free WebServices to Send SMS in ASP.net Pin
Abhijit Jana23-Jul-09 20:21
professionalAbhijit Jana23-Jul-09 20:21 
GeneralRe: How to get Free WebServices to Send SMS in ASP.net Pin
Ulhas Morbale23-Jul-09 21:25
professionalUlhas Morbale23-Jul-09 21:25 
AnswerRe: How to get Free WebServices to Send SMS in ASP.net Pin
Abhishek Sur23-Jul-09 21:17
professionalAbhishek Sur23-Jul-09 21:17 
Questionmenuitems Pin
mylogics23-Jul-09 19:56
professionalmylogics23-Jul-09 19:56 
hiiii
I have created a menu dynamically and populated it dynamically.
now i want to create a eventhandler so that on clicking the menu item the page gets redirected to particular page.plz help me.i hav written following code:
private void populatemenu1()
{

//string menu = "menu" + i;
DataSet ds = GetDataSetForMenu1();
Menu menu = new Menu();
foreach (DataRow parentItem in ds.Tables["Menu"].Rows)
{
MenuItem submenu = new MenuItem((string)parentItem["Menu"]);
menu.Items.Add(submenu);
foreach (DataRow childItem in parentItem.GetChildRows("SubMenu"))
{
MenuItem childrenItem = new MenuItem((string)childItem["SubMenu"]);
submenu.ChildItems.Add(childrenItem);

}


}
menu.StaticMenuItemStyle.ForeColor = System.Drawing.Color.Black;
//menu.StaticMenuItemStyle.ForeColor = System.Drawing.Color.Black;
menu.StaticMenuItemStyle.Font.Bold = true;
menu.DynamicMenuItemStyle.ForeColor = System.Drawing.Color.Black;
menu.DynamicMenuItemStyle.Font.Bold = true;
menu.DynamicVerticalOffset = 25;
menu.DynamicHorizontalOffset = -75;
//menu.Click += new System.EventHandler(this.menu_Click);
//menu_Click( object sender, System.EventArgs e);
//menu.MenuItemClick += new System.EventHandler(this.menu_Click);
Panel2.Controls.Add(menu);
Panel2.DataBind();



}



private DataSet GetDataSetForMenu1()
{
SqlConnection myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Jajaipur"].ConnectionString);
SqlDataAdapter adCat = new SqlDataAdapter("SELECT * FROM Menu Where MenuId=1", myConnection);
SqlDataAdapter adProd = new SqlDataAdapter("SELECT * FROM SubMenu Where MenuId=1", myConnection);
DataSet ds = new DataSet();
adCat.Fill(ds, "Menu");
adProd.Fill(ds, "SubMenu");
ds.Relations.Add("SubMenu",ds.Tables["Menu"].Columns["MenuId"],
ds.Tables["SubMenu"].Columns["MenuId"]);
return ds;
}


thanks....
AnswerRe: menuitems Pin
Zafar A khan 23-Jul-09 20:05
professionalZafar A khan 23-Jul-09 20:05 
GeneralRe: menuitems Pin
mylogics23-Jul-09 20:09
professionalmylogics23-Jul-09 20:09 
GeneralRe: menuitems Pin
Zafar A khan 23-Jul-09 20:19
professionalZafar A khan 23-Jul-09 20:19 
GeneralRe: menuitems Pin
mylogics23-Jul-09 20:41
professionalmylogics23-Jul-09 20:41 
GeneralRe: menuitems Pin
Zafar A khan 24-Jul-09 0:55
professionalZafar A khan 24-Jul-09 0:55 
AnswerRe: menuitems Pin
Abhijit Jana23-Jul-09 20:08
professionalAbhijit Jana23-Jul-09 20:08 
GeneralRe: menuitems Pin
mylogics23-Jul-09 20:14
professionalmylogics23-Jul-09 20:14 
GeneralRe: menuitems Pin
Abhijit Jana23-Jul-09 20:19
professionalAbhijit Jana23-Jul-09 20:19 
GeneralRe: menuitems Pin
mylogics23-Jul-09 20:22
professionalmylogics23-Jul-09 20:22 
GeneralRe: menuitems Pin
Brij23-Jul-09 20:36
mentorBrij23-Jul-09 20:36 
QuestionPanel Positions Pin
sachees12323-Jul-09 19:53
sachees12323-Jul-09 19:53 
AnswerRe: Panel Positions Pin
Abhijit Jana23-Jul-09 20:07
professionalAbhijit Jana23-Jul-09 20:07 
AnswerRe: Panel Positions Pin
Abhishek Sur23-Jul-09 21:28
professionalAbhishek Sur23-Jul-09 21:28 
GeneralRe: Panel Positions Pin
sachees12323-Jul-09 23:06
sachees12323-Jul-09 23:06 
GeneralRe: Panel Positions Pin
Abhishek Sur26-Jul-09 21:42
professionalAbhishek Sur26-Jul-09 21:42 
QuestionExcel like interface in asp.net page? Pin
Tridip Bhattacharjee23-Jul-09 19:35
professionalTridip Bhattacharjee23-Jul-09 19:35 
AnswerRe: Excel like interface in asp.net page? Pin
Abhijit Jana23-Jul-09 19:39
professionalAbhijit Jana23-Jul-09 19:39 

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.