Click here to Skip to main content
15,916,215 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: method error 500 Pin
archit30006-May-09 0:53
archit30006-May-09 0:53 
QuestionHow to open a new browser window Pin
Nekkantidivya4-May-09 1:41
Nekkantidivya4-May-09 1:41 
AnswerRe: How to open a new browser window Pin
saanj4-May-09 1:56
saanj4-May-09 1:56 
QuestionPop Up calender Pin
Amit Patel19854-May-09 0:51
Amit Patel19854-May-09 0:51 
AnswerRe: Pop Up calender Pin
saanj4-May-09 1:20
saanj4-May-09 1:20 
AnswerRe: Pop Up calender Pin
archit30004-May-09 1:36
archit30004-May-09 1:36 
Questionautomatically update client display based on server data Pin
p_19604-May-09 0:41
p_19604-May-09 0:41 
AnswerRe: automatically update client display based on server data Pin
saanj4-May-09 1:22
saanj4-May-09 1:22 
GeneralRe: automatically update client display based on server data Pin
p_19604-May-09 18:55
p_19604-May-09 18:55 
GeneralRe: automatically update client display based on server data Pin
saanj4-May-09 19:27
saanj4-May-09 19:27 
GeneralRe: automatically update client display based on server data Pin
p_19604-May-09 19:47
p_19604-May-09 19:47 
GeneralRe: automatically update client display based on server data Pin
saanj4-May-09 20:05
saanj4-May-09 20:05 
GeneralRe: automatically update client display based on server data Pin
p_19604-May-09 22:36
p_19604-May-09 22:36 
AnswerRe: automatically update client display based on server data Pin
Baran M4-May-09 18:38
Baran M4-May-09 18:38 
QuestionAccessing the selectedIndex of a dynamically created Dropdownlist... Pin
Radiv Jeshya4-May-09 0:25
Radiv Jeshya4-May-09 0:25 
AnswerRe: Accessing the selectedIndex of a dynamically created Dropdownlist... Pin
saanj4-May-09 1:26
saanj4-May-09 1:26 
AnswerRe: Accessing the selectedIndex of a dynamically created Dropdownlist... Pin
Uma J5-May-09 0:40
Uma J5-May-09 0:40 
QuestionCart application Pin
Rajesh Kumar Chekuri4-May-09 0:20
Rajesh Kumar Chekuri4-May-09 0:20 
AnswerRe: Cart application Pin
Rajesh Kumar Chekuri4-May-09 2:26
Rajesh Kumar Chekuri4-May-09 2:26 
GeneralRe: Cart application Pin
MidwestLimey4-May-09 5:20
professionalMidwestLimey4-May-09 5:20 
QuestionGet multiple data from table and show in different label boxes Pin
scothykonma4-May-09 0:16
scothykonma4-May-09 0:16 
Hi All,

I have table with 3 fields id , status and Name...
I have 3 or more label boxes in my header. I getting data like,
"select id, Name from table1 where status = 1"

My data are,
id Name
1001 AAA
1002 CCC
1003 SSS

My code is

Header head = new Header();
DataSet obj = new DataSet();
obj = head.getdata();
if (obj.Tables[0].Rows.Count < 0)
    {
       int i;
       for (i = 0; i <= obj.Tables[0].Rows.Count - 1; i++)
        {
          string text1 = obj.Tables[0].Rows[i]["id"].ToString();
          string text2 = obj.Tables[0].Rows[i]["Name"].ToString();
          lblMessage.Text = text1 + " " + text2;
         }
    }

It shows only the last data...I know i have to assign values to lblmessage1.text and lblmessage2.text and so on..

But i do not know how to fix it...

I am fresher and new to sql....Give some samples


Thanks in Advance
AnswerRe: Get multiple data from table and show in different label boxes Pin
saanj4-May-09 1:39
saanj4-May-09 1:39 
GeneralRe: Get multiple data from table and show in different label boxes Pin
scothykonma4-May-09 3:46
scothykonma4-May-09 3:46 
GeneralRe: Get multiple data from table and show in different label boxes Pin
saanj4-May-09 18:45
saanj4-May-09 18:45 
AnswerRe: Get multiple data from table and show in different label boxes Pin
Uma J5-May-09 0:46
Uma J5-May-09 0:46 

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.