Hi All, I'm aiming to do a replace function in .net and it doesn't seem to be working.. What I have so far is, but it doesnt seem to be working.. <script runat="server"> Sub Page_Load lblDescription.Text = Replace(lblDescription.Text,"new","original") End Sub </script> <asp:Label ID="lblDescription" runat="server"> </asp:Label> Anyone able to help me?
Sub Page_Load lblDescription.Text = Replace(lblDescription.Text,"new","original") strDesc=lblDescription.Text strDesc=Replace(strDesc,"new","original") lblDescription.Text=strDesc End Sub Code (markup): you can try using string varible i am not sure bcz i am C# programmer