Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / May 2006

Tip: Looking for answers? Try searching our database.

Making a Code (.cs) file "belong" to an ASPX after the fact

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex Maghen - 25 May 2006 16:02 GMT
Hi. Is there any way to get a .CS file to become the code-behind file so that
it collapses under it's "owner" aspx file without creating both from scratch
inside the IDE?

Alex
Steven Cheng[MSFT] - 26 May 2006 03:49 GMT
Hi Alex,

Thank you for posting.

From your description, I understand you're wondering how to make a .cs file
to work as codebehind file of certain ASPX page in VS IDE , correct?

As for asp.net page's codebehind, based on my understanding, both VS 2003
and VS 2005 will automatically create a codebehind code file for each aspx
page at creating time, therefore we do not need to manually create it. Is
there anything incorret with the new page creation behavior in the VS IDE
in your environment? Anyway, ASP.NET page always provides two code
model(single file and codebehind ...), we can choose either of them as long
as we follow the requirement of each model.

#ASP.NET Web Page Code Model  
http://msdn2.microsoft.com/en-us/library/015103yb.aspx

Please feel free to let me know if there is anything I missed or if you
have any other questions.

Regards,

Steven Cheng
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Steven Cheng[MSFT] - 29 May 2006 13:58 GMT
Hi Alex,

Have you got any progress on this issue? If still need any help ,please
feel free to post here.

Regards,

Steven Cheng
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.