.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

How to find the current application file path while runtime?

Posted By :Jean Paul     Posted Date :October 11, 2010    Points :10   Category :.NET Framework 
System.Reflection.Assembly.GetExecutingAssembly().Location

You can also find related Interview Question to How to find the current application file path while runtime?  below: 

Can we have more than one web.config file in our application?

  
Yes,we can create or use more than one web.config file in our application. (More...)

if we remove a web.config file from the application , is this application will work?

  
It Depends on coding if we used something that is required to pioc values from configuration file then its required otherwise we can run our application without web.config. (More...)

Can i add more than 1 web.config file in a single application?

  
Yes, it is possible to add more than 1 web.config file in a single application. (More...)

How do you retrieve the customized properties of a .NET application from XML .config file?

  
Initialize an instance of AppSettingsReader class. Call the GetValue method of AppSettingsReader class, passing in the name of the property and the type expected. Assign the result to the appropriate variable. (More...)

How can we find the index of current selection in BindingSource Class?

  
Using bindingSource1.Position we can find the index of currently selected item.
Here bindingSource1 is the object of BindingSource Class. (More...)

Is there a way to generate more then on .xap file from a same silverlight application.

  
Since for each .xap file we have to create a new silverlight application.
(More...)

How do you retrieve the customized properties of a .NET application from XML .config file?

  
Initialize an instance of AppSettingsReader class. Call the GetValue method of AppSettingsReader class, passing in the name of the property and the type expected. Assign the result to the appropriate variable. (More...)

How to find whether the application is run from inside IDE or not?

  
Use System.Diagnostics.Debugger.IsAttached property

If it is true that means a debugger is attached to the application

else not

Useful: While creating applications we can check this property and skip the login page/form and directly launch the page/form we are debugging. (More...)

How to find the path of datafiles for specified database?

  

Use the following query,

Select * from sysfiles
or
sp_helpdb 'database name' (More...)


Which term describes an XML file that defines an object, such as Customer, Order, or Contact, that can be used in a business application?

  
External content types define data that is stored in a supported external system, such as a SQL Server database or other relational database, a SharePoint site, a Web service, or a custom data connector. (More...)

What is the use of Jquery min js file in ASP.NET web application.

  
JQuery min .js file is actully a minified version of Actual JQuery .js. The min files have less size but same content so this improves the performance.so You should prefer to use min files. (More...)

How to find number of items in the current session collection in ASP.NET

  
System.Web.SessionState.HttpSessionState member Count which returns the number of items in the current session collection (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