Click here to Skip to main content
15,882,055 members
Home / Discussions / C#
   

C#

 
GeneralRe: Event triger Pin
David Stone19-Sep-02 5:38
sitebuilderDavid Stone19-Sep-02 5:38 
GeneralRe: Event trigger Pin
D Shen19-Sep-02 8:16
D Shen19-Sep-02 8:16 
GeneralRe: Event trigger Pin
D Shen19-Sep-02 8:16
D Shen19-Sep-02 8:16 
GeneralRe: Event trigger Pin
Paul Riley19-Sep-02 9:28
Paul Riley19-Sep-02 9:28 
GeneralRe: Event triger Pin
Shaun Wilde19-Sep-02 11:14
Shaun Wilde19-Sep-02 11:14 
GeneralRe: Event triger Pin
Paul Riley19-Sep-02 11:26
Paul Riley19-Sep-02 11:26 
GeneralRe: Event triger Pin
David Stone19-Sep-02 5:36
sitebuilderDavid Stone19-Sep-02 5:36 
GeneralRe: Event triger Pin
leppie19-Sep-02 5:47
leppie19-Sep-02 5:47 
David Stone wrote:
bool validate = true;
foreach(Textbox txt in this.Controls)
{if(txt.Text = "") validate = false;}

That would work if only TextBoxes were on the form.Blush | :O

Rather:

foreach (Control ctrl in Controls){
 TextBox txt = ctrl as TextBox;
 if (txt != null && txt.Text == "") validate = false;
}


Poke tongue | ;-P

Give them a chance! Do it for the kittens, dear God, the kittens!

GeneralRe: Event triger Pin
D Shen19-Sep-02 8:17
D Shen19-Sep-02 8:17 
GeneralRe: Event triger Pin
leppie19-Sep-02 8:37
leppie19-Sep-02 8:37 
GeneralDataBound WebControl Pin
Shaun Wilde19-Sep-02 1:21
Shaun Wilde19-Sep-02 1:21 
GeneralRe: DataBound WebControl Pin
James T. Johnson19-Sep-02 1:36
James T. Johnson19-Sep-02 1:36 
GeneralRe: DataBound WebControl Pin
Shaun Wilde19-Sep-02 1:48
Shaun Wilde19-Sep-02 1:48 
GeneralRe: DataBound WebControl Pin
James T. Johnson19-Sep-02 2:01
James T. Johnson19-Sep-02 2:01 
GeneralRe: DataBound WebControl Pin
Shaun Wilde19-Sep-02 2:26
Shaun Wilde19-Sep-02 2:26 
GeneralRe: DataBound WebControl Pin
Shaun Wilde19-Sep-02 11:09
Shaun Wilde19-Sep-02 11:09 
GeneralBeginner C# questions Pin
vivosh197818-Sep-02 22:55
vivosh197818-Sep-02 22:55 
GeneralRe: Beginner C# questions Pin
leppie18-Sep-02 23:38
leppie18-Sep-02 23:38 
GeneralRe: Beginner C# questions Pin
James T. Johnson19-Sep-02 0:06
James T. Johnson19-Sep-02 0:06 
GeneralRe: Beginner C# questions Pin
leppie19-Sep-02 0:31
leppie19-Sep-02 0:31 
GeneralDataGrid Pin
vikramlinux18-Sep-02 18:03
vikramlinux18-Sep-02 18:03 
GeneralHanging web request Pin
afronaut18-Sep-02 13:23
afronaut18-Sep-02 13:23 
GeneralRe: Hanging web request Pin
Paul Riley18-Sep-02 13:31
Paul Riley18-Sep-02 13:31 
GeneralRe: Hanging web request Pin
afronaut18-Sep-02 13:32
afronaut18-Sep-02 13:32 
GeneralRe: Hanging web request Pin
afronaut19-Sep-02 5:24
afronaut19-Sep-02 5:24 

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.