Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET Silverlight
Hi everyone,
   i am creating an asp.net web site application in visual studio 2010. i have added one silverlight application in my project. it has one user control mainpage.xaml. Every silverlight application when added in asp.net project creates on testpage.xap which can be used for adding that control in our web page. when i add another user control in the same silverlight application, it doesnt create second testpage, so how can i use that control in web page? is it true that we can create only one silverlight control in one silverlight application.??
 

There exists only single user control and single test page for one silverlight application. So for adding another silverlight user control, i have to create another application and another test page. but is there another way to do it???
Posted 17-Nov-11 20:41pm
Edited 17-Nov-11 23:34pm
v2
Comments
Member 8227420 at 21-Dec-11 7:42am
   
Hi,Everyone
 
In my silverlight application by default one user control will test with one test page,But i have added another user control ,How can i test this user control,Is there any process to test another control.
 
Regards
Chakri.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Silverlight is implemented as a browser plugin and is added to a web page as described here: Integrating Silverlight with a Web Page[^]
 
If you have more than one Silverlight application then you can integrate them with your web pages the same way. The .xap file name and/or URI will be different but that's it.
 
Your text doesn't make sense - adding a user control to a Silverlight application has nothing to do with the web page the Silverlight application is hosted on so you can't expect another test page.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,142
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 18 Nov 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100