Click here to Skip to main content
16,014,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: Deployment for Visual C# 2010 Express Pin
arkiboys13-Mar-11 11:56
arkiboys13-Mar-11 11:56 
QuestionSetup File Pin
Syed Shahid Hussain11-Mar-11 11:41
Syed Shahid Hussain11-Mar-11 11:41 
AnswerRe: Setup File Pin
thatraja11-Mar-11 12:50
professionalthatraja11-Mar-11 12:50 
GeneralRe: Setup File Pin
Syed Shahid Hussain11-Mar-11 13:10
Syed Shahid Hussain11-Mar-11 13:10 
AnswerRe: Setup File Pin
Dave Kreskowiak11-Mar-11 12:51
mveDave Kreskowiak11-Mar-11 12:51 
GeneralRe: Setup File Pin
Syed Shahid Hussain11-Mar-11 13:12
Syed Shahid Hussain11-Mar-11 13:12 
AnswerRe: Setup File Pin
Dalek Dave11-Mar-11 13:52
professionalDalek Dave11-Mar-11 13:52 
QuestionFinding controls [modified] Pin
Orcun Iyigun11-Mar-11 7:02
Orcun Iyigun11-Mar-11 7:02 
Hello all,

I have two questions.
1) I have labels and textbox.
For ex;

lblName1.Text = txtName.Text;
lblName2.Text = txtName.Text;
lblName3.Text = txtName.Text;
lblName4.Text = txtName.Text;

Is there a way that i can do that in a loop something like:

for(i=0; i<4; i++)
{
lblName[i].Text = txtName.Text; // of course it does not accept [i] Smile | :)
}

2) How can I find a certain type of a contol in a webform and change the controls property.

Ex; I have 10 checkboxes. without coding one by one. Is there a way that I can assign its check selected to false more proper way ;

cb1.Checked = false;
cb2.Checked = false;
cb3.Checked = false;
.
.
cb10.Checked = false;

Thanks.

modified on Friday, March 11, 2011 1:30 PM

AnswerRe: Finding controls Pin
OriginalGriff11-Mar-11 9:09
mveOriginalGriff11-Mar-11 9:09 
GeneralRe: Finding controls Pin
Orcun Iyigun11-Mar-11 9:50
Orcun Iyigun11-Mar-11 9:50 
AnswerRe: Finding controls Pin
GenJerDan11-Mar-11 11:26
GenJerDan11-Mar-11 11:26 
GeneralRe: Finding controls Pin
Orcun Iyigun11-Mar-11 11:32
Orcun Iyigun11-Mar-11 11:32 
GeneralRe: Finding controls Pin
GenJerDan11-Mar-11 14:44
GenJerDan11-Mar-11 14:44 
AnswerRe: Finding controls Pin
Luc Pattyn11-Mar-11 18:18
sitebuilderLuc Pattyn11-Mar-11 18:18 
GeneralRe: Finding controls Pin
GenJerDan12-Mar-11 3:01
GenJerDan12-Mar-11 3:01 
AnswerRe: Finding controls Pin
Luc Pattyn12-Mar-11 3:16
sitebuilderLuc Pattyn12-Mar-11 3:16 
AnswerRe: Finding controls Pin
JOAT-MON11-Mar-11 12:28
JOAT-MON11-Mar-11 12:28 
AnswerRe: Finding controls Pin
Dalek Dave11-Mar-11 14:13
professionalDalek Dave11-Mar-11 14:13 
AnswerRe: Finding controls Pin
Luc Pattyn11-Mar-11 18:16
sitebuilderLuc Pattyn11-Mar-11 18:16 
Questionstring.split question Pin
jashimu11-Mar-11 4:59
jashimu11-Mar-11 4:59 
AnswerRe: string.split question Pin
Luc Pattyn11-Mar-11 5:12
sitebuilderLuc Pattyn11-Mar-11 5:12 
AnswerRe: string.split question Pin
Dan Mos11-Mar-11 5:18
Dan Mos11-Mar-11 5:18 
AnswerRe: string.split question Pin
Dalek Dave11-Mar-11 5:19
professionalDalek Dave11-Mar-11 5:19 
AnswerRe: string.split question Pin
#realJSOP12-Mar-11 3:41
professional#realJSOP12-Mar-11 3:41 
QuestionXML File user output [modified] Pin
Pierre besquent10-Mar-11 23:27
Pierre besquent10-Mar-11 23:27 

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.