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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem DataBinder ! Substring ???

Status
Not open for further replies.

ety1910

Programmer
Apr 20, 2005
14
RO
I have this sequence of program ...

<div class="divCell ObsArabil"> <asp:Label runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Comments")%>' ID="lbleArabilComments" CssClass="Label SmallSize"> </asp:Label>
&nbsp;
</div>

The result is some like this :
ex : 25.08.2008:TEST1 TEST2

how i obtain just TEST1 or TEST2
i try with DataBinder.Eval(Container.DataItem,"Comments").Substring(10,20) but don't work !
Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top