Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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)); 


When this occurs, the mainpage.xaml's "public MainPage()" is always getting executed.
How to avoid this reloading.

Please help me.
Posted
Updated 25-May-11 23:15pm
v3

1 solution

I would add a query string element to toNavigate that the page could use to say "hey, this is coming from the silverlight module, so I need to do something a little differently".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900