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. webpage code .aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestStandards.aspx.vb"
Inherits="PATHOLOGY.TestStandards" %>Standards
Test Name:
-
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. webpage code .aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestStandards.aspx.vb"
Inherits="PATHOLOGY.TestStandards" %>Standards
Test Name:
Actually, i Don't really understand your question, why would you remove all tags (head etc.) from the masterpage?
.: I love it when a plan comes together :. http://www.zonderpunt.nl
-
Actually, i Don't really understand your question, why would you remove all tags (head etc.) from the masterpage?
.: I love it when a plan comes together :. http://www.zonderpunt.nl
head, title and doctype tags are not removed from the masterpage.. it has been removed from the webpage which i want to display in masterpages's contentholderplace. if u refer masterpagefile in <@page> line then head and title, html and doctype tags will show error that these tags are should not be nested in div. i got my master page and a webpge which i want to open in master page. The webpage is having tabs and on clicking on it open the view of that tab. It works perfectly if not opened in masterpage's contntplaceholder. When i open it in masterpage contentplaceholder the webpage appears ...i can even see the tabs but on clicking on tabs takes me to home page which is default page instead of showing me tab view.
-
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. webpage code .aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestStandards.aspx.vb"
Inherits="PATHOLOGY.TestStandards" %>Standards
Test Name: