c# - Trimming ASP.NET Hyperlink Variables -


i have question regarding applying rtrim on asp:hyperlink statement. code have follows:

 <asp:hyperlink runat="server" class="iframe" id="modellink"  navigateurl='<%# string.format("allaudits.aspx?model={0}&date={1}", trim(eval("model_number")), trim(eval("record_date")))%>'  text='<%# eval("model_number") %>'> </asp:hyperlink> 

essentially, want pass model_number , record_date want apply rtrim eval statements. have searched literally everywhere , not sure else try. point me in right direction?

thanks!

actually, got working using following:

 navigateurl='<%# string.format("allaudits.aspx?model={0}&date={1}", eval("model_number").tostring().trim(), eval("record_date").tostring().trim())%>' text='<%# eval("model_number") %>' 

didn't think i'd able find it, there is!


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -