Results 1 to 4 of 4

Thread: Codebehind file in ASPx

  1. #1
    Geek_Guest
    Guest

    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?


  2. #2
    Contributing Member
    Join Date
    May 2007
    Answers
    60

    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


  3. #3
    Junior Member
    Join Date
    Jun 2008
    Answers
    6

    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


  4. #4
    Expert Member
    Join Date
    Dec 2007
    Answers
    138

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact