问题描述
嗨
我正在开发Silverlight 3集成网站.我有一个问题,如下所述.
1.在我的ASP.net主页上,我有一个标头,它在标签中显示日期.标头在表格中格式化.
2.表由表组成,该表包含作为< object>传递的"Silverlight UserControl".在另一个表中,有一个contentplaceholder1,其中需要显示所有.aspx页.所有这些表都在UpdatePanel中.
上面的表本身在UpdatePanel中.
现在的问题是,表2中的Silverlight控件具有一个超链接,该超链接会敲击后面的代码以执行其绑定的click事件,该事件在
中导航.aspx页contentplaceholder1.就像
Hi
I''m developing a silverlight 3 Integrated Website. I have a issue herewith as explained below.
1. In my ASP.net masterpage, I have a header which shows date in a label. The header is formatted in a table.
2. Beneath that a table consists of a table which contains a "Silverlight UserControl" passed as <object> and in another table there is a contentplaceholder1 where all the .aspx pages need to be shown. All these tables are in a UpdatePanel.
And the tables above are in a UpdatePanel themselves.
Now the issue is, the Silverlight control in Table 2 has a hyperlink which hits the code behind to execute its bound click event which navigates a .aspx page in
contentplaceholder1. like
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(toNavigate, riKind.Relative));
发生这种情况时,总是会执行mainpage.xaml的"public MainPage()".
如何避免这种重新加载.
请帮助我.
When this occurs, the mainpage.xaml''s "public MainPage()" is always getting executed.
How to avoid this reloading.
Please help me.
推荐答案
这篇关于Silverlight中的回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!