Opening webpage having stylesheets in masterpage contentplaceholder
-
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
-
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
-
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
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.