Relative path in web config
How can I have a relative path in the web.config file. This value is not in the connection string so I cannot use |DataDirectory| (I think), so what can I do? ...
How can I have a relative path in the web.config file. This value is not in the connection string so I cannot use |DataDirectory| (I think), so what can I do? ...
Hello i have a control that is organized like this and i want to have the javascript registered on the calling master pages, etc, so that anywhere this control folder is dropped and then registered, it will know how to find the URL to the js. Here is what i have so far (in the user control ) protected void Page_Load(object sender, ...
I'm working in Visual Studio 2005 and have added a text file that needs to be parsed by right-clicking the project in the solution explorer and add --> new item. This places the .txt file to the project folder. The debug .exe file is in the /bin/debug folder. My main question is how to properly point to the txt file from code using rel...
Whar are the relative merits between GDI+ and WPF? Also does anyone know the minimum system requirements needed in order to develop/run WPF apps? ...
I am having a frame-based webpage with 3 frames. A topliner, a navigation on the left side and a content frame on the bottom right side. Now, I want to show up a popup-menu when the user right-clicks on the content-frame. Because a div-container can not go out of the frame, my idea was, placing the whole frame-page into a new iframe. In...
I got a CSS Problem, and I don't know if it's actually possible to achieve what I want. Here's a sketch to illustrate what I want to achieve: http://dl.getdropbox.com/u/103519/pkstudio/IMG.jpg And here's the demo page: http://dl.getdropbox.com/u/103519/pkstudio/menu_test.htm Actually the child div should be positioned relatively to the...
How do I position a child relative to its containing box? The Code: <mx:Script> <![CDATA[ thisMap.scaleX = scaleFactor; thisMap.scaleY = scaleFactor; thisMap.x = thisMap.x - thisMap.mouseX * 1.3; thisMap.y = thisMap.y - thisMap.mouseY * 1.3; ]]> </mx:Script> <mx:Box id="mapHolder" x="0" y="30"> ...
I'm using YUI to create a 3 column layout like so: ===================== = = ===================== = s = = = i = = = d = = = e = body = = b = = = a = = = r = = ===================== The sidebar is scrollable (that is, t...
In Silverlight XAML, I think I've just realized that a DataContext declaration on a nested container is relative to the parent container's DataContext. Can you all please confirm. If so, then let me ask this: On a child XAML container element (i.e. StackPanel) how would you would jump out of that relative DataContext tree, and start at ...
I know that it is poor performance to use relative paths when including a file in php. But, is this true for for all paths or just paths relative to the assumed (context) include path? Is this line require '/home/../http/test.php' as fast as this line require '/http/test.php' ...
Hi, i got a news page (a view) at my application and it has news' image and text. Text is in a UITextView and i want my text to start next to image and when the image ends continue from the down of the image, like the text is surrounding the image. i tried autoResizingMask but as i ve understood it is for the relations between subview a...
I am writing some documentation and I have a little vocabulary problem: http://www.somedomain.com/en/public/img/logo.gif is called an "absolute" url, right? ../../public/img/logo.gif is called a "relative" url, right? so how do you call this: /en/public/img/logo.gif ? Is it also considered an "absolute url", although without the prot...
I'm capturing data from an external url using php and throwing it back to my page via ajax to load images. My problem is the external url have some images that are relative("images/example.jpg") so I have to prepend their base domain("http://www.example.com) so I can load it in my page. Problem is some of the images includes a base domai...
So, after much research on whether or not we should the CEWP or the HTML Field Control on an external facing SharePoint site, we settled on using the Field Control (much thanks to AC). Now, we are having an issue that all the blogs I read say should not be an issue. When we put a relative URL into the HTML Editor and hit OK, it is auto...
hi, I have the Python modules a.py and b.py in the same directory. How can I reliably import b.py from a.py, given that a.py may have been imported from another directory or executed directly? This module will be distributed so I can't hardcode a single path. I've been playing around with __file__, sys.path and os.chdir, but it feels m...
I'm trying to copy a element's dimensions and the position(relative to the document) onto another element. Ex: var SelectedElement = $("div#MyTargetElement"); // The CopiedButEmpty element is a div with absolute position that is meant to hover/float above the selected element. $("div#CopiedButEmpty").css("width", SelectedElement...
Hi! I am trying to position some text relative to the prior element. So i have 4 boxes and 1 container, the first and second element works, but then the problem starts. It is supposed to be 2 rows with 2 boxes on each row. Box1 | Box2 Box3 | Box4 But the Box3 isn't showing as it is supposed to. http://homeweb.mah.se/~M09K0291/test.ht...
My files are referenced like so (it's all relative): // WHERE YOU KEEP THE PAGE TITLE XML public static string myPageTitleXML = "xml/pagetitles.xml"; and using (StreamReader r = new StreamReader(myPageTitleXML)) { //etc.. . .etc....etc.. } I get system.io.directorynotfound, and "this problem needs to be shut dow...
I'm assuming: String abc = "My Documents/FileName.txt".Split('/')[1]; // is not the quickest way Is it? ...
We are working with a code repository which is deployed both to windows and linux, sometimes on different directories. How should one of the modules inside the project refer to one of the non-python resources in the project (CSV file, etc.)? If we do something like thefile=open('test.csv') or thefile=open('../somedirectory/test.csv')...