Click here to Skip to main content
15,903,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Sending email from asp.net page User never receive sended email Pin
Parwej Ahamad21-Dec-08 5:37
professionalParwej Ahamad21-Dec-08 5:37 
QuestionDeployment Troubles Pin
Muhammad Gouda21-Dec-08 0:04
Muhammad Gouda21-Dec-08 0:04 
AnswerRe: Deployment Troubles Pin
Abhijit Jana21-Dec-08 1:26
professionalAbhijit Jana21-Dec-08 1:26 
QuestionHow can I make Help file for my web application in ASP.NET n C#? Pin
Ravi Munde20-Dec-08 22:31
Ravi Munde20-Dec-08 22:31 
AnswerRe: How can I make Help file for my web application in ASP.NET n C#? Pin
Christian Graus20-Dec-08 22:55
protectorChristian Graus20-Dec-08 22:55 
AnswerRe: How can I make Help file for my web application in ASP.NET n C#? Pin
Abhijit Jana21-Dec-08 1:30
professionalAbhijit Jana21-Dec-08 1:30 
AnswerRe: How can I make Help file for my web application in ASP.NET n C#? Pin
Not Active21-Dec-08 2:58
mentorNot Active21-Dec-08 2:58 
QuestionSettings a webusercontrol object's property Pin
TheFM23420-Dec-08 21:27
TheFM23420-Dec-08 21:27 
I'm trying to add a webusercontrol I've created dynamically through a page. I have the properties all set up correctly, and those are working. What happens when the Page_Load is that the labels that I have in the control are still null when the Page_Load runs, so a NullReferenceNotHandled exception is thrown when I try to access a label's Text property. What am I doing wrong?

Maybe I'm using the webusercontrol in the wrong way, I'm used to writing desktop applications...

He's the code I'm using, assume that I have the correct code for the properties

public NewsPost(string title, string date, string message, int newsId)
{
    this.Title = title;
    this.Date = date;
    this.Message = message;
    this.NewsId = newsId;
}

protected void Page_Load(object sender, EventArgs e)
{
    lblTitle.Text = Title; //NullReferenceNotHandled error is thrown here
    lblDate.Text = Date;
    lblMessage.Text = Message;
}

AnswerRe: Settings a webusercontrol object's property Pin
Christian Graus20-Dec-08 22:56
protectorChristian Graus20-Dec-08 22:56 
QuestionHow i can undrestand a client user is exited from Web Application? Pin
Saba0220-Dec-08 21:21
Saba0220-Dec-08 21:21 
AnswerRe: How i can undrestand a client user is exited from Web Application? Pin
Christian Graus20-Dec-08 22:59
protectorChristian Graus20-Dec-08 22:59 
AnswerRe: How i can undrestand a client user is exited from Web Application? Pin
Muhammad Gouda20-Dec-08 23:01
Muhammad Gouda20-Dec-08 23:01 
GeneralRe: How i can undrestand a client user is exited from Web Application? Pin
Christian Graus20-Dec-08 23:05
protectorChristian Graus20-Dec-08 23:05 
AnswerRe: How i can undrestand a client user is exited from Web Application? Pin
StianSandberg21-Dec-08 16:47
StianSandberg21-Dec-08 16:47 
QuestionRetrieve multiple Eval in textbox. Pin
kavitha_blueindia20-Dec-08 6:07
kavitha_blueindia20-Dec-08 6:07 
AnswerRe: Retrieve multiple Eval in textbox. Pin
Christian Graus20-Dec-08 10:09
protectorChristian Graus20-Dec-08 10:09 
AnswerRe: Retrieve multiple Eval in textbox. Pin
AlexeiXX320-Dec-08 16:29
AlexeiXX320-Dec-08 16:29 
GeneralRe: Retrieve multiple Eval in textbox. Pin
kavitha_blueindia21-Dec-08 5:27
kavitha_blueindia21-Dec-08 5:27 
GeneralRe: Retrieve multiple Eval in textbox. Pin
AlexeiXX321-Dec-08 5:55
AlexeiXX321-Dec-08 5:55 
Questionback ground image Pin
bapu288920-Dec-08 5:47
bapu288920-Dec-08 5:47 
AnswerRe: back ground image Pin
Agrawalbs20-Dec-08 8:52
Agrawalbs20-Dec-08 8:52 
QuestionRe: back ground image Pin
bapu288921-Dec-08 2:52
bapu288921-Dec-08 2:52 
Questionfetch UP key event Pin
John.G20-Dec-08 2:15
John.G20-Dec-08 2:15 
AnswerRe: fetch UP key event Pin
Abhijit Jana20-Dec-08 2:34
professionalAbhijit Jana20-Dec-08 2:34 
QuestionRegular Expression Validation Pin
shanthi jothi19-Dec-08 23:58
shanthi jothi19-Dec-08 23:58 

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.