473,378 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

ASP.NET buttons suddenly stopped working.

143 100+
Last night while I was working on my project, all the buttons in my solution stopped working. I was moving the project from my local machine to my schools server.

Does anyone know what I can do about this?

What causes it?

How do I fix it?

Thanks.
Nov 13 '07 #1
8 1796
nateraaaa
663 Expert 512MB
Did you build your project once you moved it? You may not have any dlls for the new project yet. This would cause your buttons not to work because there is no dll for the postback events. Are you able to debug on the school servers? If so insert a breakpoint in either the Page_Load event or a button click event and verify that the breakpoint is hit.

Nathan
Nov 13 '07 #2
teddarr
143 100+
I did rebuild. Same problem.

On your advice, I also set break points on the page_load event anf the button click event. Neither on fires.

I can post some code if you would like to see if there's something I forgot.
Nov 13 '07 #3
r035198x
13,262 8TB
I did rebuild. Same problem.

On your advice, I also set break points on the page_load event anf the button click event. Neither on fires.

I can post some code if you would like to see if there's something I forgot.
It would seem therefore that your buttons are no longer associated with their respective event handlers.
Nov 13 '07 #4
Plater
7,872 Expert 4TB
I would wonder if your school's server is IIS and your application is configured to run on it?
Nov 13 '07 #5
teddarr
143 100+
Yes, the school is set up to handle it. The project was working great for the last 2 weeks and even up until an hour before I discovered the problem.
Nov 13 '07 #6
nateraaaa
663 Expert 512MB
Is there a dll in your bin folder on the school's server (probably in the Inetpub folder/VirtualDirectoryName/bin)? If so what is the date of the dll in that bin folder? If it is not the same time as the last time that you built the project you need to update your dll in the bin with the most recent code base.

Nathan
Nov 13 '07 #7
Plater
7,872 Expert 4TB
Perhaps the difference between copy/pasting files to the server versus using the PUBLISH website from the dev environment?
Nov 13 '07 #8
teddarr
143 100+
OK, We located the culprit. My project partner and I were updating the website close to the same time and we were not exactly testing all the code as thoroughly as we should.

What happened was that he added a search feature to the website that can be accessed from any page. So, logically, it went onto the master page. Well, the search textbox was inside a form...inside the main form on the page. Well...apparently that's against the law and causes a short circuit.

Three little lines of code brought a whole website and 2 databases to a screeching halt. End of story.

Thank all of you for your insight. I will remember those ideas in case something similar happens again.
Nov 14 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: allenj | last post by:
DB2 UDB 7.2 WSE Fixpak 9 Linux Red Hat 7.3 A very strange thing just happened w/ my DB2 server. I am on Linux and using NIS - the instance owner is in the servers /etc/passwd file. Suddenly,...
12
by: melanieab | last post by:
Hi, I have a button that, when clicked, saves all the info entered. It worked fine until suddenly it didn't, and I have no idea why. I get the error An unhandled exception of type...
2
by: Nils Hedström | last post by:
Today my stateserver (running at the same computer at the web-server) suddenly stopped responding (after 10 days working perfectly). I did not see any entry in the eventlog indicating that the...
3
by: d3vkit | last post by:
I've been using apache and php to create clean urls for a while, and suddenly the other day it just stopped working. My host is godaddy.com and I think this might be the source of my trouble, but...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.