is it possible to do globally string replacements on strings like {myName1} in asp.net webforms?
I want to automatically replace given strings when the page loads. {myName1) can be found multiple in the text in default.aspx oder about-us.aspx etc.
is it possible to do globally string replacements on strings like {myName1} in asp.net webforms?
I want to automatically replace given strings when the page loads. {myName1) can be found multiple in the text in default.aspx oder about-us.aspx etc.
You can use an ASP.NET Webforms evaluate tag in your aspx page. See this page: <%$, <%@, <%=, <%# ... what's the deal?
For example, you could use
<%= MyName1 %>
and then define the value of myName1 as a string Property your codebehind class.