Wednesday, March 18, 2009

Finding Silverlight is There On Client Or Not In SilverLight2.0

Hi, Few days While Going Through the some Old Code I just came across How To dectect That Client is Silverlight Enabled Or Not..In old days Of Silverlight of 1.0 there were Hell Lot of Umanged Code of Javascript (they were Not bad but Quite Confusing). Know I will Let U know Step By Step How To Detect Client About SilverLight Enabled or Not .. LETS Start Requirement:-

Vsstudio Sp1

IIS

Windows XP(Which I am Using)

and Last Most Important Thing (BIT OF INTEREST)


STEP 1

Goto --> File -->SilverLight Application















Step2

Selecting Website While Creating Silverlight
Project
















Step3
Now Disabling (Silverlight)Addons and Step By Step
Which Would Give The feel of Your Computer is
Not having Silverlight and You Can test The code..
In
Internet Explore(7) --> Tools --> Manage Addon















Step4
Now Moving to
Internet Explore(7) --> Tools --> Manage Addon -->Enable Disable Addon















Step 5
Know Searching Microsoft Silverlight for Disabling














Step 6
Disabling Microsoft Silverlight Addon















Step 7

Now if U will Run the Silverlight what u will See














Step 8

Adding Code Behind in Aspx File To hadle Such siutaion.
In Html Page U have to Just Modify the place
were Microsoft Image Path is Given with
Your Custome Message and Images.














Step 9

Know After Modification The Message and Modifciation U see













Step 10

Once u have Enabled or Installed The
Silverlight U will Get The Follwing
OutPut
















U can Download The Source Code From Follwing Link

http://www.mediafire.com/?hi144eq1ijk

Hope It Helps Some Body

No comments:

Post a Comment