Solved

Help with understanding code

Posted on 2008-10-16
8
188 Views
Last Modified: 2010-04-14
Has anyone ever used YetAnotherForum?  My question is that I'm trying to change some text in a section.  But it seems that whenever I make changes to the codebehind pages it doesn't take affect.  Is this because it's compiled into the DLL?  If I make changes to the .aspx pages it shows up, but not the .cs pages.  If it's because it's compiled, is there a way to recompile it?  Can anyone help me here?
0
Comment
Question by:rshafakian
  • 5
  • 3
8 Comments
 
LVL 18

Expert Comment

by:Priest04
ID: 22732431
Never tried it, but if you are manually editing .cs file (in notepad, example), it wont have any effect until you recompile the dll/exe. This can be done in two ways:

1) easier - download either c# express, or VS studio trial, then recompile the project, or
2) harder, use a command line to compile it

http://msdn.microsoft.com/en-us/library/ms379563(VS.80).aspx

Goran
0
 
LVL 18

Expert Comment

by:Priest04
ID: 22732469
btw, If its a web project, then you would need to download Visual Studio, or at least Web Developer Express, but I recommend Visual Studio
0
 

Author Comment

by:rshafakian
ID: 22732669
I am using Visual studio.  This is a website project.  So when I open it I go to Open Website.  How do I recompile the dll?  I tried doing Build Website but that didn't change anything.  I tried doing Publish Website, but that ended up just crashing the site for some reason.
0
 
LVL 18

Expert Comment

by:Priest04
ID: 22733788
When you open project in VS, do you see the cs file in it? Is this file  part of the main project, or part off the dll project? Do you change this file through VS?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:rshafakian
ID: 22733807
I see all the files in it.  And yes I change the files through VS.  But I don't know how to recompile the DLL.
0
 
LVL 18

Accepted Solution

by:
Priest04 earned 500 total points
ID: 22734081
You didnt respond to main question and you are mixing terms. You said you opened a website project, and then you ask how to recompile dll. Is it a web project or a dll project? If solution has several projects in it, then find to what project this file belongs to, then right lick on a project and rebuild. If its a solution, then when you click on rebuild solution to rebuild ALL projects, and in output window you will receive message like

Rebuild All: 3 succeeded, 0 failed, 0 skipped, if there are 3 projects in it.
0
 

Author Comment

by:rshafakian
ID: 22734575
Okay I figured it out thanks to your help!  I opened the project itself and when I built it from there it would recompile the dll!  Thank you!!
0
 
LVL 18

Expert Comment

by:Priest04
ID: 22734781
You are welcome.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need to pass connection string through config 2 26
Tool Box 2 35
Coding C# in Linux 8 39
When should I use a controller? 3 26
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now