Click here to Skip to main content
15,888,984 members
Home / Discussions / C#
   

C#

 
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 
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 
It's a matter of taste. Most of them are not required, but a using statement doesn't add anything to the generated code, so they don't do any harm either.

Actually none of them are strictly required, so you can remove all of them if you like, but then you have to specify the namespace for all classes that you use, like for example System.EventArgs.

I usually remove the ones I rarely use and leave the ones that I regularly use, and end up with:

using System;<br />
using System.Collections.Generic;<br />
using System.Web;<br />
using System.Web.UI;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.HtmlControls;


---
single minded; short sighted; long gone;

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 
AnswerRe: Webbrowser Find text question Pin
Matthew Cuba11-Apr-07 8:52
Matthew Cuba11-Apr-07 8:52 
Questionhow to access datagrid Pin
sweetcapri11-Apr-07 7:30
sweetcapri11-Apr-07 7:30 
AnswerRe: how to access datagrid Pin
Jaiprakash M Bankolli12-Apr-07 0:44
Jaiprakash M Bankolli12-Apr-07 0:44 

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.