Handles the request. This is where you put your business logic.

Namespace: DotNetNuke.Framework
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public abstract void HandleRequest()
Visual Basic
Public MustOverride Sub HandleRequest

Remarks

This method should result in a call to one (or more) of the following methods:

 Copy imageCopy Code
context.Response.BinaryWrite();

 Copy imageCopy Code
context.Response.Write();

 Copy imageCopy Code
context.Response.WriteFile();

 Copy imageCopy Code
someStream.Save(context.Response.OutputStream);

etc...

If you want a download box to show up with a pre-populated filename, add this call here (supplying a real filename).

 Copy imageCopy Code
Response.AddHeader("Content-Disposition"
                , "attachment; filename=\"" + Filename + "\"");

See Also