开发者

Silverlight - server side initialization

I am new to SilverLight and also web development. When the webserver application for the Silverlight app sta开发者_如何学运维rts 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() }


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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜