Re: string

Tech-Archive recommends: Speed Up your PC by fixing your registry



Something like

myTextBox.Text = myString.Substring(0,20);

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin


"Eugene Anthony" <solomon_13000@xxxxxxxxx> wrote in message
news:OkQmSjkVHHA.1000@xxxxxxxxxxxxxxxxxxxxxxx
Lets say in a string variable I have stored around 100 characters. Now I
would like to only display 20 characters from the 100 characters stored
in the variable. How is it done using asp.net 2.0 with C#?

Regards


Eugene Anthony

*** Sent via Developersdex http://www.developersdex.com ***


.



Relevant Pages

  • Re: streaming images
    ... Software Developer & Consultant ... Microsoft MVP ... I have a ADO.NET dataset that contains a jpeg (blob data) and some ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: label in footertemplate of datagrid
    ... Software Developer & Consultant ... Microsoft MVP ... FooterTemplate of the DataList control? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to bind data to DataGrid or Grid View
    ... Software Developer & Consultant ... Microsoft MVP ... store that customer objects in arraylist as shown below. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Restricting Printing
    ... Still doesn't save you from just PrtScr. ... Software Developer & Consultant ... Microsoft MVP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Which databind syntax to use
    ... regular databinding expressions or any other ways of databinding. ... Software Developer & Consultant ... Microsoft MVP ...
    (microsoft.public.dotnet.framework.aspnet)