Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
GeneralRe: readonly DataGrid Pin
goldoche12-Apr-07 1:35
goldoche12-Apr-07 1:35 
GeneralRe: readonly DataGrid Pin
Pualee12-Apr-07 2:47
Pualee12-Apr-07 2:47 
GeneralRe: readonly DataGrid Pin
Pualee11-Apr-07 11:57
Pualee11-Apr-07 11:57 
QuestionSetting master page values Pin
Brendan Vogt11-Apr-07 8:07
Brendan Vogt11-Apr-07 8:07 
AnswerRe: Setting master page values Pin
blackjack215011-Apr-07 21:56
blackjack215011-Apr-07 21:56 
Questionstring function Pin
sweetcapri11-Apr-07 8:04
sweetcapri11-Apr-07 8:04 
AnswerRe: string function Pin
Colin Angus Mackay11-Apr-07 8:29
Colin Angus Mackay11-Apr-07 8:29 
QuestionExtra namespaces Pin
Brendan Vogt11-Apr-07 8:04
Brendan Vogt11-Apr-07 8:04 
Hi there,

I am using .NET 2.0 with C#.

When I create a new master page, the following namespaces are added automatically:

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

And then the other necessary code:

public partial class App_MasterPages_Website : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
}

Are all those namespaces required?? What would be best, to remove them all except using System; and add just the necessary namepaces as what I need them?? I see the same namespaces are included when I add a new web page.

The reason why I am asking is because I want to keep my code as clean as possible.

Please can someone advise me?

Regards
ma se
AnswerRe: Extra namespaces Pin
Colin Angus Mackay11-Apr-07 8:31
Colin Angus Mackay11-Apr-07 8:31 
GeneralRe: Extra namespaces Pin
Brendan Vogt11-Apr-07 19:42
Brendan Vogt11-Apr-07 19:42 
AnswerRe: Extra namespaces Pin
Guffa11-Apr-07 9:08
Guffa11-Apr-07 9:08 
GeneralRe: Extra namespaces Pin
Brendan Vogt11-Apr-07 19:43
Brendan Vogt11-Apr-07 19:43 
GeneralRe: Extra namespaces Pin
Brendan Vogt13-Apr-07 4:55
Brendan Vogt13-Apr-07 4:55 
AnswerRe: Extra namespaces Pin
Guffa13-Apr-07 5:15
Guffa13-Apr-07 5:15 
QuestionUsing the object browser Pin
Brendan Vogt11-Apr-07 7:55
Brendan Vogt11-Apr-07 7:55 
QuestionCan anyone help me ? Pin
eni_9411-Apr-07 7:52
eni_9411-Apr-07 7:52 
AnswerRe: Can anyone help me ? Pin
goldoche11-Apr-07 8:00
goldoche11-Apr-07 8:00 
GeneralRe: Can anyone help me ? Pin
eni_9411-Apr-07 10:31
eni_9411-Apr-07 10:31 
GeneralRe: Can anyone help me ? Pin
eni_9411-Apr-07 11:08
eni_9411-Apr-07 11:08 
GeneralRe: Can anyone help me ? Pin
goldoche12-Apr-07 1:58
goldoche12-Apr-07 1:58 
AnswerRe: Can anyone help me ? Pin
Matthew Cuba11-Apr-07 8:00
Matthew Cuba11-Apr-07 8:00 
GeneralRe: Can anyone help me ? Pin
eni_9411-Apr-07 10:33
eni_9411-Apr-07 10:33 
Questionmdi form Pin
sweetcapri11-Apr-07 7:41
sweetcapri11-Apr-07 7:41 
AnswerRe: mdi form Pin
led mike11-Apr-07 8:08
led mike11-Apr-07 8:08 
QuestionWebbrowser Find text question Pin
Matthew Cuba11-Apr-07 7:39
Matthew Cuba11-Apr-07 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.