Click here to Skip to main content
15,890,506 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: DDL and selected item identity Pin
John-ph24-Oct-07 1:25
John-ph24-Oct-07 1:25 
GeneralRe: DDL and selected item identity Pin
Sarfaraj Ahmed24-Oct-07 1:37
Sarfaraj Ahmed24-Oct-07 1:37 
GeneralRe: DDL and selected item identity Pin
John-ph24-Oct-07 1:41
John-ph24-Oct-07 1:41 
GeneralRe: DDL and selected item identity Pin
Sarfaraj Ahmed24-Oct-07 1:49
Sarfaraj Ahmed24-Oct-07 1:49 
Questionscrollbar on top of the page..., Pin
Member 387988124-Oct-07 0:22
Member 387988124-Oct-07 0:22 
JokeRe: scrollbar on top of the page..., Pin
Fred_Smith24-Oct-07 0:53
Fred_Smith24-Oct-07 0:53 
Questioniam not getting minimize button in label in debugging Pin
jagadeeshkumar198424-Oct-07 0:22
jagadeeshkumar198424-Oct-07 0:22 
Questiongetting change forecolor depend on if statement Pin
VinothRao24-Oct-07 0:04
VinothRao24-Oct-07 0:04 
hi,

i got the below code in my page.

protected string ConvertPercent(object number)
{
if (number == DBNull.Value)
return "-";
else
if (number.ToString().StartsWith("-"))
{
ChangePercent1.ForeColor = Color.Red;
return String.Format("{0:F}", number);
}
else
ChangePercent1.ForeColor = Color.Black;
return String.Format("+{0:F}", number);
}

but it seems i getting an error saying
"Object reference not set to an instance of an object"

The ChangePercent1 was initialize using
public System.Web.UI.WebControls.Label ChangePercent1;

BUT still errors persists. Please help me.....
Thx.
AnswerRe: getting change forecolor depend on if statement Pin
Christian Graus24-Oct-07 0:21
protectorChristian Graus24-Oct-07 0:21 
QuestionSpeed Pin
mihksoft23-Oct-07 23:51
mihksoft23-Oct-07 23:51 
AnswerRe: Speed Pin
Christian Graus23-Oct-07 23:52
protectorChristian Graus23-Oct-07 23:52 
AnswerRe: Speed Pin
Guffa24-Oct-07 2:34
Guffa24-Oct-07 2:34 
QuestionUpload a file to database Pin
mukesh.mr0323-Oct-07 23:48
mukesh.mr0323-Oct-07 23:48 
AnswerRe: Upload a file to database Pin
Christian Graus23-Oct-07 23:51
protectorChristian Graus23-Oct-07 23:51 
GeneralRe: Upload a file to database Pin
mukesh.mr0323-Oct-07 23:57
mukesh.mr0323-Oct-07 23:57 
GeneralRe: Upload a file to database Pin
Christian Graus24-Oct-07 0:33
protectorChristian Graus24-Oct-07 0:33 
AnswerRe: Upload a file to database Pin
Imran Khan Pathan24-Oct-07 0:29
Imran Khan Pathan24-Oct-07 0:29 
QuestionSolve my probs plz..., Pin
Member 387988123-Oct-07 23:27
Member 387988123-Oct-07 23:27 
AnswerRe: Solve my probs plz..., Pin
Paul Conrad27-Oct-07 12:03
professionalPaul Conrad27-Oct-07 12:03 
QuestionFileupload issue Pin
Sunil Wise23-Oct-07 23:14
professionalSunil Wise23-Oct-07 23:14 
AnswerRe: Fileupload issue Pin
N a v a n e e t h23-Oct-07 23:20
N a v a n e e t h23-Oct-07 23:20 
GeneralRe: Fileupload issue Pin
Sunil Wise24-Oct-07 1:30
professionalSunil Wise24-Oct-07 1:30 
GeneralRe: Fileupload issue Pin
Sunil Wise24-Oct-07 2:56
professionalSunil Wise24-Oct-07 2:56 
AnswerRe: Fileupload issue Pin
Imran Khan Pathan23-Oct-07 23:24
Imran Khan Pathan23-Oct-07 23:24 
GeneralRe: Fileupload issue Pin
Sunil Wise24-Oct-07 1:30
professionalSunil Wise24-Oct-07 1:30 

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.