Posted on: 9/10/2012 8:22:31 AM | Views : 221

i working with menu i want number's of ApplicationID from this query , how to get it ,
this my code
protected void Page_Load(object sender, EventArgs e) { createDataTable(); } public string MohannedConnectionString { get { return ConfigurationManager.ConnectionStrings["MohannadConnectionString1"].ConnectionString; } } protected void createDataTable() { int i=0; string username =(string)Session["Username"]; string comd = "Select ApplicationID from UsersMenu where UserName=@username"; SqlConnection con = new SqlConnection(MohannedConnectionString); SqlCommand cmd = new SqlCommand("Select ApplicationID from UsersMenu where UserName=@username"); cmd.Parameters.AddWithValue("username",username); cmd.CommandType = CommandType.Text; cmd.CommandText = comd; cmd.Connec ...

Go to the complete details ...