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

ASP.NET

 
GeneralRe: reading web site content Pin
dhatchu24-Sep-07 18:55
dhatchu24-Sep-07 18:55 
AnswerRe: reading web site content Pin
Imran Khan Pathan24-Sep-07 19:28
Imran Khan Pathan24-Sep-07 19:28 
QuestionCustom GridView control Problem ? Pin
Adeel Alvi24-Sep-07 18:10
Adeel Alvi24-Sep-07 18:10 
QuestionToken Pin
seemamltn24-Sep-07 14:08
seemamltn24-Sep-07 14:08 
AnswerRe: Token Pin
Christian Graus24-Sep-07 18:21
protectorChristian Graus24-Sep-07 18:21 
QuestionMake custom control read only Pin
kjosh24-Sep-07 12:03
kjosh24-Sep-07 12:03 
AnswerRe: Make custom control read only Pin
Guffa24-Sep-07 12:18
Guffa24-Sep-07 12:18 
AnswerRe: Make custom control read only Pin
Christian Graus24-Sep-07 12:21
protectorChristian Graus24-Sep-07 12:21 
Obviously, you need to work out what is null. Is it customControl1, or is it btn ? If it's btn, then you need to check if btn is null. One thing you could do, is have a bool that you set. Like this

private bool _isEnabled = true;

public bool ButtonEnabled
{
set
{
if (btn != null)
btn.Enabled= value;

_isEnabled = value;
}
}


CreateChildControls()
{
btn=new Button();
btn.Enabled = _isEnabled;
}

I don't believe the code you presented here would even compile, by the way.


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

QuestionMake Wizard Read only Pin
kjosh24-Sep-07 10:55
kjosh24-Sep-07 10:55 
AnswerRe: Make Wizard Read only Pin
Christian Graus24-Sep-07 12:39
protectorChristian Graus24-Sep-07 12:39 
Questioncrystal report as emaill attachment asp.net2.0 Pin
aransiola24-Sep-07 8:09
aransiola24-Sep-07 8:09 
Questionany can help me?? Pin
blade61724-Sep-07 6:16
blade61724-Sep-07 6:16 
AnswerRe: any can help me?? Pin
Not Active24-Sep-07 6:35
mentorNot Active24-Sep-07 6:35 
AnswerRe: any can help me?? Pin
Christian Graus24-Sep-07 12:37
protectorChristian Graus24-Sep-07 12:37 
QuestionWeb parts User control Events Pin
zol_tech24-Sep-07 5:54
zol_tech24-Sep-07 5:54 
QuestionBarcode read and write Pin
Sarfaraj Ahmed24-Sep-07 4:52
Sarfaraj Ahmed24-Sep-07 4:52 
AnswerRe: Barcode read and write Pin
Not Active24-Sep-07 6:13
mentorNot Active24-Sep-07 6:13 
AnswerRe: Barcode read and write Pin
Cfer8324-Sep-07 6:44
Cfer8324-Sep-07 6:44 
Questionneed help pull values from DataSet with DAL Pin
Mio200524-Sep-07 4:46
Mio200524-Sep-07 4:46 
Questionsingle sign on [modified] Pin
acodman24-Sep-07 4:33
acodman24-Sep-07 4:33 
AnswerRe: single sign on Pin
Christian Graus24-Sep-07 12:38
protectorChristian Graus24-Sep-07 12:38 
Questionhow to change datafield property of a boundfield in a gridview Pin
here2learn24-Sep-07 4:32
here2learn24-Sep-07 4:32 
AnswerRe: how to change datafield property of a boundfield in a gridview Pin
saini arun24-Sep-07 18:17
saini arun24-Sep-07 18:17 
QuestionHow AJAX file Used in .Net Pin
varma penmatsa24-Sep-07 2:29
varma penmatsa24-Sep-07 2:29 
AnswerRe: How AJAX file Used in .Net Pin
Guffa24-Sep-07 2:41
Guffa24-Sep-07 2:41 

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.