O
osh
Help!
I am trying to set up a content editor. When the content editor pulls
in the page it still has the:
<%@ Page Language="C#" MasterPageFile="~/site/Interior.master" %>
line at the top of the page in the source code. I don't want the client
to be able to hit the "View Source" button in the content editor and
mess with that line of code, however, I want to keep the "View Source"
button in the editor.
I need to extract this line from the page and store it in the string.
The problem is that "MasterPageFile="~/site/Interior.master" or
"MasterPageFile="~/site/AnotherMaster.master" so I can't just do a
replace for this string because it may differ from page to page.
I am trying to use a regular expression to match <%@ Page Language="C#"
MasterPageFile="~/ because that will always be the constant. How
can I extract this from the string that holds the content of the page
and store this in a string?
Any help anyone can give would be greatly appreciated!
I am trying to set up a content editor. When the content editor pulls
in the page it still has the:
<%@ Page Language="C#" MasterPageFile="~/site/Interior.master" %>
line at the top of the page in the source code. I don't want the client
to be able to hit the "View Source" button in the content editor and
mess with that line of code, however, I want to keep the "View Source"
button in the editor.
I need to extract this line from the page and store it in the string.
The problem is that "MasterPageFile="~/site/Interior.master" or
"MasterPageFile="~/site/AnotherMaster.master" so I can't just do a
replace for this string because it may differ from page to page.
I am trying to use a regular expression to match <%@ Page Language="C#"
MasterPageFile="~/ because that will always be the constant. How
can I extract this from the string that holds the content of the page
and store this in a string?
Any help anyone can give would be greatly appreciated!