.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

HTTP Module and PageLife Cycle in ASP.NET page

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ASP.Net

Hello All,

Need help on one issue, suppose you have a web page(aspx) and having Text box and Submit button on it.

you have added text in this text box and clickd on this submit buton.

In page life cycle where (in which events) you will get value of this text box. ? 

Thanks and Regards,

Nilesh Thakur.

View Complete Post

More Related Resource Links

page load timeouts and http 500 on MOSS2007


Hi All

I'm hoping someone can point me in the right direction re troubleshooting. We have a MOSS server farm - 3 WFE 1 APP 1 SQL cluster. All Server 2008 sp1 x64. We see occasional http timeouts (HttpException (0x80004005): Request timed out) with associated http 500 error. I have enabled failed request tracing and can see the following:

SiteId 754431215
AppPoolId SharePoint - intranet.*********.com80
ConnId 1610966466
RawConnId 0
RequestURL http://intranet.*********.com:80/Pages/default.aspx
RequestVerb GET

and then later in the trace:

ModuleName IsapiModule
Notification 128
HttpStatus 500
HttpReason Internal Server Error
HttpSubStatus 0
ErrorCode 0
ErrorCode The operation completed successfully. (0x0)

The problem happens on other pages too but the rest of the time the page is returned in less than 5 seconds. The server app logs and sharepoint ULS logs do not give any more detailed info. What I want to know is what other troubleshooting step can I take for http500 errors.

In the past on 32bit environments I have used de

http module calling order


Our site uses urlRewriter http module that does the url rewriting for us.

I want to create another http module that will handle our customize URL redirects. Now I want this new customize http module to be call before the UrlRewriter module (to avoid page not found messages the UrlRewriter generates). Is there a way we can contol the calling order ?

http module


I am trying to write a http module that redirect the url:




basically i got a lookup table that contain the Url Alias "breaking_news.aspx"  and its associate ID. Any idea how can i accomplished it?

HTTP Module in ASP

is there any mechanism similar to HTTP Module in classic ASP?

Rewriter http module problem in IIS 7

I had this problem a few months ago however this time I cannot seem to fix it.The module uses redirection rules read from a database to redirect non-exisistant pages.  However I get resource cannot be found errors in IIS 7.IIRC the last time I simply set the application pool to classic and the redirecting worked.  I assumed doing this again would fix the problem. However it doesn't.  When I change the application pool for the site to  ASP.NET v4.0 Classic I get this error "Handler "PageHandlerFactory-ISAPI-4.0_32bit" has a bad module "IsapiModule" in its module list".The project has recently been upgraded to use v4 of the framework (it was v2 previously). What should I be looking at to try and solve this problem.

css files not loading when viewing page at http://localhost...

Hello, has anyone had the following problem: css files are in the head element, and the styles are clearly being picked up by the .aspx page when in Design or Split view. Yet when running on localhost, the stylesheet has no effect. And when publishing the website to IIS on a remote server, the css clearly does take effect. I've never seen anything like this... 

Sharepoint list NewFormUsr form page gives HTTP 404 error



We have main SP list say X, within that we have other child SP list say A, B and C. When I view all available list in the SP site I can view all list here (http://server/sitename/_layouts/viewlists.aspx?Basetype=0)

When trying to add new item individually to child list the NewFormUsr.aspx page opens with popup message "You are only allowed to add new items from the [Main List Name] Screen".

Going back to main list DispFormUsr.aspx page I can see a form with all columns of the main list and at the bottom all child list with a link to add new items to them. However, when we try to add new item to child list from this page the NewFormUsr.aspx for child list gives webpage cannot be found error. I'm not sure why this suddenly started to happen as it use to work before. Can someone advice if they had similar problem and how was it solved?


Use VS Project Module to Deploy Page to Central Admin


Does anyone know if it's possible to use a Visual Studio project Module to provision a page to the Central Admin site when a SITE feature is activated?

If I use  

<Module Name="MirrorAdmin" Url="_admin/Datagility">
    <File Path="MirrorAdmin.aspx" Url="MirrorAdmin.aspx" />

(or similar, I haven't copied and pasted) the file gets deployed to a folder called _admin under the site where my solution gets deployed. Do I need to create a separate solution and deploy it to the admin site or is there something I can use in the Url= element to deploy the page to the correct place?


ASP.NET Page Life Cycle question


Hi folks,

I have a doubt about when javascript (from markup and .js files) is read and executed in ASP.NET Page Life Cycle

In this article is not clear:


Please may you help me?

Thanks a lot

Http module works under IIS6, but not under IIS 7


I have a module named AbleVF, under IIS6, I map it to wildcard so it can process all requests, which worked fine.

Under IIS7,  at the beginning I could not make it work, after some search, put it under system.webServer like



HTTP Module :Item.Update() gives exception 'Operation is not valid due to the current state of the


Hi, I have created a http module to update the list item but when i use the Update function of SPListItem object it gives the error: "Operation is not valid due to the current state of the object". Below is the HTTP Module i have written to update the List Item. Please suggest






public class SiteUsage : IHttpModule



Page Life Cycle and custom composite server control life cycle



We are creating a composite server control. It will have few other controls. I am confused where exactly to write the code ie in which event. Is page life cycle and control life cycle follow the same event order?

Could any one please suggest or post articles on this.

Thank You

Secure login from a non-secure HTTP page.


I have a custom mini login user control that I have embedded in the top of my website which shows on every page. These pages are non-secure HTTP://.   I would like to avoid having to redirect the user to a HTTPS page to perform the login but I definitely don't want to send login credentials to the server in plain text.

I am trying find a method to send the user's login credentials encrypted via https from a non-secure (http) page.

I tried to set the postbackurl for the login button to itself but in https, but the user's input is not retained and the buttonLogin_click is not fired when I set the button postbackurl property. My ASP.net web application is VB.Net framework 4.0

I am assuming this can be done because I see lots of websites where login fields are on available on every page and they are running http and I can believe they are not encrypting the login credentials.

Any guidance is much appreciated.

Customized http 401.1 Error page for SharePoint




I'd like to use my customized error page instead of SharePoint standard page to show error message for HTTP401.1 error.

How to do this customized?

My environment is:

WinServer 2008 64bits , IIS 7 + MOSS2007


"The request failed with HTTP status 403: Forbidden" when asp page calls remote web service



I use iis7 on win7 pro. I develope an aspx web page which calls the web service in remote site.When it runs, I get an error in the below:

"System.Net.WebException: The request failed with HTTP status 403: Forbidden..."

What's the problem?

Thanks for helps.



Is setting the PostBackUrl to an HTTPS url on an HTTP page secure?


Just wanted to know your thoughts on this : is it secure to POST from an HTTP page to and HTTPS page? Basically, my login box will be on an unsecured page and when the user logs in, he is sent to an HTTPS page where the FormsAuthenticationTicket is set and the user re-redirected to his original page.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend