How Do I get a portlets actual path using the PRC?

Greetings,
I have a .NET application and I want to use a config file(text)to set some variables in my load_page method. I plan on putting the config file in a directory relative to where the portlet lives, but I can not seem to get the string of the actual portlet host. This seems easy enough but I can't figure it out.
I am using G6.
Thanks In advance.
Rich
P.S. Please don't direct me to tags!

.NET provides about a bajillion ways of doing this - try...
(As Chris noted, you can try mappath)
(or) Request.ApplicationPath
(or) Request.PhysicalPath
Keep in mind that if you start playing around with config files I would strongly suggest looking at web.config. It's made for this and also supports the idea of "inherited" properties such that a web.config at a higher level in the IIS directory system can set values you intend to share across all apps (EX: database connection information or whatever) - BUT - the nice thing is you can override those values at a lower level by simply placing the value in a web.config within your apps virtual directory (or you could do any number of other things with an app config).
"How to: View Inherited and Local Configuration Settings Programmatically"
http://msdn2.microsoft.com/en-us/library/ms228059.aspx
"ASP.NET Configuration File Hierarchy and Inheritance"
http://msdn2.microsoft.com/en-us/library/ms178685.aspx
No tag love?
Thanks,
Eric

Similar Messages

  • I have changed my Apple ID on my iPad, but my iPhone keeps popping up with the old ID.....how do I get all my devices to use the same ID?

    How can I get all my devices to use the same Apple ID?

    Different services on your iOS device (iMessage, Facetime, iCloud, iTunes and App Store) can be signed into with an Apple ID of your choice. Make sure you verify the settings for each device and that you are signed in to each service with the correct Apple ID.
    I'll do an example for iMessage:
    1) Go to settings on your iOS device
    2) Select "Messages"
    3) Select "Send & Receive"
    4) At the very top you will see "Apple ID", by selecting your Apple ID, you will now have the option to sign out of messages with the current Apple ID, and sign in with the new one.
    The steps for changing your Apple ID for other services will be very similar.
    tHIS SHOULD BE VERY HELPFUL TOO YOU.

  • How can I add to an existing path using the pencil tool?

    This probably seems like a rather elementary question, but
    whenever I draw a path using the pencil tool, reselect it,
    hover over the endpoint, and the click and drag to extend
    the line off into a different direction, Illustrator will often
    (but not always) erase the existing path and leave only the
    new one that I drew.
    To wit:
    In step 1 above, I draw a line with the Pencil tool.
    In step 2 above, I reselect the line from step 1, hover over the endpoint, and then continue to draw further.
    However, as can be seen in step 3, the line from step 1 disappears after I draw the new path.
    I am aware of the pencil setting, "Edit selected paths", and I have checked it to edit selected paths
    within 12 pixels for the above example. What I am doing in the above example, and what I
    want to do, is to be able to add more paths onto an existing one using the pencil tool,
    rather than have a completely new path being drawn every time I lift up my pen to finish
    drawing the previous path.
    I also realize that I can do this with the pen tool; but the pen tool is a more
    precise tool (and somewhat more cumbersome), and I prefer to have more
    of the rough-handed look from time to time.
    Finally, I also know that I can use the direct selection tool to select endpoints
    from two different paths and then join them using the join command;
    but this seems to be more trouble than it's worth in many cases, especially
    if I want to do it frequently for a more long and complicated line.
    Am I expecting too much out of Illustrator?
    Is my idea of how to use the existing tools wrong in this case?
    Is there some piece of knowledge I'm missing?
    I'm on Illustrator CS5, Mac OS X 10.6.8, using a Wacom Intuos4 tablet.
    However, I have confirmed the above on Illustrator CS4 for Mac as well.
    Any help or comments would be much appreciated.
    Jeff

    Thanks @rcraighead - the Live Paint process seems a bit overkill for simply adding
    a new path onto an existing pencil path, but I did try the first idea you suggested,
    which was tracing a bit over the last part of the existing path and then continuing
    on to extend the path. It's a bit imprecise because the existing path gets slightly
    modified, but it seems to work pretty well all in all. Nice idea indeed - thanks a million.
    I also found that in AI CS5, I can use the selection tool to select all of the paths
    in this case and then join them using the join command. I thought I needed to
    select individual anchor points for this to work, but it actually works really
    well, better than I thought. I seem to recall that previous versions of Illustrator
    were a lot more picky with the Join command, but then again this might just
    have been my lack of understanding.
    I'm curious to know what other solutions to the above problem that other users
    might have, so I will leave this question unanswered for a bit...
    but I will use your initial technique described - it seems to work
    pretty well, in absence of other options Many thanks again for your timely help.
    Jeff

  • How can i get mynew mac mini to use the drive in my old mac pro

    When I first got my new mac mini it dosen't have an internal drive.   So I hooked it up on the network and fire wire.  I could use the superdrive in the mac pro just fine  both itunes and the dvd player worked as they would with a internal drive.   But now a couple of upgrade down loads later not so much.  yes I can connect with screen share and can get the dvd player to play dvd's but still can't get itunes to use the superdrive.  Iht exect disk icon in the apple menue bar use to open and close the super drive but now it reads "no disk" How can I get my mac mini to automaticly use the superdrive when i turn on the mac pro. 
    I've done all the easy things changing the order of start up and share settings and i sware it did work ok when i first hooked it up.

    http://www.totalapps.net/mac/remote-disc-sharing-when-the-superdrive-doesn’t-wor k-2/
    Mind you, booting off the external optical drive of another computer may not be practical because of the different operating system limitations of the computers.   I would just purchase an external optical drive from http://www.macsales.com/ if you find it doesn't work.

  • How do I get iPlanet 6.0 to use the Java Server VM?

    I've tried having java.option=-server in jvm12.conf, but the logs still say that the Client VM is being run.
    Apart from actually modifying the java executable to put -server in the command line, how else can I achieve this?
    Thanks,
    John.

    You also need to edit the start-jvm settings as explained here:
    http://docs.sun.com/source/817-6094-10/rn60sp8.html#wp34277
    Thanks
    Manish

  • I imported a photo from my email to my iphoto but now my HP printer is printing my documents from the photo cartridge.  How do I get my printer to print using the regular black cartrigde.

    I imported a photo from my email to my iphoto. I  am on a Mac OSX version 10.6.8.  But now my HP printer 7510 is printing my documents with the photo cartridge rather than the regular black cartridge.  How do I correct this.

    Seems like an odd question for an iPhoto forum and more one for an HP forum.

  • How do i get an applet to work using the embedded server?

    every time i use teh builder to make an html file to run the applet i get...
    <APPLET CODE="applet.basic2" ARCHIVE="adfshare.jar,bc4jmt.jar,collections.jar, ...etc
    HEIGHT="200" WIDTH="200" ALIGN="bottom">
    This browser does not support Applets.</APPLET>
    clearly, the browser DOES support applets because i can run them off the net.
    is there anything i am doing wrong?
    thanks for any advice.
    Owen Brandon

    In the Java Control panel check the "<APPLET> tag support" in the Advanced tab.

  • How to get system temp dir. path on the fly ,system may be XP or Linux ??

    How to get system temp dir. path on the fly ,system may be XP or Linux ??
    please suggest solution

    The default temporary-file directory can be retrieved
    using:
    System.getProperty("java.io.tmpdir")
    Thanks a lot for u r reply this one works !!!!

  • New install - how do I get additional portlets?

    I recently installed and configured the Portal and there are only a limited amount of portlets available to choose from and they seem more administrative then content oriented. How do I get more portlets (i.e. News, Weather, Stock Quotes...)?

    Hi,
    For news/tiker portlets, in the new installation, you should find the "Yahoo" portlets which are basically news/stock ticker etc. portlets
    from yahoo. Additionally, you can visit http://portalcatalog.oracle.com to get more portlets developed in collaborative effort
    by portal community.
    Regards.

  • How can I get my application Context Path?

    How can I get my application Context Path via webdynpro code?
    Let say I'm accesing my application with URL
    https://myapp:8443/webdynpro/dispatcher/local/MyApp/App, how can I get
    the value 'https://myapp:8443' from webdynpro code? In J2EE, this is
    equivalent of HttpServletRequest.getContextPath() method. Do we have
    this method call in webdynpro object?

    Hi John,
    Yes you can achieve that in Web Dynpro.
    Try the following -
    // USE THIS FOR GETTING THE SERVER NAME AND IMPORT WEBLOGIC.JAR FILE IN THE JAVA BUILD PATH PROPERTIES
    HttpServletRequest request = (( com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
    //GETS THE HOST NAME OF THE SERVER
    String strHostName = request.getServerName();
    Thanks,
    Sam

  • Truly dumb question. How do I get PS to actually complete a command, eg straighten an horizon, and finalise the change. Even doing a "save as" with a new file name and reloading brings the image back, straightened, but with the skewed back ground frame st

    Truly dumb question. How do I get PS to actually complete a command, eg straighten an horizon, and finalise the change. Even doing a "save as" with a new file name and reloading brings the image back, straightened, but with the skewed back ground frame still there. Is there a "apply change" or similiar command that I simply cannot see.

    brings the image back, straightened, but with the skewed back ground frame
    PSE did what you told it to do. Choose the Straighten and crop edges or fill edges options when you use the straighten tool if you want it to do more than just straighten the contents of the image. Many people prefer the plain straighten because they'd rather crop themselves than let PSE do it.

  • How do i get data from a structure using join?

    hi,
    what is the actual use of a structure.?
    my problem is :
    KUAGV is an existing STRUCTURE. it has got one fields each which links to MARA, AND VBKD tables. i want to fetch all related information from KUAGV, mara, vbkd . which is the better way : using joins or views or anything else? how do i
    get data from a structure using join?

    structure temporarily holds  any data passed to it dynamically throughout the runtime but doesnot store it permanently. so
    a structure cannot be included in a join.so instead of incuding structure KUAGV's field in a join 
    search the transparent table in which same field are present and  use it in join.
    A structure if created in DDIC(Data Dictionary) is a global DATA STRUCTURE which is used to group related information, for example you would group all the details of your bank account into a structure BANK_ACCOUNT that contains fields like account_Id, account_holder_name etc.
    If you create a structure in your program then it is local to your program. So you use this structure to create data holders of this DATA TYPE to hold data in your program.
    Edited by: suja thomas on Feb 11, 2008 6:24 AM
    Edited by: suja thomas on Feb 11, 2008 6:31 AM

  • How do you get your content in front of the right people?

    "Outbound Content Marketer of the Year, Joe Chernov (VP of content at HubSpot) told me: Marketers always ask me how to make more or better content, and it’s almost always the wrong question. The right question is: “How do I get my content in front of the right people?” - Forrester's Ryan Skinner
    Forrester published a very interesting report in October called "Put Distribution at the Heart of Content Marketing" (here's the related Forrester blog post). My VP shared the report with me and asked me to review and research a key content distribution strategy potentially leveraging the key technologies that are listed in the report. These technologies focus on helping identify influencers, publish content on targeted media properties and publish content if it ranks highly. I have to admit, this is somewhat new territory for me - I've yet to really focus on content distribution strategies across the entire buyer/customer lifecycle and although I've used one or two of these technologies personally, others I've only heard of and some I just flat-out had to Google.
    In true intrapreneurial spirit, I starting working through the research phase - I'm actually still working through it - and as I do, I can't help but to start mentally creating a blueprint of sorts... Imagining our technology roadmap interwoven with a content distribution strategy to create and drive a valuable buyer/customer experience (to acquire, keep and grow, of course). Ideally, we'd be able to accomplish all of the above points to significantly - and intelligently - extend our reach moving forward. So, back to the the Forrester report... To help more holistically drive content distribution, Forrester recommends creating a "distribution boss" and linking that person to content creation. I like it. To even further boost success of content marketing initiatives, Forrester suggests: (and I'm paraphrasing liberally here):
    1. Your distribution boss needs to be a left-brained analyst with a right-brained way with words
    2. Borrow some $$ from your content creation budget for some content promotion
    3. Encourage a BFF relationship between your PR and media teams and your content marketing teams
    Bottom (or should I say "top") line? I'm looking forward to our organization developing a more scientific content distribution strategy in 2014. Can I get an "amen!"? So, what are you and your teams doing to take a more scientific approach to content distribution in 2014? Or what are you currently doing? I look forward to Topliners feedback!
    Cheers!
    Kristin
    P.S. Technologies currently under review:
    - Include your influencers in a distribution strategy: Little Bird, Klout, PeerIndex
    - Look to specific vendors to push content on publisher’s sites: Outbrain, Sharethrough, Taboola
    - Identify social content winners and invest to amplify reach on the networks that work: SimpleReach
    - Keep an eye on emerging technologies for content visibility and distribution: TrendSpottr
    - Others: Parse.ly
    CC: marilyncox

    Alessia,
    I agree! In our current blog consolidation project, we're implementing Google Authorship for all our bloggers and we're currently evaluating how to best leverage Deltek's Google+ channel w/in our content strategy. Our PR/Social Director is not a fan - I'm working on, I mean with, her to see the possibilities.

  • I have several pdfs on my iPad in iBooks. My iPhone shows only the categories, none of the documents. How can I get my iPhone to also show the documents that are on my iPad?

    I have several pdfs on my iPad in iBooks. My iPhone shows only the categories, none of the documents. How can I get my iPhone to also show the documents that are on my iPad?

    You will need to connect your iPad to your computer's iTunes and do File > Devices > Transfer Purchases to copy them over to your computer (that will copy PDFs and epubs that are in the iBooks app, not just actual ibooks), and you can then sync them to your iPhone. Or you might be able to open each PDF in iBooks on your iPad and use the share icon to email them to yourself and then use 'open in' in the Mail app on your iPhone to copy them to its iBooks app (if the PDF is protected then you may not get the email option via the share icon).
    The Settings > iBooks > Sync Collections setting doesn't copy items between devices, it just means that it a bookor PDF is on both devices and you move it into a collection on one device then it will be moved into the same collection on the other device

  • Premiere Pro is not reading all of the video content in my AVCHD clip. I know this because my computer plays all of the content through Preview, so the information is on the card. How do I get Premiere to read all of the content?

    Premiere Pro is not reading all of the video content in my AVCHD clip. I know this because my computer plays all of the content through Preview, so the information is on the card. How do I get Premiere to read all of the content?

    First, AVCHD isn't just "one" clip, it splits the video & audio into several files each per clip, typically with randomly generated names. The only way they "play" correctly is if the software doing so is able to read from the data file ...in a different folder ... the information that X clip is actually A, B, D, #@, and 456 video clips and TR, #r54, and ert$%4 audio clips. The next "clip" is ... and on and on. So both rapid access to the video files AND that database file are necessary to play the files back, or do anything else with them.
    VLC is a fairly decent but simple playback tool. It's nowhere near as complicated nor demanding in its "relationship" with those clips as an NLE like PrPro, which will be trying to do more reading & writing.
    Further, many of the preferences in PrPro are natively set so that it writes project, cache, preview, & database files next to the footage. So ... if it doesn't have both a fast enough connection with the data AND space for putting all of it's own stuff there, it tells you it can't work the file.
    Therefore ... the need to have the complete data from the card in the exact same folder structure it was in ON the card copied to a "local" hard drive.
    Neil

Maybe you are looking for

  • Can not open pdf file in Outlook 2010 - error opening document

    when I click on the PDF file in the email (Outlook 2010), Adobe opens but it pops a window "There was an error opening this document. Access denied". If I save the document as a file, aka to the desktop, I can open it then. Also also I click on the o

  • Using copy express for user settings

    I am in the process of setting up 10 company databases on one system.  The same users will have access to all of the databases (over 100 users).  We have laboriously entered form settings for every possible form under the manager user in one of the d

  • PSC 10 and Pass Through Services - Override the GO button

    I have a couple of questions around the presentation of the service offer and the service form pages. What I am trying to demonstrate for a prospective customer is a "pass-through" service where there is no order form but a link off the central PSC c

  • Lock in FMS code

    Hi,        Does anybody has idea about locking system in FMS server side code. Like we have locking system in Coldfusion and other technologies (CF lock). Like shared objects we have lock, but what If I want to implement lock on the particular script

  • How to stop the recover manager to install "software & driver" on Mini 110c-1147NR

    Hello all, I need to recover my Mini 110c-1147NR to the original manufacturer default OS. Here is what I have tried: 1> Launch recover manager 2> select to recover the system back to the original manufacturer status 3> OS installation is completed 4>