Lahiru Kalutotage

Lahiru Kalutotage

  • 1.6k
  • 137
  • 1.7k

i wat to clear existing Response.Header and add a new header.

Aug 16 2023 6:50 AM

I wrote two methods inside of a button click event. one for download to excel file. second one for download to text file. Both have  " Response.AddHeader"  codeline.  i want to clear the Respond.Header() after the 1st method execution. 

i also tried those things.

• response.clearcontent()

• Response.ClearHeaders()

• Response.Clear()

 

but not worked.


Answers (6)