Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i am yogesh. my problem is that i need to add silverlight control (progressbar)in my new (asp.net,c#) application.When iam opening silverlight application and adding progressbar control to its toolbox from choose items, everything is ok...
But when i am adding same control using asp.net application toolbox, it doesn't show the control after adding it from choose items.... so what is wrong please suggest me.. i am using vs201, .net framework 4.0, asp.net 4.0....
The control is shown in the toolbox with silverlight app. but not with asp.net application... please help me... is there something i have to install or not...
thanks....
Posted

You cannot directly use Silverlight controls in ASP.NET pages. You have to insert the Silverlight runtime object and point it at the .xap file which is your compiled SilverLight project.

Silverlight is much like Flash in that you are really including a component in the page using an object tag.

I'm guessing you want a progress bar displayed while some process is going on in your ASP.Net page. You might want to consider an AJAX progress bar instead. Silverlight is really meant to be deployed as an independent application hosted in a web page. Passing stuff across the Silverlight/DOM boundary is ugly and takes a lot of Javascript hacks to get the events wired up. You will probably find AJAX easier to use in an ASP.Net solution.
 
Share this answer
 
Comments
yogesh a sharma 18-Jan-12 9:53am    
thanks for your suggestion ... i wiil try it

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