rito1
asked on
Search and replace text within a file using C#
Hi All,
I have a file on the server called:
C:\inetpub\wwwroot\mypage. aspx
... I have appended the code for this page.
On the fly using C#, I would like to be able to replace the code ' Text="" ' within the 1 literal control with Text="1".
Please could anyone show me how to achieve this?
Many thanks,
Rit
I have a file on the server called:
C:\inetpub\wwwroot\mypage.
... I have appended the code for this page.
On the fly using C#, I would like to be able to replace the code ' Text="" ' within the 1 literal control with Text="1".
Please could anyone show me how to achieve this?
Many thanks,
Rit
<%@ Page Language="C#" MasterPageFile="~/content.master" %>
<script runat="server">
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="PageID" Runat="Server">
<asp:Literal ID="litPageID" runat="server" Text=""></asp:Literal>
</asp:Content>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
HI Mike_Mozhaev,
I am just checking this out.
Thanks,
Rich
I am just checking this out.
Thanks,
Rich
ASKER
Perfect, thanks.
Rit
Rit
ASKER