|
-
October 22nd, 2008, 10:16 PM
#1
How to view Code behind (.cs)
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.
-
October 23rd, 2008, 02:11 AM
#2
Re: How to view Code behind (.cs)
 Originally Posted by JemUy
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.
 Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
My latest articles :
Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
-
October 23rd, 2008, 03:37 AM
#3
Re: How to view Code behind (.cs)
 Originally Posted by JemUy
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
-
October 23rd, 2008, 09:43 AM
#4
Re: How to view Code behind (.cs)
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|