Results 1 to 2 of 2

Thread: Modify/add response header from ASMX?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091

    Modify/add response header from ASMX?

    I have a need to specify a custom response header from code when my web service is called. I know that from an ASPX page, you can easily modify response headers, but it is not so obvious from withing an ASMX page. Any help would be appreciated.

    Visual Studio 2010

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Modify/add response header from ASMX?

    Try something like

    context.Response.Headers.Add(............)

    That adds response headers. If you want Soap Headers, look at this

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width