Clear the Render info & change to different info

A

Andrea Williams

I have a form where the user chooses reporting options and when submit is
clicked, I need to present them with dynamically created excel file. In
Classic ASP I would just change the viewing options, but in ASP.NET I'm
using code-behind. Is there a way to clear what is scheduled to be
renedered and write new information into the page render?

OR

Should I Server.Transfer to a different page that renders the correct info?

Andrea
 
K

Ken Dopierala Jr.

Hi Andrea,

You can override the Render event and send back any response you want:

Protected Overrides Sub Render(ByVal writer As
System.Web.UI.HtmlTextWriter)
If (you want the render the page as is) Then
MyBase.Render()
Else
Your rendering code.
End If
End Sub

Good luck! Ken.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top