Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Can we use Handler (.ashx) files in Silverlight??

Can we use Handler (.ashx) files in Silverlight??

Scheduled Pinned Locked Moved WPF
csharpdotnetwcfcomquestion
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mohammed Hameed
    wrote on last edited by
    #1

    Is it possible to use handler files in Silverlight. If yes, please suggest how.

    My Reading-o-Meter

    Previous -> Read "CLR via C#" by Jeffrey Richter. Current -> Exploring WCF thru Apress' "Pro WCF" by Chris Peiris and Dennis Mulder. Next -> Need to read "The Art of Computer Programming" by Donald E. Knuth.

    My blog - My recent article

    E A 2 Replies Last reply
    0
    • M Mohammed Hameed

      Is it possible to use handler files in Silverlight. If yes, please suggest how.

      My Reading-o-Meter

      Previous -> Read "CLR via C#" by Jeffrey Richter. Current -> Exploring WCF thru Apress' "Pro WCF" by Chris Peiris and Dennis Mulder. Next -> Need to read "The Art of Computer Programming" by Donald E. Knuth.

      My blog - My recent article

      E Offline
      E Offline
      Emmanuel Medina
      wrote on last edited by
      #2

      I honestly don't know but googling for ashx files silverlight[^] I found this[^] which might be useful for you. Since it's in codeplex you can download the code and look at how they implemented it. From the homepage:

      Codeplex:

      HSS Interlink™, a File Upload and Download management and control suite for ASP.NET, HTML/JS, MVC 3/4, Silveright 5, .NET 4.0 and Windows Azure Blob Storage

      If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

      A M 2 Replies Last reply
      0
      • E Emmanuel Medina

        I honestly don't know but googling for ashx files silverlight[^] I found this[^] which might be useful for you. Since it's in codeplex you can download the code and look at how they implemented it. From the homepage:

        Codeplex:

        HSS Interlink™, a File Upload and Download management and control suite for ASP.NET, HTML/JS, MVC 3/4, Silveright 5, .NET 4.0 and Windows Azure Blob Storage

        If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

        A Offline
        A Offline
        AlphaDeltaTheta
        wrote on last edited by
        #3

        That's not what he asked

        Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.

        ~ Carl von Clausewitz ~

        Source

        1 Reply Last reply
        0
        • M Mohammed Hameed

          Is it possible to use handler files in Silverlight. If yes, please suggest how.

          My Reading-o-Meter

          Previous -> Read "CLR via C#" by Jeffrey Richter. Current -> Exploring WCF thru Apress' "Pro WCF" by Chris Peiris and Dennis Mulder. Next -> Need to read "The Art of Computer Programming" by Donald E. Knuth.

          My blog - My recent article

          A Offline
          A Offline
          AlphaDeltaTheta
          wrote on last edited by
          #4

          We use handler files for handling HTTP requests in ASP.NET. Silverlight is a RIA framework, it's completely unrelated to APS.NET and thus no ASP.NET technology is present in it. If you're asking about posting to a handler (.ashx address) you can do that with a HttpRequest, the same way as you would do with any other server. Good Luck!

          Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.

          ~ Carl von Clausewitz ~

          Source

          M 1 Reply Last reply
          0
          • E Emmanuel Medina

            I honestly don't know but googling for ashx files silverlight[^] I found this[^] which might be useful for you. Since it's in codeplex you can download the code and look at how they implemented it. From the homepage:

            Codeplex:

            HSS Interlink™, a File Upload and Download management and control suite for ASP.NET, HTML/JS, MVC 3/4, Silveright 5, .NET 4.0 and Windows Azure Blob Storage

            If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

            M Offline
            M Offline
            Mohammed Hameed
            wrote on last edited by
            #5

            Thanks Emmanuel. I will check it because it is also using some handler.

            My Reading-o-Meter

            Previous -> Read "CLR via C#" by Jeffrey Richter. Current -> Exploring WCF thru Apress' "Pro WCF" by Chris Peiris and Dennis Mulder. Next -> Need to read "The Art of Computer Programming" by Donald E. Knuth.

            My blog - My recent article

            1 Reply Last reply
            0
            • A AlphaDeltaTheta

              We use handler files for handling HTTP requests in ASP.NET. Silverlight is a RIA framework, it's completely unrelated to APS.NET and thus no ASP.NET technology is present in it. If you're asking about posting to a handler (.ashx address) you can do that with a HttpRequest, the same way as you would do with any other server. Good Luck!

              Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.

              ~ Carl von Clausewitz ~

              Source

              M Offline
              M Offline
              Mohammed Hameed
              wrote on last edited by
              #6

              Thanks Amitosh. Yes, agreed. But the launching page and request/response processing is through Asp.Net only for Silverlight apps. Therefore only at client side SL comes into picture but for server side it is Asp.Net, which takes for all the processing. So, my question is can I call a handler file from a SL screen (Xaml.cs or viewModel)?

              My Reading-o-Meter

              Previous -> Read "CLR via C#" by Jeffrey Richter. Current -> Exploring WCF thru Apress' "Pro WCF" by Chris Peiris and Dennis Mulder. Next -> Need to read "The Art of Computer Programming" by Donald E. Knuth.

              My blog - My recent article

              A 1 Reply Last reply
              0
              • M Mohammed Hameed

                Thanks Amitosh. Yes, agreed. But the launching page and request/response processing is through Asp.Net only for Silverlight apps. Therefore only at client side SL comes into picture but for server side it is Asp.Net, which takes for all the processing. So, my question is can I call a handler file from a SL screen (Xaml.cs or viewModel)?

                My Reading-o-Meter

                Previous -> Read "CLR via C#" by Jeffrey Richter. Current -> Exploring WCF thru Apress' "Pro WCF" by Chris Peiris and Dennis Mulder. Next -> Need to read "The Art of Computer Programming" by Donald E. Knuth.

                My blog - My recent article

                A Offline
                A Offline
                AlphaDeltaTheta
                wrote on last edited by
                #7

                You do it by sending a request through the HttpRequest class to the handler url and passing url parameters and/or custom HTTP headers. This MSDN Page explains a lot.[^]

                Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.

                ~ Carl von Clausewitz ~

                Source

                M 1 Reply Last reply
                0
                • A AlphaDeltaTheta

                  You do it by sending a request through the HttpRequest class to the handler url and passing url parameters and/or custom HTTP headers. This MSDN Page explains a lot.[^]

                  Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.

                  ~ Carl von Clausewitz ~

                  Source

                  M Offline
                  M Offline
                  Mohammed Hameed
                  wrote on last edited by
                  #8

                  Thanks Amitosh.

                  My Reading-o-Meter

                  Previous -> Read "CLR via C#" by Jeffrey Richter. Current -> Exploring WCF thru Apress' "Pro WCF" by Chris Peiris and Dennis Mulder. Next -> Need to read "The Art of Computer Programming" by Donald E. Knuth.

                  My blog - My recent article

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups