Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
Old 07-26-2010, 08:30 PM Import Statements
Super Talker

Posts: 112
Trades: 0
Greetings!

Are Import statements necessary at the top of the code behind file in ASP.net? (using VB)

Not sure if I'm reading something that's out of date or doesn't apply, or I'm just plain confused but I thought all namespaces and classes were included by default which would make that process redundant.

But I'm probably just confused... wouldn't be the first time.
blogdog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-27-2010, 07:36 AM Re: Import Statements
Extreme Talker

Posts: 246
Trades: 0
No, they are absolutely necessary. You automatically get the core library. If however you want to use generics, streams, or any number of other things you need to import the proper library in order to use those things. Why automatically include file streams or generics if you aren't going to use them.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Old 07-27-2010, 10:26 PM Re: Import Statements
Super Talker

Posts: 112
Trades: 0
OK, thanks for that info - that makes sense.
blogdog is offline
Reply With Quote
View Public Profile
 
Old 11-02-2010, 04:44 AM Re: Import Statements
Alon's Avatar
Junior Talker

Posts: 1
Name: Alon
Trades: 0
No. But when you working with generics or some other .net libraries you must to import the .net libraries other wise it won’t work. For example you want to do what ever operation using sql server you should import the sqlclient library first, other wise .net framework gives error.
__________________

Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE
are perfect gifts for new moms.
Alon is offline
Reply With Quote
View Public Profile
 
Old 11-24-2010, 06:57 PM Re: Import Statements
Banned

Posts: 4
Trades: 0
thanks for that info - that makes sense.
anna1 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Import Statements
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17590 seconds with 12 queries