Click here to Skip to main content
15,915,094 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to disable all controls of aspx page [modified] Pin
Parwej Ahamad27-Sep-07 22:54
professionalParwej Ahamad27-Sep-07 22:54 
GeneralRe: How to disable all controls of aspx page Pin
That's Aragon27-Sep-07 23:15
That's Aragon27-Sep-07 23:15 
GeneralRe: How to disable all controls of aspx page Pin
Christian Graus27-Sep-07 23:16
protectorChristian Graus27-Sep-07 23:16 
GeneralRe: How to disable all controls of aspx page Pin
Christian Graus27-Sep-07 23:15
protectorChristian Graus27-Sep-07 23:15 
GeneralRe: How to disable all controls of aspx page Pin
John-ph27-Sep-07 23:25
John-ph27-Sep-07 23:25 
GeneralRe: How to disable all controls of aspx page Pin
Parwej Ahamad27-Sep-07 23:28
professionalParwej Ahamad27-Sep-07 23:28 
GeneralRe: How to disable all controls of aspx page Pin
That's Aragon27-Sep-07 23:50
That's Aragon27-Sep-07 23:50 
AnswerRe: How to disable all controls of aspx page Pin
John-ph27-Sep-07 23:17
John-ph27-Sep-07 23:17 
Put all the controls inside a container control(panel) and pass the Container Control as a parameter to this function. This will Disable all the server controls that is inside the Container Control.

Private Sub DisableControls(ByVal c As Control, ByVal status As Boolean)
    For Each child As Control In c.Controls
        If TypeOf c Is WebControl Then
           CType(c, WebControl).Enabled = status
        End If
    Next
End Sub


Regards
J O H N Rose | [Rose]

"Even eagles need a push." David McNally

QuestionProblem in Javascript Pin
Vanamaindia27-Sep-07 21:27
Vanamaindia27-Sep-07 21:27 
AnswerRe: Problem in Javascript Pin
Christian Graus27-Sep-07 21:36
protectorChristian Graus27-Sep-07 21:36 
Questionsoposed that i have tree node Pin
Piyush Vardhan Singh27-Sep-07 21:23
Piyush Vardhan Singh27-Sep-07 21:23 
AnswerRe: soposed that i have tree node [modified] Pin
Parwej Ahamad27-Sep-07 22:45
professionalParwej Ahamad27-Sep-07 22:45 
GeneralRe: soposed that i have tree node Pin
Piyush Vardhan Singh27-Sep-07 23:13
Piyush Vardhan Singh27-Sep-07 23:13 
GeneralRe: soposed that i have tree node Pin
Parwej Ahamad27-Sep-07 23:15
professionalParwej Ahamad27-Sep-07 23:15 
GeneralRe: soposed that i have tree node Pin
Piyush Vardhan Singh28-Sep-07 0:14
Piyush Vardhan Singh28-Sep-07 0:14 
QuestionJavaScript in Asp.net Problem Pin
Vanamaindia27-Sep-07 21:10
Vanamaindia27-Sep-07 21:10 
AnswerRe: JavaScript in Asp.net Problem Pin
Sebastian T Xavier27-Sep-07 21:21
Sebastian T Xavier27-Sep-07 21:21 
QuestionHow to Display This?? Pin
varshavmane27-Sep-07 20:42
varshavmane27-Sep-07 20:42 
AnswerRe: How to Display This?? Pin
Christian Graus27-Sep-07 21:38
protectorChristian Graus27-Sep-07 21:38 
GeneralRe: How to Display This?? Pin
varshavmane27-Sep-07 21:48
varshavmane27-Sep-07 21:48 
GeneralRe: How to Display This?? Pin
Christian Graus27-Sep-07 21:56
protectorChristian Graus27-Sep-07 21:56 
GeneralRe: How to Display This?? Pin
varshavmane27-Sep-07 22:01
varshavmane27-Sep-07 22:01 
GeneralRe: How to Display This?? Pin
Christian Graus27-Sep-07 22:24
protectorChristian Graus27-Sep-07 22:24 
QuestionError messages on adding Crystal report to My project Pin
chackotijo27-Sep-07 20:41
chackotijo27-Sep-07 20:41 
Questionwanted a tool that facilitate some text comparision. Pin
scicorp27-Sep-07 20:15
scicorp27-Sep-07 20: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.