Saturday, March 24, 2012

Trim the databinder

when i binder data in a droplist for the selecteditem

i get selecteditem=' data ' ... the data with spaces for

the selecteditem='<%#bind()%> '

how i can eliminate the spaces

thanks

Finally i dot that

<asp:droplist id=dlcursos runat=server SelectedItem=<%# QuitarSpaces(bind("curso"))%>

in the code i make a function

Public Fuction QuitarSpaces(byval texto as string) as string

return trim (texto)

end function

end

No comments:

Post a Comment