Skip to Content
author's profile photo Former Member
Former Member

Sharing Portal CSS with .Net Web Applicaiton

We have an ASP.Net application being built by another team. Since this application will be available via the portal we asked the team to utilize the portal styles. We'll be using application integrator to access this .Net web app. Any suggestions on the best way to share the portal styles with this team?

Regards,

Diane

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Apr 25, 2011 at 02:03 PM

    Hi,

    when using AI make sure you can specify that the iView should send the portal theme as a parameter. For the SAP AI iViews for integrating BSP, WDA, WDJ the parameter is named sap-cssurl and contains the complete URL to the portal theme in use: http://portal:port/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/[themeName]

    Your .Net app needs to read this POST parameter and include it as a CSS file:

    <link rel="stylesheet" type="text/css" href="http://portal:port/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/[themeName]">

    That's how SAP is doing it also, look at a WDJ application and how WDJ is integrating the portal theme in the <head> section of HTML code.

    br,

    Tobias

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2011 at 02:50 PM

    Thanks

    How is the best way for the analysts in the .Net application know what style to use when? Say like if they are using a submit button - how will they know what style to apply?

    Diane

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      The portal will only pass the CSS theme as a parameter, if and when the .Net application will use this style, that's part of the work the .Net developer has to do. For instance, the CSS definition of the SAP Portal for a button is:

      class=urBtnStd

      The .Net application has to implement the portal class tags.

      br,

      Tobias

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2011 at 03:44 PM

    Right- but how would these .Net programmers know a button needs the style named urBtnStd?

    Diane

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2011 at 05:27 PM

    Bugger - I am the portal team and was hoping there was something I could hand off to them.

    Thanks!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.