Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace function within repeater

Status
Not open for further replies.

waely

Programmer
Dec 7, 2003
227
0
0
US
hi people,
I hope that someone can help me with this issue. I want to replace a certain character with another when I'm displaying the data in a repeater. here is the codes that I have:

<%# DataBinder.Eval(Container.DataItem, "comment")%>

and I"m trying to test for certain character within the "comment" variable and replace it with something else within the html codes.

thank you for your help
 
what was your solution? i am trying to do a similar task...
 
I just did a simple replace function
_xpar2 = _xpar2.Replace("replace", "with what")

then wrote to the db. and when i wanted to show the message I did the reverse.

hope that helped
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top