How do I edit an asp.net site? Changes I make to .cs files, don't affect anything
asp.net
Solution
- That's ASP.Net - ASP is something different =)
- Coming from PHP you probably didn't know that .cs files need to be compiled, and then redeployed. No harm no foul, but go read up about that. It can be different in different circumstances - for simple solutions you can launch a debug webserver with F5 that will preview your changes. For more complex apps (like what we use at work) we run a production IIS setup on our local machines. Try F5, see if that does it.
Problem
So, I need to make changes to an asp.net built site that was recently handed to me. The problem is that I'm a php coder and I don't know jack about asp.net development. The page I am trying to modify is associated with the contact form. In the contact folder, there is a default.aspx with the following code: ``` <%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false" Inherits="watergrass.contact._default" %> ``` So then I found the default.aspx.cs and poked around in the code. It made sense, so I made a few changes, but nothing happened when I refreshed the browser. So then I deleted all of the file's content and realized nothing changed again. At this point I'm like WTF? So, my assumption is that I need to re-compile the site or something along those lines? If so, how would I go about doing this? If anyone has some pointers, they would be greatly appreciated!