PDA

View Full Version : New code behind not working


TonyMast
03-29-2005, 05:54 AM
vs 2002 - win xp - vb

I have code behind and it works. However I'm trying to edit some code and add some code, anything new does not work.
It is as if I didn't change any code. But the new code is there. I've done everything i know how to do,to make sure nothing is cache'd and using old files.
I've coded test code in the load event, I've created new a new button and added response.redirect(http://www.ebay.com) run and click button you can see it making the trip to server but won't run the code. Old code works fine.

Any suggestions for me?

Thanks

Thank you
Tony

bruce
03-29-2005, 08:29 AM
make sure you put the latest version of the dll into the bin directory.

it is a common misconception that changing the .vb/.cs code behind file immediately change the behavior.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

TonyMast
03-30-2005, 02:21 AM
dosn't hitting F5 do that automaticlly?
I've never had to upload a dll before.

Thanks

Thank you
Tony

TonyMast
03-30-2005, 02:29 AM
I deleted the files (dll) that are shown in VS and hit f5 and it must have recreated them and all is well. Thanks for the suggestion.





Thanks


Tony


Thank you
Tony