Click here to Skip to main content
15,921,905 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to Host asp web site Pin
Blikkies29-Jul-09 23:18
professionalBlikkies29-Jul-09 23:18 
AnswerRe: How to Host asp web site Pin
Abhijit Jana29-Jul-09 23:27
professionalAbhijit Jana29-Jul-09 23:27 
GeneralRe: How to Host asp web site Pin
mdazeemuddin31-Jul-09 21:50
mdazeemuddin31-Jul-09 21:50 
QuestionFilling the listbox that is placed inside the web user control Pin
Jagz W29-Jul-09 22:15
professionalJagz W29-Jul-09 22:15 
AnswerRe: Filling the listbox that is placed inside the web user control Pin
Vimalsoft(Pty) Ltd29-Jul-09 23:52
professionalVimalsoft(Pty) Ltd29-Jul-09 23:52 
Questionhow to add classes and functions Pin
Rajni_pooni29-Jul-09 21:59
Rajni_pooni29-Jul-09 21:59 
AnswerRe: how to add classes and functions Pin
Abhijit Jana29-Jul-09 22:09
professionalAbhijit Jana29-Jul-09 22:09 
Questiondatareader Pin
KhandelwalA29-Jul-09 21:42
KhandelwalA29-Jul-09 21:42 
hii....
i m reading a table through datareader.it reads a single row but next time it comes out of loop even when there
is a row in table.
the code is..
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Jajaipur"].ConnectionString);
SqlDataReader dr = null;
//SqlDataReader dr2 = null;
string str = "SELECT MenuId, Menu FROM Menu ";
SqlCommand cmd = new SqlCommand(str, conn);
conn.Open();
dr = cmd.ExecuteReader();

Response.Write("
    ");

    while (dr.HasRows != null)
    {
    dr.Read();
    String id = dr["MenuId"].ToString();

    String str1 = dr["Menu"].ToString();
    int i = Convert.ToInt32(id);

    Response.Write("
  • ");
    Response.Write(str1);
    TextBox1.Text = TextBox1.Text+ str1;
    conn.Close();

    string str2 = "SELECT MenuId, SubMenuID, SubMenu FROM SubMenu where (MenuId = " + i + ")";
    SqlCommand cmd2 = new SqlCommand(str2, conn);
    //SqlDataReader dr2 = null;
    conn.Open();
    dr = cmd2.ExecuteReader();
    Response.Write("
      ");
      while (dr.Read())
      {
      String str3 = dr["SubMenu"].ToString();
      Response.Write("
    • ");
      Response.Write(str3);
      Response.Write("
    • ");

      }
      Response.Write("
    ");
    Response.Write("
  • ");

    }
    Response.Write("
");
conn.Close();
AnswerRe: datareader Pin
Abhijit Jana29-Jul-09 21:46
professionalAbhijit Jana29-Jul-09 21:46 
QuestionTab control ajax Pin
KhandelwalA29-Jul-09 21:18
KhandelwalA29-Jul-09 21:18 
AnswerRe: Tab control ajax Pin
Abhijit Jana29-Jul-09 21:38
professionalAbhijit Jana29-Jul-09 21:38 
QuestionPrevent Closing of IFRAME Pin
M. J. Jaya Chitra29-Jul-09 21:13
M. J. Jaya Chitra29-Jul-09 21:13 
AnswerRe: Prevent Closing of IFRAME Pin
Abhijit Jana29-Jul-09 21:49
professionalAbhijit Jana29-Jul-09 21:49 
GeneralRe: Prevent Closing of IFRAME Pin
M. J. Jaya Chitra30-Jul-09 2:27
M. J. Jaya Chitra30-Jul-09 2:27 
Questionhow to get a particular file type in a particular directory and bind in to dropdown list? Pin
Member 387988129-Jul-09 21:08
Member 387988129-Jul-09 21:08 
AnswerRe: how to get a particular file type in a particular directory and bind in to dropdown list? Pin
Abhijit Jana29-Jul-09 21:16
professionalAbhijit Jana29-Jul-09 21:16 
GeneralRe: how to get a particular file type in a particular directory and bind in to dropdown list? Pin
Member 387988129-Jul-09 22:20
Member 387988129-Jul-09 22:20 
GeneralRe: how to get a particular file type in a particular directory and bind in to dropdown list? Pin
Abhijit Jana29-Jul-09 22:44
professionalAbhijit Jana29-Jul-09 22:44 
AnswerRe: how to get a particular file type in a particular directory and bind in to dropdown list? Pin
Vimalsoft(Pty) Ltd29-Jul-09 21:21
professionalVimalsoft(Pty) Ltd29-Jul-09 21:21 
Question[Message Deleted] Pin
sahoo.fm29-Jul-09 20:44
sahoo.fm29-Jul-09 20:44 
AnswerRe: drop down list inside gridview Pin
Abhijit Jana29-Jul-09 21:08
professionalAbhijit Jana29-Jul-09 21:08 
GeneralRe: drop down list inside gridview Pin
sahoo.fm29-Jul-09 23:07
sahoo.fm29-Jul-09 23:07 
QuestionGridview to Database Pin
minniemooo29-Jul-09 20:39
minniemooo29-Jul-09 20:39 
AnswerRe: Gridview to Database Pin
Vimalsoft(Pty) Ltd29-Jul-09 20:48
professionalVimalsoft(Pty) Ltd29-Jul-09 20:48 
AnswerRe: Gridview to Database Pin
Blue_Boy29-Jul-09 20:49
Blue_Boy29-Jul-09 20:49 

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.