Redirect to Another Page in Handler in Asp.net using C#, VB.NET

Introduction

Here I will explain how to redirect to another page in handler (.ashx) file in asp.net

Description:

In previous articles I explained jQuery get set text to label, Get set asp.net control values in jQuery, jQuery Set Get textbox control value, jQuery get dropdown selected value & text, JavaScript create watermark text for textbox and many code snippets articles relating to JQuery, JavaScript, asp.net. Now I will explain how to redirect to another page in handler (.ashx) file in asp.net.

Redirect user to Another web page in handler(.ashx)

To redirect to another web page in handler we need to write the code like as shown below

HttpContext.Current.Response.Redirect("Default.aspx", false);
In this way we can redirect user to another web page in handler(.ashx) file

Comments