Click here to Skip to main content
12,350,597 members (24,532 online)
   

ASP.NET

 
AnswerRe: Response.Redirect behavior Pin
ryanb3112-Dec-12 4:36
memberryanb3112-Dec-12 4:36 
GeneralRe: Response.Redirect behavior Pin
Andrew Stoute12-Dec-12 4:46
memberAndrew Stoute12-Dec-12 4:46 
QuestionERROR while updating image in database Pin
Ani199110-Dec-12 6:18
memberAni199110-Dec-12 6:18 
GeneralRe: ERROR while updating image in database Pin
jkirkerx10-Dec-12 10:37
memberjkirkerx10-Dec-12 10:37 
GeneralRe: ERROR while updating image in database Pin
Ani199110-Dec-12 21:15
memberAni199110-Dec-12 21:15 
GeneralRe: ERROR while updating image in database Pin
Richard Deeming11-Dec-12 0:54
memberRichard Deeming11-Dec-12 0:54 
GeneralRe: ERROR while updating image in database Pin
jkirkerx11-Dec-12 7:26
memberjkirkerx11-Dec-12 7:26 
Questionmaking a class with streamreader thread safe - perhaps using monitor or a singleton Pin
jkirkerx9-Dec-12 11:45
memberjkirkerx9-Dec-12 11:45 
GeneralRe: making a class with streamreader thread safe - perhaps using monitor or a singleton Pin
jkirkerx9-Dec-12 16:14
memberjkirkerx9-Dec-12 16:14 
QuestionDisplay Images from a database in a tile view Pin
Member 94655649-Dec-12 5:42
memberMember 94655649-Dec-12 5:42 
AnswerRe: Display Images from a database in a tile view Pin
Ali Al Omairi(Abu AlHassan)10-Dec-12 2:23
memberAli Al Omairi(Abu AlHassan)10-Dec-12 2:23 
Questionlinq connection in asp.net Pin
JonBrynjar8-Dec-12 3:58
memberJonBrynjar8-Dec-12 3:58 
AnswerRe: linq connection in asp.net Pin
@AmitGajjar11-Dec-12 7:00
member@AmitGajjar11-Dec-12 7:00 
QuestionChange root path Pin
John Simmons / outlaw programmer8-Dec-12 3:40
mvpJohn Simmons / outlaw programmer8-Dec-12 3:40 
Is there a way to change or specify how virtual paths are resolved?

I'm creating a site on my machine, but for purposes of demonstration, I want to deploy it to a sub folder of an existing web site. So, on the web host, I have

wwwroot (which is the parent site)
wwwroot/demosite (which is the demo web site)

Of course, this means that a virtual path of "~/demosite.master" ain't gonna work, because that would resolve to "/demosite.master" instead of the desired "/demosite/demosite.master".

I tried using inline code, but of course that isn't allowed (some far-sighted MSoftie probably knew I was going to need to do this, and this is some sort of weird personal vendetta to prevent me from actually getting anything done).

What I want to do is to make the code change the various virtual paths used throughout the demosite, so that I don't have to remember to do it when I deploy to it's actual production server.

So, for localhost (when developing) and deployment onto the actual production server, I want to use the current virtual path, but for the demo version, I need to change the virtual path root.

Is that possible, and if so, how?
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

AnswerRe: Change root path Pin
Richard Deeming10-Dec-12 1:35
memberRichard Deeming10-Dec-12 1:35 
GeneralRe: Change root path Pin
John Simmons / outlaw programmer10-Dec-12 1:42
mvpJohn Simmons / outlaw programmer10-Dec-12 1:42 
AnswerRe: Change root path Pin
@AmitGajjar11-Dec-12 7:10
member@AmitGajjar11-Dec-12 7:10 
QuestionUpdating the column using entity framework Pin
indian1437-Dec-12 12:46
memberindian1437-Dec-12 12:46 
Questionasp.NET composite control cannot raise an event Pin
michal.cerbak7-Dec-12 4:50
membermichal.cerbak7-Dec-12 4:50 
Questionhow to convert hex to rgb color code in asp.net Pin
Deenuji vellore6-Dec-12 23:14
groupDeenuji vellore6-Dec-12 23:14 
AnswerRe: how to convert hex to rgb color code in asp.net Pin
Richard MacCutchan7-Dec-12 0:32
mvpRichard MacCutchan7-Dec-12 0:32 
Questionasp.net threads, see if thread with same name is running to wait a couple of seconds Pin
jkirkerx6-Dec-12 10:45
memberjkirkerx6-Dec-12 10:45 
AnswerRe: asp.net threads, see if thread with same name is running to wait a couple of seconds Pin
Keith Barrow7-Dec-12 5:21
mentorKeith Barrow7-Dec-12 5:21 
GeneralRe: asp.net threads, see if thread with same name is running to wait a couple of seconds Pin
jkirkerx7-Dec-12 6:47
memberjkirkerx7-Dec-12 6:47 
QuestionPagination worries Pin
cizu6-Dec-12 5:12
membercizu6-Dec-12 5:12 
AnswerRe: Pagination worries Pin
deflinek7-Dec-12 1:40
memberdeflinek7-Dec-12 1:40 
AnswerRe: Pagination worries Pin
AnkitGoel.com10-Dec-12 17:33
memberAnkitGoel.com10-Dec-12 17:33 
QuestionHtml Mail Formate Error Pin
mukusingh5-Dec-12 18:49
membermukusingh5-Dec-12 18:49 
AnswerRe: Html Mail Formate Error Pin
jkirkerx6-Dec-12 10:41
memberjkirkerx6-Dec-12 10:41 
GeneralRe: Html Mail Formate Error Pin
mukusingh6-Dec-12 19:18
membermukusingh6-Dec-12 19:18 
Questionhow to set og tag at runtime Pin
Jassim Rahma5-Dec-12 9:12
memberJassim Rahma5-Dec-12 9:12 
AnswerRe: how to set og tag at runtime Pin
deflinek7-Dec-12 1:50
memberdeflinek7-Dec-12 1:50 
Questionis this a correct og prefix? Pin
Jassim Rahma5-Dec-12 7:36
memberJassim Rahma5-Dec-12 7:36 
Questionasp.net vb Pin
Nada ALsalami5-Dec-12 3:09
memberNada ALsalami5-Dec-12 3:09 
AnswerRe: asp.net vb Pin
ryanb315-Dec-12 4:34
memberryanb315-Dec-12 4:34 
GeneralRe: asp.net vb Pin
Nada ALsalami5-Dec-12 5:05
memberNada ALsalami5-Dec-12 5:05 
GeneralRe: asp.net vb Pin
ryanb315-Dec-12 7:17
memberryanb315-Dec-12 7:17 
AnswerRe: asp.net vb Pin
jkirkerx5-Dec-12 17:22
memberjkirkerx5-Dec-12 17:22 
GeneralRe: asp.net vb Pin
Nada ALsalami6-Dec-12 1:56
memberNada ALsalami6-Dec-12 1:56 
AnswerRe: asp.net vb Pin
jkirkerx6-Dec-12 7:32
memberjkirkerx6-Dec-12 7:32 
GeneralRe: asp.net vb Pin
jkirkerx6-Dec-12 11:36
memberjkirkerx6-Dec-12 11:36 
GeneralRe: asp.net vb Pin
Nada ALsalami12-Dec-12 5:03
memberNada ALsalami12-Dec-12 5:03 
GeneralRe: asp.net vb Pin
jkirkerx12-Dec-12 5:55
memberjkirkerx12-Dec-12 5:55 
GeneralRe: asp.net vb Pin
Nada ALsalami12-Dec-12 21:14
memberNada ALsalami12-Dec-12 21:14 
Question70-513 Video Tutorial Please Pin
silentspeaker5-Dec-12 2:45
membersilentspeaker5-Dec-12 2:45 
AnswerRe: 70-513 Video Tutorial Please Pin
Richard MacCutchan5-Dec-12 2:55
mvpRichard MacCutchan5-Dec-12 2:55 
GeneralRe: 70-513 Video Tutorial Please Pin
silentspeaker5-Dec-12 7:05
membersilentspeaker5-Dec-12 7:05 
QuestionDataList with Product Heads. Pin
Asif Rehman4-Dec-12 7:17
memberAsif Rehman4-Dec-12 7:17 
AnswerRe: DataList with Product Heads. Pin
Himanshu Yadav4-Dec-12 18:53
memberHimanshu Yadav4-Dec-12 18:53 
QuestionHI,how to do access sqlserver use windows domain user? Pin
xut24473-Dec-12 19:20
memberxut24473-Dec-12 19:20 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 24 Jun 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid