partial page classes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy B

    #1

    partial page classes

    I want to use partial classes with my pages. Do I need to put all of the
    page using statements in both class files? or just one of them?



  • Munna

    #2
    Re: partial page classes

    On May 27, 9:26 am, "Andy B" <a_bo...@sbcglo bal.netwrote:
    I want to use partial classes with my pages. Do I need to put all of the
    page using statements in both class files? or just one of them?
    Hi,

    Asp.net 2.0~3.0 by default generate code behind file as a partial
    class.
    what is the case is not clear.
    can you be a little more descriptive.

    Best of luck

    Munna



    Comment

    • =?Utf-8?B?Sm95?=

      #3
      RE: partial page classes

      Hi Andy,
      You need the Using statements in the beginning of a page/class so that the
      class is
      able to make API calls to the APIs present in those references and hence
      these Using statements are class sepcific (file specific).

      You donot need to include all the Using statements in all the partial
      classes,just include the ones that are needed to compile that class.

      regards,
      Joy



      "Andy B" wrote:
      I want to use partial classes with my pages. Do I need to put all of the
      page using statements in both class files? or just one of them?
      >
      >
      >
      >

      Comment

      Working...