Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Opening webpage having stylesheets in masterpage contentplaceholder

Opening webpage having stylesheets in masterpage contentplaceholder

Scheduled Pinned Locked Moved .NET (Core and Framework)
htmlsysadminhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mominafiz
    wrote on last edited by
    #1

    i got little problem with opening a webpage in masterpage's contentplaceholder. To open a webpage in contentplaceholder of masterpage i need to do is remove html tag , head and title... and doctype tag too. along with this i need to remove runat=server from form tag and put action instead. and on the top most line '@page' i need to add masterpagefile attribute. All code except for the first line has to be placed in asp:content control with ref to master contentplaceholder...... but what i do if my webpage has style sheet ..i cant remove head tag bcoz it contains style sheet link..and if dont remove style from the head and try to run removing html tags and doctype....the webpage opens in masterpage but on clicking on tab which is in webpage takes me to homepage instead of opening tab. master page code: <%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Pathology.master.vb" Inherits="PATHOLOGY.Pathology" %> Pathology

    Image/Logo hospital name Hospital Address Hospital city, pincode Hospital Contact Numbers

    L T 2 Replies Last reply
    0
    • M mominafiz

      i got little problem with opening a webpage in masterpage's contentplaceholder. To open a webpage in contentplaceholder of masterpage i need to do is remove html tag , head and title... and doctype tag too. along with this i need to remove runat=server from form tag and put action instead. and on the top most line '@page' i need to add masterpagefile attribute. All code except for the first line has to be placed in asp:content control with ref to master contentplaceholder...... but what i do if my webpage has style sheet ..i cant remove head tag bcoz it contains style sheet link..and if dont remove style from the head and try to run removing html tags and doctype....the webpage opens in masterpage but on clicking on tab which is in webpage takes me to homepage instead of opening tab. master page code: <%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Pathology.master.vb" Inherits="PATHOLOGY.Pathology" %> Pathology

      Image/Logo hospital name Hospital Address Hospital city, pincode Hospital Contact Numbers

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      This is the wrong forum, try Web Development or ASP.NET. Also read the message at the top "How to get an answer".

      It's time for a new signature.

      1 Reply Last reply
      0
      • M mominafiz

        i got little problem with opening a webpage in masterpage's contentplaceholder. To open a webpage in contentplaceholder of masterpage i need to do is remove html tag , head and title... and doctype tag too. along with this i need to remove runat=server from form tag and put action instead. and on the top most line '@page' i need to add masterpagefile attribute. All code except for the first line has to be placed in asp:content control with ref to master contentplaceholder...... but what i do if my webpage has style sheet ..i cant remove head tag bcoz it contains style sheet link..and if dont remove style from the head and try to run removing html tags and doctype....the webpage opens in masterpage but on clicking on tab which is in webpage takes me to homepage instead of opening tab. master page code: <%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Pathology.master.vb" Inherits="PATHOLOGY.Pathology" %> Pathology

        Image/Logo hospital name Hospital Address Hospital city, pincode Hospital Contact Numbers

        T Offline
        T Offline
        T M Gray
        wrote on last edited by
        #3

        You can use Skins and set the SkinID of the master page in the page load of your page. You could put some javascript in the page that sets the href on the link tag. You could put all your styles in one stylesheet and have the master refer to that rather than having lots of different stylsheets that you need to switch between. There are lots of options.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups