1
votes

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() }

2

2 Answers

1
votes

Person (Client) goes to webpage (Server).

Browser (Client) downloads Silverlight app XAP file (from Server)

Browser starts up Silverlight app (on client).

Silverlight App (client) can make calls to web server (server), not the other way around.

What is it exactly you are trying to accomplish?

1
votes

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'.