Feeds:
Posts
Comments

Archive for the ‘Errors’ Category

///<summary>

/// The main entry point for the application.

///</summary>

[STAThread]

staticvoid Main()

{

//AddGlobalHandlers();

Application.EnableVisualStyles();

Application.SetCompatibleTextRenderingDefault(false);

//Application.Run(new MainForm());

Application.ThreadException += newThreadExceptionEventHandler(Application_ThreadException);

AppDomain.CurrentDomain.UnhandledException += newUnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

Application.Run(newMainForm());

}

staticvoid CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)

{

MessageBox.Show(“CurrentDomain_UnhandledException: “ + e.ExceptionObject.ToString());

}

staticvoid Application_ThreadException(object sender, ThreadExceptionEventArgs e)

{

MessageBox.Show(“Application_ThreadException: “ + e.Exception.Message);

}

Read Full Post »

Check your header section, if there is something like <%= xyz%>

Change that to <%# xyz%>

and add following code to code behind.

protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
Page.Header.DataBind();
}

For More Details :

http://www.aspnetresources.com/blog/code_blocks_inside_master_pages_cause_trouble.aspx

Read Full Post »