Replace String from Text C# and VB.Net in ASP.Net

Last Reply one year ago By pandeyism

Posted one year ago

my text 

 Label1.Text= ("kjljk ;lkjlkj     (((((   jlkj;lkj lkjl;kj;lkj");

my need for remove   (((((

and Re Change use ppp

Help  C# asp net coding 

Posted one year ago Modified on one year ago

Hi tareq24bd,

Please refer below sample.



protected void Page_Load(object sender, EventArgs e)

    lblMessage.Text = ("kjljk ;lkjlkj     (((((   jlkj;lkj lkjl;kj;lkj").ToString().Replace("(((((", "ppp");


Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
    lblMessage.Text = ("kjljk ;lkjlkj     (((((   jlkj;lkj lkjl;kj;lkj").ToString().Replace("(((((", "ppp")
End Sub


kjljk ;lkjlkj ppp jlkj;lkj lkjl;kj;lkj