all groups > visual studio .net ide > may 2006 >
You're in the

visual studio .net ide

group:

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


Making a Code (.cs) file "belong" to an ASPX after the fact Alex Maghen
5/25/2006 8:02:02 AM
visual studio .net ide:
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?

RE: Making a Code (.cs) file "belong" to an ASPX after the fact stcheng NO[at]SPAM online.microsoft.com
5/26/2006 2:49:09 AM
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.



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

RE: Making a Code (.cs) file "belong" to an ASPX after the fact stcheng NO[at]SPAM online.microsoft.com
5/29/2006 12:58:41 PM
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.



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