Skip to main content

Microsoft Silverlight

Answered Question Will Deep Linking be part of Silverlight by MSFT?RSS Feed

(0)

BenHayat
BenHayat

Participant

Participant

1033 points

600 Posts

Will Deep Linking be part of Silverlight by MSFT?

As the title says, can we expect from MSFT to incorporate Deep Linking into SL framework, or do we need to resort to our own soluttion?

If the later, can you [MSFT] provide a guideline how we can change the URL and bookmark and also, if the user enters a URL, how we can jump to the section of t he application is pointing to?

Thanks!

___________
Best Regards;
..Ben

Silverlight & WPF Insider
Please visit www.MicroIntelligence.Com For our services!

Alan Cobb
Alan Cobb

Member

Member

445 points

197 Posts

Re: Will Deep Linking be part of Silverlight by MSFT?

Hi Ben,

How about using HtmlPage.Document.QueryString?  So a user could access your hypothetical SL app with any of these URLs:

www.mydomain.com/mypath/MySLApp.htm  or
www.mydomain.com/mypath/MySLApp.htm?SomeDeepLinkingID=1234 or
www.mydomain.com/mypath/MySLApp.htm?SomeDeepLinkingID=5678

(Edited per Ben's comment:)
www.-YourDomain.com-/YourPath/YourSLApp.htm  or
www.-YourDomain.com-/YourPath/YourSLApp?SomeDeepLinkingID=1234 or
www.-YourDomain.com-/YourPath/YourSLApp?SomeDeepLinkingID=5678


In Nikhil Kothari's (MS SL/ASP.NET guy) blog post from 2008-Jul-02 http://www.nikhilk.net/Search-RIA.aspx he says in part:

"...Silverlight apps can also support deep linking which is also important for facilitating relevance. Essentially, Silverlight provides simple APIs to allow the app to easily consume the URL it was loaded from, and use information on the URL query string to load and display appropriate data."

See also: http://silverlight.net/forums/p/19979/68877.aspx#68877

Alan Cobb
www.alancobb.com/blog (Silverlight blog)

BenHayat
BenHayat

Participant

Participant

1033 points

600 Posts

Re: Will Deep Linking be part of Silverlight by MSFT?

Hi Alan;

Thanks for the info. but the three links you provides, don't take me to anything related to this subject.


 

___________
Best Regards;
..Ben

Silverlight & WPF Insider
Please visit www.MicroIntelligence.Com For our services!

Alan Cobb
Alan Cobb

Member

Member

445 points

197 Posts

Re: Will Deep Linking be part of Silverlight by MSFT?

Hi Ben,

Yes, I see how that is a bit confusing Smile.  (There really is a domain called mydomain.com.)  I just edited my original post to make it clearer.  Those URLs were just supposed to indicate how you could use a query string with a hypothetical SL app.

Alan Cobb
www.alancobb.com/blog (Silverlight blog)

Yi-Lun Luo - MSFT
Yi-Lun L...

All-Star

All-Star

25052 points

2,747 Posts

Answered Question

Re: Will Deep Linking be part of Silverlight by MSFT?

Hello, maybe I don't understand you very well. But have you tried something like this?

//Do anything you like, such as scroll to a specific place. And then:
HtmlPage.Window.SetProperty("location", "http://YourDomain/YourHostHtmlPage#test");

 

When the user saves a book mark, the new address will be saved. If the user types the above link in the browser, you should handle it on the server side to retrieve the tag followed by #. Then pass the tag to Silverlight as an InitParam. In the Silverlight application, you do the proper work based on the InitParam.

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.

BenHayat
BenHayat

Participant

Participant

1033 points

600 Posts

Re: Will Deep Linking be part of Silverlight by MSFT?

If the user types the above link in the browser, you should handle it on the server side to retrieve the tag followed by #. Then pass the tag to Silverlight as an InitParam. In the Silverlight application, you do the proper work based on the InitParam.

Hi anf Thanks for reply Yi-Lun;

Since I'm not an ASP guy, this was the mysterious part in my head, to see how the client needs to fetch after # sign. It's more clear now.

Thanks! 

___________
Best Regards;
..Ben

Silverlight & WPF Insider
Please visit www.MicroIntelligence.Com For our services!
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities