-
Codebehind file in ASPx
Question asked by visitor thiruvarasan
How many codebehind file does ASPx file have in ASP.Net?
Is it possible create multiple codebehind file for single aspx file?
-
Contributing Member
Re: Codebehind file in ASPx
Hi,
I think it is not possible to create more than one code behind file for single aspx bcoz we need to bind the code behind file in aspx using page directive like
<%@page autoeventwireup="false" codebehind="webform1.aspx.cs" %>
here not possible to give the multiple files in codebehind attribute.....
Regards,
Hari Prasad
-
Junior Member
Re: Codebehind file in ASPx
it is not possible to have more than one code behind file for an aspx page. how ever if page include control (user controls) then each control will surely has its own ascx.cs
-
Expert Member
Re: Codebehind file in ASPx
Hi,
developers will probably have one code behind page for every ASPX file, and not generally use the same code behind page for multiple pages.
I think its a limitation of ASP.net code behind feature.
Let me know if my understanding is incorrect
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