Trim a string! ASP.NET C#

  CutNpaste 10:21 25 Apr 2007

Need help!!
I connetected to an access database using dreamweaver and created a dataset and can display data using the dataset.

i want to trim a dynamic text to a certain amount of characters such as:

%# DataSet1.FieldValue("ServiceName", Container) %>
to about 20 characters.

how do i set a variable to the feild value above and then trim it.

i tried a couple of things like:

string str= DataSet1.FieldValue("ServiceName", Container);

but i get an error saying the "Container" doesnt exist.

please help!!!!

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Xiaomi Mi Mix 2 review

See mcbess's iconic style animated for Mercedes-Benz

iPhone X news: Release date, price, new features & specs

Black Friday 2017 : date, sites participants & bonnes affaires