|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Take out last character from textbox or labelI am trying to find the best way to delete the last character from a
textbox. For example: status.text = "full/part/" I want to take out the trailing "/". Thanks, Tom string s = "xxx/";
s = s.TrimEnd("/".ToCharArray()); -- Show quoteHide quoteMike "tshad" <tscheider***@ftsolutions.com> wrote in message news:eegYcvTbFHA.2896@TK2MSFTNGP10.phx.gbl... >I am trying to find the best way to delete the last character from a >textbox. > > For example: > > status.text = "full/part/" > > I want to take out the trailing "/". > > Thanks, > > Tom >
Other interesting topics
No two-way databinding
javascript datagrid events inside item template container.dataitem cast throws exception if(blah) alert box else somethinge useful code continues after stop debugging How to Stop a Function? datagrid - do not refresh the contents in the grid Exception has been thrown by the target of an invocation....what is this? asp.net button handler PostBack after AddHandler |
|||||||||||||||||||||||