然而,另一个ASP:文本框VS<输入类型="文本"> [英] Yet another ASP:Textbox vs <input type="text">

查看:149
本文介绍了然而,另一个ASP:文本框VS<输入类型="文本">的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过关于这个主题的一些文章读,但我仍然对此持谨慎态度。我一直使用ASP:文本框,但我想知道是什么东西的输入文本框不可能不使用ASP执行:文本框或花费更多的精力去拉断

I have read through some articles on this topic but I am still cautious about this. I am all along using ASP:Textbox but I would like to know what are the things an input textbox cannot possibly perform without using a ASP:Textbox or takes much more effort to pull off?

我有一个使用HTML输入文本框,一个jQuery的工具提示样,我不知道我是否应该改变我所有的ASP:文本框为HTML文本框,我需要在这个文本框执行的事情RequiredFieldValidation以及存储它们的值到数据库中。

I have a Jquery tooltip sample which uses HTML input textbox and I am not sure if I should change all my ASP:Textboxes to HTML textboxes, the things which I need to perform on this textboxes are RequiredFieldValidation as well as storing their values into the database.

任何人都可以咨询我这个菜鸟问题。谢谢。

Anyone can advice me on this rookie question. Thanks.

推荐答案

据我知道有一个HTML输入框和文本框的ASP之间没有明显的服务器端编程的区别。 ASP.NET验证器将工作完全是双向的。

As far as i know there is no visible server side programming difference between a HTML input box and an ASP Textbox. ASP.NET Validators would work perfectly both ways.

至于你提示的关注。如果您使用的是ASP文本框,因为你的ASP文本最终会为一个HTML文本框反正Jquery的不关心。

As for your tooltip concern. Jquery doesn't care if your using an ASP Textbox since your ASP textbox will end up as an HTML textbox anyways.

和您的意见 - 我不建议你改变你所有的ASP文本框HTML输入框,它只是在浪费时间。您应该使用的CssClass /类属性显示工具提示来代替。这样,它会在你的常规HTML输入框和文本框的ASP +其他网页元素的工作。

And for the advice - i don't recommend you changing all your ASP Textbox to HTML input boxes, its just a waste of time. You should use the CSSClass / class property to display the tooltip instead. That way it would work on your regular HTML input box and ASP Textboxes + other page elements.

这篇关于然而,另一个ASP:文本框VS<输入类型="文本">的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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