开发者

Why are the InitParams I pass into Silverlight always empty?

My Silverlight application needs one parameter, an integer. In my Html, I have written:

<param name="InitParameters" value="UserId=1" />

In code I am reading the parameters in:

foreach (KeyValuePair<string, string> pair in e.InitParams)
{
    Resources.开发者_运维百科Add(pair.Key, pair.Value);
}

e.InitParams is always empty. Any ideas?


Because I'm passing in "InitParameters" instead of "InitParams". That's what I get for staring at my code for too long.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜