在整个应用程序中修剪功能 [英] Trim function in whole application

查看:56
本文介绍了在整个应用程序中修剪功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Professionals,



我正在使用带有C#的asp.net-mvc制作应用程序。

有很多页面(视图根据MVC)并且每个页面都有很少的文本框。



我想对所有文本框应用修剪功能。

一个单一且不恰当的解决方案是转到每个页面并将jquery的修剪功能应用于每个文本框。





如果有人能给我一个更好的方法和有效的方法,对我来说会有很大的帮助。



问候,

Shivang。

Hello Professionals,

I am making an application using asp.net-mvc with C#.
There are many pages (views as per MVC) and every page have few textboxes.

I want to apply trim function to all the textboxes.
One single and inappropriate solution is to go to every page and apply jquery''s trim function to each and every textbox.


It would be of great help to me if anyone can suggest me a better way and efficient way.

Regards,
Shivang.

推荐答案





你可以扩展文本框控件来修剪请求文本框值时的功能。



查找项目中的所有文本框并替换为新的文本框控件。
Hi,

You could extend the textbox control to give you trim funcionality when you request the textbox value.

Find all textboxes in your project and replace with your new textbox control.


这篇关于在整个应用程序中修剪功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆