Click here to Skip to main content
15,890,670 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Text Changed and javascript confirm box Pin
Abhishek Sur3-Nov-09 0:59
professionalAbhishek Sur3-Nov-09 0:59 
GeneralRe: Text Changed and javascript confirm box Pin
gbabu173-Nov-09 1:06
gbabu173-Nov-09 1:06 
GeneralRe: Text Changed and javascript confirm box Pin
Abhishek Sur3-Nov-09 3:47
professionalAbhishek Sur3-Nov-09 3:47 
QuestionSum of row value in Microsoft Report Viewer Pin
sandhya143-Nov-09 0:21
sandhya143-Nov-09 0:21 
AnswerRe: Sum of row value in Microsoft Report Viewer Pin
sashidhar3-Nov-09 0:54
sashidhar3-Nov-09 0:54 
Questionsitemappath is not showing sub categories... Pin
RajpootRohan2-Nov-09 23:34
professionalRajpootRohan2-Nov-09 23:34 
AnswerRe: sitemappath is not showing sub categories... Pin
Nishant Singh2-Nov-09 23:44
Nishant Singh2-Nov-09 23:44 
QuestionHttp Modules Pin
Nishant Singh2-Nov-09 22:37
Nishant Singh2-Nov-09 22:37 
Hi ,
I am looking at the working of HttpModule lately ..... I am stuck up at a place
I have a class implementing IHttpModule which is supposed to catch any unhadled exception and redirect to a default page.

public class HttpModule2 : IHttpModule
{
    public void Dispose()
    {

    }
    public void Init(HttpApplication App)
    {

        App.Error += new EventHandler(App_EndRequest);


    }

    void App_EndRequest(object sender, EventArgs e)
    {
        HttpApplication App = (HttpApplication)(sender);
        App.Response.Redirect("Default.aspx",true);
    }

}


Now after that I put it in the web config

  <httpModules>

<add name="ErrorModule" type="HttpModule2"/>
</httpModules>


but now if I introduce a divide by zero error in my code

protected void LinkButton1_Click(object sender, EventArgs e)
    {
        try
        {
            int k = 0;
            int m = 100 / k;
            Response.Redirect("MyTxt.txt");
        }
        catch (Exception ex)
        {
            throw ex;
        }
    
    }


it's still showing me the error page is there something i am missing , actually I am touching this area after 6 months or so ..i must be forgetting something. Poke tongue | ;-P
AnswerRe: Http Modules Pin
Abhishek Sur2-Nov-09 23:56
professionalAbhishek Sur2-Nov-09 23:56 
QuestionPDF Pin
sharmilajv2-Nov-09 21:49
sharmilajv2-Nov-09 21:49 
AnswerRe: PDF Pin
Christian Graus2-Nov-09 21:56
protectorChristian Graus2-Nov-09 21:56 
GeneralRe: PDF Pin
sharmilajv2-Nov-09 22:04
sharmilajv2-Nov-09 22:04 
GeneralRe: PDF Pin
Christian Graus2-Nov-09 22:06
protectorChristian Graus2-Nov-09 22:06 
QuestionUnable to access ASP.Net site Pin
Khaja A. Imtiaz2-Nov-09 21:09
Khaja A. Imtiaz2-Nov-09 21:09 
AnswerRe: Unable to access ASP.Net site Pin
Christian Graus2-Nov-09 21:17
protectorChristian Graus2-Nov-09 21:17 
AnswerRe: Unable to access ASP.Net site Pin
Abhishek Sur2-Nov-09 21:29
professionalAbhishek Sur2-Nov-09 21:29 
AnswerRe: Unable to access ASP.Net site Pin
Vimalsoft(Pty) Ltd2-Nov-09 21:46
professionalVimalsoft(Pty) Ltd2-Nov-09 21:46 
GeneralRe: Unable to access ASP.Net site Pin
Khaja A. Imtiaz2-Nov-09 22:13
Khaja A. Imtiaz2-Nov-09 22:13 
GeneralRe: Unable to access ASP.Net site Pin
Vimalsoft(Pty) Ltd2-Nov-09 22:14
professionalVimalsoft(Pty) Ltd2-Nov-09 22:14 
GeneralRe: Unable to access ASP.Net site Pin
Khaja A. Imtiaz2-Nov-09 22:18
Khaja A. Imtiaz2-Nov-09 22:18 
GeneralRe: Unable to access ASP.Net site Pin
Khaja A. Imtiaz2-Nov-09 22:20
Khaja A. Imtiaz2-Nov-09 22:20 
QuestionRequest.Querystring "undefined" Pin
garfield1852-Nov-09 20:47
garfield1852-Nov-09 20:47 
AnswerRe: Request.Querystring "undefined" Pin
Christian Graus2-Nov-09 20:49
protectorChristian Graus2-Nov-09 20:49 
GeneralRe: Request.Querystring "undefined" Pin
garfield1852-Nov-09 21:16
garfield1852-Nov-09 21:16 
GeneralRe: Request.Querystring "undefined" Pin
Christian Graus2-Nov-09 21:23
protectorChristian Graus2-Nov-09 21:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.