"using" within namespace block or outside

Results 1 to 2 of 2

Thread: "using" within namespace block or outside

  1. #1
    Join Date
    Dec 1969

    Default "using" within namespace block or outside

    hi all,<BR><BR>what is the difference between putting the "using" keyword within the namespace block like this :<BR>[code language="C#"]<BR>namespace Madrasaty<BR>{<BR> using System;<BR> using System.Data;<BR> using System.Drawing;<BR> using System.Web;<BR> using System.Web.UI.WebControls;<BR> using System.Web.UI.HtmlControls;<BR> using Business; <BR> using Container; <BR><BR>[/code]<BR><BR><BR><BR> AND putting it outside on the start of the page like this<BR><BR><BR>[code language="C#"]<BR>using Business ; <BR>using System.Configuration;<BR>using System.Data.SqlClient;<BR><BR><BR>namespace Madrasaty<BR>{<BR>[/code]<BR><BR>all what i know is one the first one is in ascx file and the second in aspx!<BR>

  2. #2
    Join Date
    Dec 1969

    Default Scope?

    seems like a scoping difference...? Not sure though...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts