I am new to SilverLight and also web development.
When the webserver application for the Silverlight app starts up I want to kick off some processes (server side) .. how do I do this .. there is no Main() or any other way I can see of doing this.
I have a feeling it is to do with the html tag on the startup page which currently point to a .XAP file.
If I want to instantiate a class called Startup when the server app begins .. how do I do this.
I hope this is clear.
It is the equivalent of a console app :
void Main()
{
Startup s = new Startup()
}
The answer to the question .. “where do I put code that I want to run at startup” is the Global.asax file .. which is in the VS list when you go ‘create new item’.