Click here to Skip to main content
15,884,353 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: carry a form from one computer to other computer Pin
Sql Exciter6-Aug-08 1:15
Sql Exciter6-Aug-08 1:15 
QuestionHow to create paragraphs in text editor Pin
Sql Exciter6-Aug-08 0:58
Sql Exciter6-Aug-08 0:58 
Questionlogin failure after publish in web server Pin
Sanjay Kunjam6-Aug-08 0:55
Sanjay Kunjam6-Aug-08 0:55 
AnswerRe: login failure after publish in web server Pin
eyeseetee6-Aug-08 1:19
eyeseetee6-Aug-08 1:19 
GeneralRe: login failure after publish in web server Pin
Sanjay Kunjam6-Aug-08 1:37
Sanjay Kunjam6-Aug-08 1:37 
GeneralRe: login failure after publish in web server Pin
eyeseetee6-Aug-08 2:23
eyeseetee6-Aug-08 2:23 
QuestionOpen an excel file in the host Pin
Assaf826-Aug-08 0:14
Assaf826-Aug-08 0:14 
QuestionListBox Not Functioning.....Multiple Selection Pin
codingrocks6-Aug-08 0:09
codingrocks6-Aug-08 0:09 
I am doing an application in ASP .NET in which i am using a list box with multiple selection. I am using a sqldatasource to bind values to the list box. Everything works fine till this.

i want the page to send the selected multiple values in list box to be in two different text boxes

i tried this code and working, all the selected values comes to single text boxes. I want first selected value to be in textbox1 and second value to be in textbox2..

This is the code...

On Click event of a button

int i;

txt_uname1.Text = "selected" + " ";

for (i = 0; i < list_users.Items.Count - 1; i++)
{
    if (list_users.Items[i].Selected)
    {
        //txt_uname1.Text = list_users.Items[i].Text;

        txt_uname1.Text = txt_uname1.Text + list_users.Items[i].Text + " ";
    }

}


Please help me fixing this...

Thanks in advance

SAJAN A PILLAI

ASP.NET,C#.NET Programmer
BANGALORE

"Winners don't do different things. They do things differently. ...

AnswerRe: ListBox Not Functioning.....Multiple Selection Pin
Sandeep Akhare6-Aug-08 0:34
Sandeep Akhare6-Aug-08 0:34 
GeneralRe: ListBox Not Functioning.....Multiple Selection Pin
codingrocks6-Aug-08 0:51
codingrocks6-Aug-08 0:51 
AnswerRe: ListBox Not Functioning.....Multiple Selection Pin
chandralekha6-Aug-08 0:40
chandralekha6-Aug-08 0:40 
QuestionChatting Pin
janakinandhu5-Aug-08 23:25
janakinandhu5-Aug-08 23:25 
AnswerRe: Chatting Pin
Sathesh Sakthivel5-Aug-08 23:27
Sathesh Sakthivel5-Aug-08 23:27 
AnswerRe: Chatting Pin
eyeseetee5-Aug-08 23:31
eyeseetee5-Aug-08 23:31 
Question[Message Deleted] Pin
janakinandhu5-Aug-08 23:24
janakinandhu5-Aug-08 23:24 
AnswerRe: hi Pin
Sathesh Sakthivel5-Aug-08 23:26
Sathesh Sakthivel5-Aug-08 23:26 
QuestionFit webform in one page? Pin
katelva5-Aug-08 23:23
katelva5-Aug-08 23:23 
AnswerRe: Fit webform in one page? Pin
Sathesh Sakthivel5-Aug-08 23:25
Sathesh Sakthivel5-Aug-08 23:25 
GeneralRe: Fit webform in one page? Pin
katelva6-Aug-08 7:44
katelva6-Aug-08 7:44 
QuestionPanel Drag and Drop Pin
sjs4u5-Aug-08 23:04
sjs4u5-Aug-08 23:04 
AnswerRe: Panel Drag and Drop Pin
Sathesh Sakthivel5-Aug-08 23:11
Sathesh Sakthivel5-Aug-08 23:11 
GeneralRe: Panel Drag and Drop Pin
sjs4u5-Aug-08 23:16
sjs4u5-Aug-08 23:16 
GeneralRe: Panel Drag and Drop Pin
Sathesh Sakthivel5-Aug-08 23:17
Sathesh Sakthivel5-Aug-08 23:17 
AnswerRe: Panel Drag and Drop Pin
Sandeep Akhare5-Aug-08 23:13
Sandeep Akhare5-Aug-08 23:13 
GeneralRe: Panel Drag and Drop Pin
sjs4u5-Aug-08 23:15
sjs4u5-Aug-08 23:15 

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.