Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple question

Status
Not open for further replies.

ShonGill

Programmer
May 20, 2008
44
US
What would happen if I don't place a global.asax file in the root of a website? I have a page with a submitbutton.click event that fires and calls an event handler. When I click the button on the page the code is not run and the debug does not run either. The validation does fire when I click the button though.
 
What would happen if I don't place a global.asax file in the root of a website?
Try it and you will find out.

When I click the button on the page the code is not run and the debug does not run either. The validation does fire when I click the button though.
Is this a problem? Are you expecting it to run? If so, then you need to debug your application to find out why.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
to expand on what mark's comments: global.asax subclasses HttpApplication when you add the file you will see the following code
Code:
public class Global : HttpApplication
{
   // members go here
}

to you 2nd question, we can't do anything without code.
are you using a standard html button. if so then nothing will happen on the server, because the server doesn't know about the control.
if it's a server button control then it either isn't wired correctly to the handler, or validation returns false and therefore does not postback to the server.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Ok, thanks for your help. I think it is a problem with the hosting service. You may not remember the first post I did asking about a problem with sending emails thread855-1474757. I still don't know which method of sending emails works out better. Sending from the config file seemed to work out ok except the duplicates, haven't had a chance to try Mark's method.

I am going to get more "technical" with the site and just try reloading it back to before the upgrade. Thank you for your help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top