Click here to Skip to main content
15,896,154 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDatabase results to Array? Pin
bjjonesey12-Jun-07 14:25
bjjonesey12-Jun-07 14:25 
AnswerRe: Database results to Array? Pin
Sameer Alibhai12-Jun-07 14:38
Sameer Alibhai12-Jun-07 14:38 
GeneralRe: Database results to Array? Pin
bjjonesey12-Jun-07 16:24
bjjonesey12-Jun-07 16:24 
Questiondisable tooltip for calendar control Pin
D.Sridhar12-Jun-07 11:39
D.Sridhar12-Jun-07 11:39 
QuestionHow to make row clickable DataGrid? Pin
kidus112-Jun-07 11:08
kidus112-Jun-07 11:08 
AnswerRe: How to make row clickable DataGrid? Pin
Chetan Ranpariya12-Jun-07 19:54
Chetan Ranpariya12-Jun-07 19:54 
AnswerRe: How to make row clickable DataGrid? Pin
kumarjammula12-Jun-07 23:24
kumarjammula12-Jun-07 23:24 
QuestionHow can I programmatically retrieve the app_data path Pin
MBursill12-Jun-07 8:00
MBursill12-Jun-07 8:00 
I have an XML file in my app_data directory. My Data Access layer (a class library project) needs to know where the XML file is.

I currently have:
c:\projects\My website\                       (solution file is here)
c:\projects\My website\website                (aspx files, web config, & junk)
c:\projects\My website\website\app_data\      (a few database files and an xml file)
c:\projects\My website\websiteDA\             (project folder for data access class library)

If I add the DA class library project as a reference to my website project, is there any way for the class library to know what the data directory of the website may be.

Using something like:

XmlTextReader settingsReader = new XmlTextReader("settings.xml");

tells me it's looking in:

C:\projects\My website\

the same folder as the solution file. Very odd. I would have expected c:\projects\My website\website

DB access gets around this by somehow parsing "|DataDirectory|" in the connection string, resolving it to match the app_data path. Could I do something similar?

-Mike.
AnswerRe: How can I programmatically retrieve the app_data path Pin
Not Active12-Jun-07 8:10
mentorNot Active12-Jun-07 8:10 
GeneralRe: How can I programmatically retrieve the app_data path Pin
MBursill12-Jun-07 8:32
MBursill12-Jun-07 8:32 
GeneralRe: How can I programmatically retrieve the app_data path Pin
Not Active12-Jun-07 8:49
mentorNot Active12-Jun-07 8:49 
GeneralRe: How can I programmatically retrieve the app_data path Pin
MBursill12-Jun-07 9:10
MBursill12-Jun-07 9:10 
Questionmenu parent backcolor when hovering child menu Pin
janetb9912-Jun-07 7:27
janetb9912-Jun-07 7:27 
AnswerRe: menu parent backcolor when hovering child menu Pin
Not Active12-Jun-07 8:18
mentorNot Active12-Jun-07 8:18 
GeneralRe: menu parent backcolor when hovering child menu Pin
janetb9913-Jun-07 9:36
janetb9913-Jun-07 9:36 
GeneralRe: menu parent backcolor when hovering child menu Pin
Not Active13-Jun-07 10:01
mentorNot Active13-Jun-07 10:01 
QuestionSubmit Button Pin
seemamltn12-Jun-07 7:15
seemamltn12-Jun-07 7:15 
AnswerRe: Submit Button Pin
Not Active12-Jun-07 8:04
mentorNot Active12-Jun-07 8:04 
AnswerRe: Submit Button Pin
Biju Sam12-Jun-07 19:05
Biju Sam12-Jun-07 19:05 
GeneralRe: Submit Button Pin
Bajrang Singh13-Jun-07 4:47
Bajrang Singh13-Jun-07 4:47 
QuestionDataGrid dropping values Pin
wood060112-Jun-07 6:45
wood060112-Jun-07 6:45 
AnswerRe: DataGrid dropping values Pin
Not Active12-Jun-07 6:56
mentorNot Active12-Jun-07 6:56 
GeneralRe: DataGrid dropping values Pin
wood060112-Jun-07 7:10
wood060112-Jun-07 7:10 
GeneralRe: DataGrid dropping values Pin
wood060112-Jun-07 7:34
wood060112-Jun-07 7:34 
GeneralRe: DataGrid dropping values Pin
Not Active12-Jun-07 8:24
mentorNot Active12-Jun-07 8:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.