in global.asax file of my web application I defined:
public void Application_Start(Object sender, EventArgs e) {
String[] besedila = new String[2];
besedila[1] = "test";
Application["besedilo"] = besedila;
}
And then on my page I have:
public partial class objava : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
String test;
String[] besedila = new String[2];
besedila[1] = "test";
test = besedila[1].ToString();
}
}
And I get the following error:
Object reference not set to an instance of an object.
What that could be? Any idea?
Regards,S