Click here to Skip to main content
15,900,818 members
Home / Discussions / C#
   

C#

 
GeneralRe: Timer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm21-Aug-09 23:49
nhqlbaislwfiikqraqnm21-Aug-09 23:49 
AnswerRe: Timer doesn´t work by Server and Client! [modified] Pin
Saksida Bojan22-Aug-09 0:30
Saksida Bojan22-Aug-09 0:30 
GeneralRe: Timer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm22-Aug-09 0:50
nhqlbaislwfiikqraqnm22-Aug-09 0:50 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Saksida Bojan22-Aug-09 1:40
Saksida Bojan22-Aug-09 1:40 
GeneralRe: Timer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm22-Aug-09 5:18
nhqlbaislwfiikqraqnm22-Aug-09 5:18 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Saksida Bojan22-Aug-09 6:57
Saksida Bojan22-Aug-09 6:57 
AnswerRe: Timer doesn´t work by Server and Client! Pin
Alan N22-Aug-09 7:23
Alan N22-Aug-09 7:23 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Saksida Bojan22-Aug-09 11:53
Saksida Bojan22-Aug-09 11:53 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Alan N22-Aug-09 13:25
Alan N22-Aug-09 13:25 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Saksida Bojan22-Aug-09 18:58
Saksida Bojan22-Aug-09 18:58 
GeneralRe: Timer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm22-Aug-09 23:12
nhqlbaislwfiikqraqnm22-Aug-09 23:12 
AnswerRe: Timer doesn´t work by Server and Client! Pin
Alan N23-Aug-09 6:24
Alan N23-Aug-09 6:24 
GeneralRe: Timer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm23-Aug-09 23:36
nhqlbaislwfiikqraqnm23-Aug-09 23:36 
GeneralRe: Timer doesn´t work by Server and Client! Pin
Alan N24-Aug-09 0:56
Alan N24-Aug-09 0:56 
GeneralMessage Closed Pin
24-Aug-09 22:55
nhqlbaislwfiikqraqnm24-Aug-09 22:55 
AnswerRe: Timer doesn´t work by Server and Client! Pin
Alan N25-Aug-09 6:21
Alan N25-Aug-09 6:21 
Question[Message Deleted] Pin
Ajithevn21-Aug-09 22:35
Ajithevn21-Aug-09 22:35 
AnswerRe: click event of a selected date in c# Pin
Vimalsoft(Pty) Ltd21-Aug-09 23:19
professionalVimalsoft(Pty) Ltd21-Aug-09 23:19 
Questionproblem with fileupload.hasfile Pin
Priyagdpl21-Aug-09 21:44
Priyagdpl21-Aug-09 21:44 
AnswerRe: problem with fileupload.hasfile Pin
Xmen Real 21-Aug-09 23:18
professional Xmen Real 21-Aug-09 23:18 
Questionneed PulsAll in locked section? Pin
elvis_pan21-Aug-09 21:35
elvis_pan21-Aug-09 21:35 
AnswerRe: need PulsAll in locked section? Pin
Saksida Bojan21-Aug-09 21:56
Saksida Bojan21-Aug-09 21:56 
QuestionLink in Dynamic menu Pin
rummer21-Aug-09 20:33
rummer21-Aug-09 20:33 
I have create a dynamic menu but problem is that how we give for a page link in clildnodes.

my code is attached in code block-
using System;

using System.Data;

using System.Configuration;

using System.Collections;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using System.Data.SqlClient; 



public partial class top : System.Web.UI.Page

{

SqlConnection conn;

DataUtility dut = new DataUtility();

protected void Page_Load(object sender, EventArgs e)

{

PopulateMenu();

}



private void PopulateMenu()

{

DataSet ds = GetDataSetForMenu();

Menu menu = new Menu();

menu.MenuItemClick += new MenuEventHandler(menu_MenuItemClick);

foreach (DataRow parentItem in ds.Tables[0].Rows)

{

MenuItem categoryItem = new MenuItem((string)parentItem["Catname"]);

menu.Items.Add(categoryItem);

foreach (DataRow childItem in parentItem.GetChildRows("Children"))

{

MenuItem childrenItem = new MenuItem((string)childItem["Subcatname"]);

categoryItem.ChildItems.Add(childrenItem);

}

}

Panel1.Controls.Add(menu);

Panel1.DataBind();

}

void menu_MenuItemClick(object sender, MenuEventArgs e)

{

string selected = e.Item.Text;

Response.Write(selected);

}

private DataSet GetDataSetForMenu()

{

conn = dut.getConnection();

SqlDataAdapter adCat = new SqlDataAdapter("SELECT tbl_Category.* FROM tbl_Category,tbl_Usercat where tbl_usercat.uid=1 and tbl_Category.sno=tbl_Usercat.catid", conn);

SqlDataAdapter adProd = new SqlDataAdapter("SELECT tbl_SubCategory.* FROM tbl_SubCategory,tbl_UserSubcat where tbl_UserSubcat.UID=1 and tbl_SubCategory.sno=tbl_UserSubcat.SubCatid", conn);

DataSet ds = new DataSet();

adCat.Fill(ds, "tbl_Category");

adProd.Fill(ds, "tbl_SubCategory");

ds.Relations.Add("Children", ds.Tables["tbl_Category"].Columns["sno"], ds.Tables["tbl_SubCategory"].Columns["CatID"]);

return ds;

}

}



so plz help me soon.

thanks

vivek
AnswerRe: Link in Dynamic menu Pin
Saksida Bojan21-Aug-09 20:49
Saksida Bojan21-Aug-09 20:49 
Questionproblem reading an Excel file Pin
VCsamir21-Aug-09 20:17
VCsamir21-Aug-09 20:17 

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.