When an ASP.NET page is executed, the thread used to execute the code that generates the page by default has a current working directory of that page. It uses this directory as its base directory . If you pass a relative filename into any System.IO class, the file is assumed to be located relative to the current working directory.
The default working directory for the ASP.NET Development Server is a directory under your Visual Studio install root. If you installed Visual Studio in C:\Program Files. Your ASP.NET Development Server working directory would be C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0.
To get the location of working directory using GetCurrentDirectory() method. This method is exist in System.IO.Directory class.
To set the location of working direcotry using SetCurrentDirectory() method. This method is exist in System.IO.Directory class.
Here are sample example :
The default working directory for the ASP.NET Development Server is a directory under your Visual Studio install root. If you installed Visual Studio in C:\Program Files. Your ASP.NET Development Server working directory would be C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0.
To get the location of working directory using GetCurrentDirectory() method. This method is exist in System.IO.Directory class.
To set the location of working direcotry using SetCurrentDirectory() method. This method is exist in System.IO.Directory class.
Here are sample example :
lblCurrentDirectory.Text = System.IO.Directory.GetCurrentDirectory();
//Set New current directory
System.IO.Directory.SetCurrentDirectory(MapPath(""));
lblNewCurrentDirectory.Text = System.IO.Directory.GetCurrentDirectory();
//Set New current directory
System.IO.Directory.SetCurrentDirectory(MapPath(""));
lblNewCurrentDirectory.Text = System.IO.Directory.GetCurrentDirectory();
The default working directory for the ASP.NET Development Server is a directory under your Visual Studio.
ReplyDeleteThanks for sharing this..
Hello Keith,
DeleteThanks for your valuable comment.
In asp.net get and post method is very important..with help of these we are retrieve the method or value..
ReplyDeleteHello Lani,
DeleteThanks for your valuable comment.
To set the location of working direcotry using SetCurrentDirectory() method. This method is exist in System.IO.Directory class.thanks for sharing this.
ReplyDeleteHello Ulsses,
DeleteThanks for your valuable comment.
I am very pleased to find this blog. I want to thank for your time for this wonderful read!!! Keep Sharing, I'll surely be looking for more.
ReplyDeleteHello Declan,
DeleteThanks for your valuable comment.
Excellent blog to all of us,this blog really good information for the future. Thanks
ReplyDeleteHello Auila,
DeleteThanks for your valuable comment.
WoW! Like your site very much, i will come here again and again.
ReplyDeleteHello Camille,
DeleteThanks for your valuable comment.
Nice site, I just dugg this keep up the good work!. . . . . .
ReplyDeleteHello Alfreda,
DeleteThanks for your valuable comment.
This really is truly excellent details, appreciate it.
ReplyDeleteThanks for a awesome post and interesting comments. I found this post while surfing for some popular lyrics. Thanks for sharing this post.
ReplyDeleteI can see that you are an expert at your field! I am launching a website soon, and your details will be very useful for me.. Thanks for all your help and expecting you all the success.
ReplyDeleteThis is just excellent, I really really like it. We need several weblogs like this. You have excellent details and it is really excellent. I saved this web page and will come returning.
ReplyDeleteWhen an ASP.NET page is executed, the thread used to execute the code that generates the page by default has a current working directory of that page.
ReplyDeleteWhen an ASP.NET page is executed, the thread used to execute the code that generates the page by default has a current working directory of that page.
ReplyDeleteAs a developer, you have to be able to point out best commercial experience of developing linked database architectures along with designers that ought to be accountable for building design and style of product features, code, tests and ensure of restricted deadlines are fulfilled.
ReplyDeleteIn an ASP.NET application, this will be the application root directory, not the bin subfolder which is probably what you usually want.
ReplyDeleteThis is really a nice blog with great post, I would really like to keep reading here. Thanks for this nice article, valuable information for all and of course I will recommend my friends to read this for sure.
ReplyDeleteHello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.
ReplyDeleteAWS Online Training | Online AWS Certification Course - Gangboard
AWS Training in Chennai | AWS Training Institute in Chennai Velachery, Tambaram, OMR
AWS Training in Bangalore |Best AWS Training Institute in BTM ,Marathahalli
Read all the information that i've given in above article. It'll give u the whole idea about it.
ReplyDeleteangularjs Training in chennai
angularjs Training in chennai
angularjs-Training in tambaram
angularjs-Training in sholinganallur
angularjs-Training in velachery
I am really impressed with your efforts and really pleased to visit this post.
ReplyDeletepython training in tambaram | python training in annanagar | python training in jayanagar
Thanks you for sharing this unique useful information content with us. Really awesome work. keep on blogging
ReplyDeleteOnline DevOps Certification Course - Gangboard
Best Devops Training institute in Chennai
Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
ReplyDeleterpa training in velachery| rpa training in tambaram |rpa training in sholinganallur | rpa training in annanagar| rpa training in kalyannagar
Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
ReplyDeleteJava interview questions and answers | Core Java interview questions and answers
Excellant post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
ReplyDeleteData Science Training in Chennai | Data Science training in anna nagar
Data Science training in chennai | Data science training in Bangalore
Data Science training in marathahalli | Data Science training in btm layout
Have you been thinking about the power sources and the tiles whom use blocks I wanted to thank you for this great read!! I definitely enjoyed every little bit of it and I have you bookmarked to check out the new stuff you post
ReplyDeletedevops online training
aws online training
data science with python online training
data science online training
rpa online training
wonderful to work..
ReplyDeletedenmark web hosting
inplant training in chennai
excellent...blog
ReplyDeleteAustralia hosting
Bermuda web hosting
Botswana hosting
mexico web hosting
moldova web hosting
albania web hosting
andorra hosting
armenia web hosting
australia web hosting
good..
ReplyDeleteafghanistan hosting
angola hosting
afghanistan web hosting
bahrain web hosting
belize web hosting
india shared web hosting
nice..
ReplyDeleteluxembourg web hosting
mauritius web hosting mongolia web hosting
namibia web hosting
norway web hosting
rwanda web hosting
spain hosting
turkey web hosting
venezuela hosting
vietnam shared web hosting
very nice...
ReplyDeleteinternship report on python
free internship in chennai for ece students
free internship for bca
internship for computer science engineering students in india
internships in hyderabad for cse students 2018
electrical companies in hyderabad for internship
internships in chennai for cse students 2019
internships for ece students
inplant training in tcs chennai
internship at chennai
nice....
ReplyDeletecoronavirus update
inplant training in chennai
inplant training
inplant training in chennai for cse
inplant training in chennai for ece
inplant training in chennai for eee
inplant training in chennai for mechanical
internship in chennai
online internship
nice....
ReplyDeletecoronavirus update
inplant training in chennai
inplant training
inplant training in chennai for cse
inplant training in chennai for ece
inplant training in chennai for eee
inplant training in chennai for mechanical
internship in chennai
online internship
Great Blog. Thnaks.
ReplyDeleteSAP Training in Chennai
Java Training in Chennai
Software Testing Training in Chennai
.Net Training in Chennai
Hardware and Networking Training in Chennai
AWS Training in Chennai
Azure Training in Chennai
Selenium Training in Chennai
QTP Training in Chennai
Android Training in Chennai
nice post
ReplyDeleteApplication packagining training
Blockchain training
C training
Data power training
Data Stage training
Dynamic CRM Training
Informatica idq training
This post is so interactive and informative.keep update more information...
ccna Training in Tambaram
ccna course in Chennai
web hosting Canada
ReplyDeleteOptidigital : get best web hosting service in Canada. We offer the best web hosting service. Choose web hosting for your personal and professional websites.
slot siteleri
ReplyDeletekralbet
betpark
tipobet
betmatik
kibris bahis siteleri
poker siteleri
bonus veren siteler
mobil ödeme bahis
VUF8