CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 1/5/2004 7:31:01 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 26 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
olegyk
Asp.Net User
Resolving design-time relative paths [also: Getting paths from server control]1/5/2004 7:31:01 PM

0/0

I have a property in my Server Control, which is a relative path (vis-a-vis the host page).
I am able to show it in Property Editor with [...], resolve it to physical path at
_run-time_ with Context.Server.MapPath(). A similar example is, say, the standard Xml
Control (that does the XSLT) -- it takes in relative URLs.

The problem is that I want to resolve the path at _design-time_. The reason is
that I want to Render it on design canvas the same way it would be on run-time
page (not the silly gray box with control ID).

However, the Context, MapPath, ResolveUrl, et al seem to be unavailable at
design-time. So I am looking for a design-time feature that would either have
an equivalent to ResolveUrl, to at least would give me the physical URL of the
source file for the hosting page.

I tried frantically to browse throught the various IService(?), ISite, IHost, IDesigner, etc,
but their magnitude is overwhelming, so I host one of you guys would have an
answer. Thank you.
master4eva
Asp.Net User
Re: Resolving design-time relative paths [also: Getting paths from server control]1/5/2004 8:26:30 PM

0/0

To my knowledge, it is impossible to do during design time (even do this with the Image control and you will see that they are unable to do it as well). I did do research on this very question not so long ago and arrived with no answer.
-- Justin Lovell
olegyk
Asp.Net User
Re: Resolving design-time relative paths [also: Getting paths from server control]1/5/2004 8:37:25 PM

0/0

I won't take No for an answer.

Look at the UrlEditor for the [...]. It knows the physical path of the page (or
at least the application), it shows the paths in path selections. So it somehow
gets it from the IDE.

"Just give me a lever..." I can make my own MapPath. I just need the
physical path of the Host Page. Or at least the physical path of the application
and the relative path of the page.

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Web Database Development Step by Step: step by step Authors: Jim Buyens, Pages: 490, Published: 2000
Supercomm/ICC '94: .vol. 2 / Authors: Supercomm/International Conference on Communications '94, IEEE International Conference on Communications, IEEE Communications Society, IEEE Communications Society., Pages: 2000, Published: 1994

Web:
Getting Images to render properly in the ASP.NET Designer - Rick ... ResolveClientUrl() creates a relative URL rather than a fully rooted URL which works because at design time there's no application root path to inject. ...
Making sense of ASP.Net Paths - Rick Strahl's Web Log Net custom control and expresses itself in design time mode and is .... At the very least use server relative paths but never a full HTTP url as the one ...
Technical Tips & Tricks: Designing MasterPages During design time, it's easy to put URLs and relative paths into our master pages, ... attribute to the image tag, making the a server-side control. ...
Absolute vs Relative Paths and Server Load - Dev Shed Nov 15, 2008 ... Visit Dev Shed to discuss Absolute vs Relative Paths and Server Load. ... to resolve the domain every time it hits one of the absolute paths ...
How To Link A StyleSheet To A Master/Content Page During design time, it's easy to put URLs and relative paths ... the a server-side control. When the master page file and logo are ...
problem with relative paths in VS/VB.net - .NET VB Feb 5, 2006 ... html in the "code view" it seems to not resolve paths correctly, sometimes in the design view or in the executed browser display. ...
CodeProject: Using the FileResolver to allow virtual application ... Jan 10, 2006 ... There is a better way of doing this - How to resolve relative ... How can I resolve my Server Control's virtual path at design time? member ...
"XML Source" xsd relative path - SQL Server - I understand the Source Control scenario very well. In my case, we decided that all package paths would be relative to each user's profile. ...
Visual Web Developer Team Blog Also, we can resolve site-relative paths to the project root for if there's ... DOM element creation is not supported at design-time (IntelliSense-time as I ...
Dangerous paths - URI Design Aug 3, 2007 ... The first line consists of the HTTP method, followed by a root-relative path, then the protocol version. The subsequent lines contain the ...




Search This Site:










dates in a maskedtextbox

where to look for resources -- multi-language, custom forms, calendar

directory security

when i upload from inline file upload it fails

unauthorized users question

please help... space problem

using trace to debug

recursive tree

masking a url

li a:active problem

adding controls to a custom datagrid server control

smtp problem...

registerforeventvalidation

remote access of dnn

customization of quick launch menu

dnn v2b1 - email and cdo.message problem

users online shows users from differnt portal

date function

formatting description field

significance of buildsupport directory

system.web.httpexception: no http handler was found for request type 'get'

changing dnn icon in browser address bar

will i be able to make dnn do this for me?

fileexists

how do i retrieve both the datatextfield and the datavaluefield from a dropdown list

howto log out of domain ?

trimming spaces with calendar picker to send to sql statement

looping through records

javascript dropdown control

csc.exe times out while running asp.net apps in visual c#

 
All Times Are GMT