Click here to Skip to main content
15,920,896 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Calling Textbox properties incode behind Pin
M LN Rao21-Oct-07 23:48
M LN Rao21-Oct-07 23:48 
AnswerRe: Calling Textbox properties incode behind Pin
John-ph22-Oct-07 0:29
John-ph22-Oct-07 0:29 
QuestionDisable all controls of a page at once [modified] Pin
Gandalf_TheWhite21-Oct-07 23:23
professionalGandalf_TheWhite21-Oct-07 23:23 
AnswerRe: Disable all controls of a page at once Pin
M LN Rao21-Oct-07 23:51
M LN Rao21-Oct-07 23:51 
GeneralRe: Disable all controls of a page at once [modified] -for M LN RAO Pin
Gandalf_TheWhite22-Oct-07 0:00
professionalGandalf_TheWhite22-Oct-07 0:00 
GeneralRe: Disable all controls of a page at once [modified] -for M LN RAO Pin
John-ph22-Oct-07 0:28
John-ph22-Oct-07 0:28 
GeneralRe: Disable all controls of a page at once [modified] -for John Prabhu Pin
Gandalf_TheWhite22-Oct-07 0:35
professionalGandalf_TheWhite22-Oct-07 0:35 
GeneralRe: Disable all controls of a page at once -for John Prabhu Pin
John-ph22-Oct-07 2:54
John-ph22-Oct-07 2:54 
Did you try replacing 'AS' in the place of 'IS'? Does it works? I don't think so. Christian might have told this in terms of VB.NET code. Cause replacing 'IS' with 'AS' would work in VB.NET. But There is a world of difference in using these both in a particular context(gives different meaning).

'AS' - used when declaring a variable/object states that a Variable is declared as Type specified.
'IS' - used when checking for the TYPE of a particular variable/object
Dim txtControl AS TextBox

If TypeOf txtControl IS TextBox

can you makeout the difference between the above two statements. below there is a VB code that does what you exactly asked and in this context see how AS and IS are used.
For Each child As Control In c.Controls        
  If TypeOf child Is WebControl Then           
    CType(child , WebControl).Enabled = False
  End If    
Next


Regards
 - J O N -



QuestionDynamic Loading for Infragistics TreeView Pin
kapil bhatnagar21-Oct-07 23:10
kapil bhatnagar21-Oct-07 23:10 
Questionpage load on postback Pin
Big Ralph21-Oct-07 23:03
Big Ralph21-Oct-07 23:03 
AnswerRe: page load on postback Pin
M LN Rao21-Oct-07 23:52
M LN Rao21-Oct-07 23:52 
GeneralRe: page load on postback Pin
Big Ralph22-Oct-07 0:34
Big Ralph22-Oct-07 0:34 
GeneralRe: page load on postback Pin
M LN Rao22-Oct-07 2:10
M LN Rao22-Oct-07 2:10 
GeneralRe: page load on postback Pin
Big Ralph22-Oct-07 6:03
Big Ralph22-Oct-07 6:03 
QuestionDoubt about resource files Pin
hogan.smith21-Oct-07 22:58
hogan.smith21-Oct-07 22:58 
AnswerRe: Doubt about resource files Pin
Christian Graus21-Oct-07 22:59
protectorChristian Graus21-Oct-07 22:59 
GeneralRe: Doubt about resource files Pin
hogan.smith21-Oct-07 23:10
hogan.smith21-Oct-07 23:10 
GeneralRe: Doubt about resource files Pin
Christian Graus21-Oct-07 23:52
protectorChristian Graus21-Oct-07 23:52 
GeneralRe: Doubt about resource files Pin
hogan.smith21-Oct-07 23:57
hogan.smith21-Oct-07 23:57 
GeneralRe: Doubt about resource files Pin
hogan.smith22-Oct-07 0:06
hogan.smith22-Oct-07 0:06 
QuestionDecimal(18,2) Regular Expression Pin
Mr.Sam21-Oct-07 22:52
Mr.Sam21-Oct-07 22:52 
AnswerRe: Decimal(18,2) Regular Expression Pin
Christian Graus21-Oct-07 22:59
protectorChristian Graus21-Oct-07 22:59 
AnswerRe: Decimal(18,2) Regular Expression Pin
kapil bhatnagar21-Oct-07 23:04
kapil bhatnagar21-Oct-07 23:04 
GeneralRe: Decimal(18,2) Regular Expression [modified] Pin
Mr.Sam21-Oct-07 23:09
Mr.Sam21-Oct-07 23:09 
GeneralRe: Decimal(18,2) Regular Expression Pin
kapil bhatnagar21-Oct-07 23:18
kapil bhatnagar21-Oct-07 23:18 

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.