[B]Question asked by visitor thiruvarasan[/b]
How many codebehind file does ASPx file have in ASP.Net?
Is it possible create multiple codebehind file for single aspx file?
Printable View
[B]Question asked by visitor thiruvarasan[/b]
How many codebehind file does ASPx file have in ASP.Net?
Is it possible create multiple codebehind file for single aspx file?
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
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
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