Click to See Complete Forum and Search --> : How to view Code behind (.cs)
JemUy
October 22nd, 2008, 10:16 PM
Hello,
I am new in .NET. I am using version 2.0 and C# language. I need to edit the webform to create textbox and put code on it. But I only have the webform (.aspx), this code is running in the web server, i just took a copy of whole application.But, the portion i need to edit doesn't have the .cs file.They said I need to connect to Visual SourceSafe. Is there any way to view that file without connecting to VSS? Because, some of webforms have its .cs files only this folder doesn't have. Please help me what to do. any reply would be much appreciated.
Thank you.
JonnyPoet
October 23rd, 2008, 02:11 AM
Hello,
I am new in .NET. I am using version 2.0 and C# language. I need to edit the webform to create textbox and put code on it. But I only have the webform (.aspx), this code is running in the web server, i just took a copy of whole application.But, the portion i need to edit doesn't have the .cs file.They said I need to connect to Visual SourceSafe. Is there any way to view that file without connecting to VSS? Because, some of webforms have its .cs files only this folder doesn't have. Please help me what to do. any reply would be much appreciated.
Thank you.If the website doesn't have an explicite cs file look at the aspx file. There should be a section near to the top where you will finde the code script. Sometimes it is done just as the java people do it- directly in the script. VSS in my eyes isn't the place to look for it, because when your project loads all the needed files are loaded to your projects folder.
MMH
October 23rd, 2008, 03:37 AM
Hello,
But I only have the webform (.aspx), this code is running in the web server, i just took a copy of whole application.But, the portion i need to edit doesn't have the .cs file.They said I need to connect to Visual SourceSafe.
I guess you are copying the deployed (published) website from the server which only has the .aspx file. The code file .cs is converted into a DLL file which is present in a bin folder.
Also, as you said; you have to get the source code from the VSS and then modify it. You cannot direclty modify the published web site or web application.
Regards,
MMH
JemUy
October 23rd, 2008, 09:43 AM
Thank you so much Gurus. You are right, I already have the published version and it is already compiled. Now I understand.
Thanks a lot. this is really a big help..More power to you guys.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.