2
Reply

C# strings

Elias Olney

Elias Olney

Apr 8 2008 8:55 AM
2.5k

Hey there...

I want to use c# to fill a string in my application that I can then use to place directly in my HTML code...

e.g.

<html>

<head><title>[#MYSTRING#]</title>

</head>

<body></body>

</html>

REASON: I have about 10 pages all with the same menu system hardcoded in each page. I want to remove the menu html from all of these pages and then place a tag/string such as [#menucode#] into each of the 10 files where the menu code would normally have been... then I just have one file containing the menu code that my application uses to put into the string... that way I don't have to edit every page when I change 1 item in the menu etc...


Answers (2)