Home
|
Tutorial
|
Articles
|
Forum
|
Interview Question
|
Code Snippets
|
News
|
Fun Zone
|
Poll
|
Web Links
|
Certification
|
Search
Welcome :
Guest
Sign In
Register
Win Surprise Gifts!!!
Congratulations!!!
Top 5 Contributors of the Month
Syed Shakeer Hussain
laptop charles
Sunil Yadav
Abhisek Panda
Dhananjay Kumar
Home
>>
Interview Question
>>
.NET Framework
>>
Post New Question
Subscribe to Interview Questions
I would like to find all the directories of a folder How should I achieve this?
Posted By :
nishithraj
Posted Date :
15/03/2010
Points :
10
Category :
.NET Framework
By Directory.GetDirectories method
You can also find related Interview Question to
I would like to find all the directories of a folder How should I achieve this?
below:
What is Active Directory? What is the namespace used to access the Microsoft Active Directories? What are ADSI Directories?
Active Directory Service Interfaces (ADSI) is a programmatic interface for Microsoft Windows Active Directory. It enables your applications to interact with diverse directories on a network, using a single interface. Visual Studio .NET and the .NET Framework make it easy to add ADSI functionality with the DirectoryEntry and DirectorySearcher components.
Using ADSI, you can create applications that perform common administrative tasks, such as backing up databases, accessing printers, and administering user accounts.
(More...)
Use of App_Code folder in asp.net
Its name helps us to understand what is this in another way we can say that its automatically accessible in the application. App_Code Folder store classes, typed data set, text files, Reports etc. If we don't have this folder in web application we can add this folder. One of more significant feature of this is a single dll is created of this folder. If we have two different language classes in this folder then we have to create two folder one for one language.
(More...)
How does VB.NET/C# achieve polymorphism?
VB.Net / C# provide polymorphism through the following mechanisms:
1. Inheritance - base class provides overridable methods which are re-implemented in derived classes.
2. Interface - different class can implement same interface, resulting in different implementations of interface methods.
3. Virtual methods - achieve runtime polymorphism.
(More...)
Which system procedure is used to find out lock details about the databases, it's table and procedures.
sp_lock
(More...)
How can we find the open transactions details in sql server?
Yes, it is possible.
select * from sysprocesses where open_tran > 0
This query will provide list of all the open transaction details.
(More...)
How to Find Number of Days for provided date range?
Code extract :
TimeSpan DayDifference = Convert.ToDateTime("2009-1-7").Subtract(Convert.ToDateTime("2009-1-1"));
To find the difference of the days, here we have used Subtract method. The Subtract method does not take start date into consideration. Hence, to get the exact number of days for the date range we need to add one more day to the result.
Response.Write("Number of Days : " + DayDifference.Days+1);
(More...)
How to find data with generics list in VB.NET (Write code).
In the code example below, the function "FindData" will return list("sublist") of the objects having matchingKey same as viewstate value.
Dim sublist As List(Of MyClass)
sublist = allClient.FindAll(AddressOf FindData) 'sublist will contain objects matching specified matching condition
Function FindData(ByVal b As MyClass) _
As Boolean
If (b.matchingKey = CInt(ViewState("matchingKey "))) Then 'matching condition
Return True
Else
Return False
End If
End Function
(More...)
is it possible to add APP_Code folder in web application project in Visual Studio 2005 or later?
No. It's not possible. Web application project does not allow users to add app_code folder where website project does.
(More...)
How can you find IP address of the client in ASP.net ?
string clientIPAddress = Request.UserHostAddress.ToString();
(More...)
How can you find ComputerName of the client in ASP.net ?
string ComputerName = WindowsIdentity.GetCurrent().Name.ToString();
(More...)
Quick Links For Interview Questions Categories:
ASP.Net
Windows Application
.NET Framework
C#
VB.Net
ADO.Net
Sql Server
SharePoint
Silverlight
OOPs
JQuery
JavaScript/VBScript
Biztalk
Patten/Practices
.IIS
WCF
WPF
WWF
Networking
Aptitude
Others
All
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
Interview Question
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Twitter
Terms of Service
Privacy Policy
Contact Us
Archives
Tell A Friend