Click here to Skip to main content
15,909,939 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do I log Which application becomes active. Pin
Judah Gabriel Himango14-Sep-06 5:45
sponsorJudah Gabriel Himango14-Sep-06 5:45 
Questionwhat we call [modified] Pin
Parshant Verma14-Sep-06 3:39
Parshant Verma14-Sep-06 3:39 
AnswerRe: what we call Pin
Le centriste14-Sep-06 3:48
Le centriste14-Sep-06 3:48 
AnswerRe: what we call Pin
Judah Gabriel Himango14-Sep-06 5:08
sponsorJudah Gabriel Himango14-Sep-06 5:08 
QuestionDllImport and datatypes Pin
Le centriste14-Sep-06 3:36
Le centriste14-Sep-06 3:36 
AnswerRe: DllImport and datatypes Pin
V.14-Sep-06 4:11
professionalV.14-Sep-06 4:11 
QuestionDataGrid with Label + TextBox + Listbox Pin
nmandaliya14-Sep-06 3:09
nmandaliya14-Sep-06 3:09 
AnswerRe: DataGrid with Label + TextBox + Listbox Pin
Private_Void14-Sep-06 8:56
Private_Void14-Sep-06 8:56 
I think I understand your problem. To sum all of it up, you want to access the new selected value in the ListBox. I am using a GridView in this code sample but it should work about the same. Instead of using strings with "," you could add straight into your array. Tell me how it works

protected void btnRun_Click(object sender, EventArgs e)
{
int intRowCount = GridView1.Rows.Count - 1;
string strDDLVals = "";
string strLBVals = "";

for (int i = 0; i < intRowCount; i++)
{
strDDLVals += ((DropDownList)GridView1.Rows[i].FindControl ("ddl1")).SelectedValue + ",";
strLBVals += ((ListBox)GridView1.Rows[i].FindControl("ListBox1")).SelectedValue + ",";
}
strLBVals.TrimEnd(',');
strDDLVals.TrimEnd(',');
}
GeneralRe: DataGrid with Label + TextBox + Listbox Pin
nmandaliya14-Sep-06 22:10
nmandaliya14-Sep-06 22:10 
QuestionDataGrid with Label + TextBox + Listbox Pin
nmandaliya14-Sep-06 3:05
nmandaliya14-Sep-06 3:05 
QuestionMSN Integration Pin
AB777114-Sep-06 2:58
AB777114-Sep-06 2:58 
Questionxmldocument question Pin
Yustme14-Sep-06 2:57
Yustme14-Sep-06 2:57 
AnswerRe: xmldocument question Pin
Stefan Troschuetz14-Sep-06 3:17
Stefan Troschuetz14-Sep-06 3:17 
GeneralRe: xmldocument question Pin
Yustme14-Sep-06 3:29
Yustme14-Sep-06 3:29 
GeneralRe: xmldocument question Pin
Stefan Troschuetz14-Sep-06 3:51
Stefan Troschuetz14-Sep-06 3:51 
GeneralRe: xmldocument question Pin
Yustme14-Sep-06 4:03
Yustme14-Sep-06 4:03 
AnswerRe: xmldocument question Pin
Hamid_RT14-Sep-06 9:46
Hamid_RT14-Sep-06 9:46 
Questionhow to copy a access database in c# Pin
faladrim14-Sep-06 2:43
faladrim14-Sep-06 2:43 
AnswerRe: how to copy a access database in c# Pin
Stefan Troschuetz14-Sep-06 3:20
Stefan Troschuetz14-Sep-06 3:20 
GeneralRe: how to copy a access database in c# Pin
faladrim14-Sep-06 3:31
faladrim14-Sep-06 3:31 
GeneralRe: how to copy a access database in c# Pin
Stefan Troschuetz14-Sep-06 3:58
Stefan Troschuetz14-Sep-06 3:58 
GeneralRe: how to copy a access database in c# Pin
faladrim14-Sep-06 4:04
faladrim14-Sep-06 4:04 
GeneralRe: how to copy a access database in c# Pin
Stefan Troschuetz14-Sep-06 4:11
Stefan Troschuetz14-Sep-06 4:11 
GeneralRe: how to copy a access database in c# Pin
faladrim14-Sep-06 4:16
faladrim14-Sep-06 4:16 
Questionproblem in form resizing Pin
kalaveer14-Sep-06 2:20
kalaveer14-Sep-06 2:20 

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.