this code shows me an error while setting the label value the error shown is: object reference not set to an instance of an object
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
_Default obj = new _Default();
Thread thread = new Thread(new ThreadStart(obj.ThreadStart));
thread.Start();
}
public void ThreadStart()
{
reading();
}
private void reading()
{
label.text = "hi";
}
}
0 Replies - 2150 Views - Last Post: 01 November 2011 - 10:41 PM
#1
Error while Setting Web label Control form a Thread
Posted 01 November 2011 - 10:41 PM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote


|