Trim a string! ASP.NET C#

  CutNpaste 10:21 25 Apr 07

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.

Surface Pro (2017) vs Surface Pro 4

20 groundbreaking 3D animation techniques

How to mine Bitcoin on Mac