显示文本框条目的消息

问题描述:

有没有办法显示一条消息:“value * not allowed” 当用户在文本框中输入时。显示文本框条目的消息

FilteredTextBoxExtender不允许你输入一个值,但是没有消息。

我可以有一个Button_click,但这将需要我在我的代码后面做的更改..我不想这样做。

不能使用modalpopup和filtertextboxextender一起使用。

目前我使用这个,但我不能得到一个消息出来的部份

<cc1:FilteredTextBoxExtender ID="ext_Box_FilteredTextBoxExtender" 
       runat="server" Enabled="True" FilterMode="InvalidChars" FilterType="Custom" InvalidChars="*" 
       TargetControlID="up_Box"> 
      </cc1:FilteredTextBoxExtender> 

的我不太清楚,但我认为你正在寻找验证。

看看ASP.NET验证器。

http://msdn.microsoft.com/en-us/library/aa479013.aspx