coding @ the speed of thought RSS 2.0
 Sunday, January 06, 2008

Asp.net projelerinizde veritabanı erişimlerini App_Code dir'i icinde tanımladığınız sınıflar içinden yapmak isteyebilirsiniz.Eğer projenizde access veritabanı kullanıyorsanız Server.MapPath() metodunu kullanmakta sorun yaşarsınız çünkü App_Code içindeki bir sınıfta Server sınıfı tanımlı değildir.

App_Code dir i içindeki bir sınıfta Server.MapPath() metodunu aşağıdaki şekilde kullanabilirsiniz.

HttpServerUtility hs=HttpContext.Current.Server;
string APPDATAYOLU = hs.MapPath("~/App_Data");

Kolay gelsin

Sunday, January 06, 2008 12:53:44 AM (GTB Standard Time, UTC+02:00)  #    Comments [0] -
Software
Comments are closed.
On this site
Archive
<July 2008>
SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008
Levent YILDIZ
Sign In
Statistics
Total Posts: 88
This Year: 20
This Month: 4
This Week: 0
Comments: 28
Themes
Pick a theme:
All Content © 2008, Levent YILDIZ
DasBlog theme 'Business' created by Christoph De Baene (delarou)