Sharepoint设计器中的正则表达式 [英] Regular Expression in Sharepoint designer

查看:90
本文介绍了Sharepoint设计器中的正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我在SharePoint设计器的asp.net多行文本框控件中应用正则表达式验证器时遇到问题.

将expression "^[a-zA-Z''.\s]{1,40}$"应用于正则表达式验证器时,将显示错误.

Hi Friends,

I am facing problem in applying regular expression validator in a asp.net multiline textbox control in sharepoint designer.

On applying the expression "^[a-zA-Z''.\s]{1,40}$" to the regular expression validator it is showing error..

"SharePoint Designer cannot render the XSLT in this Data View. Try to undo your changes or re-insert the Data View.Failed setting processor stylesheet : 0x80004005 : Expected token '}' found ','. ^[a-zA-Z'.\s]{1-->,<--40}$"



再一次,如果我试图将任何值传递给自定义列表中的多行文本框,它甚至不接收任何内容并显示在正则表达式控件中传递的错误消息.

简而言之,当我在多行文本框中传递超过100个字符时,我需要一条错误消息,并且它应该接受小于100的值.

注意:我需要在Microsoft Designer中执行相同的操作.我不需要后面的代码.我只有aspx页面表单.

任何人都可以回答同样的问题.

谢谢



Again if I am trying to pass any value to the multiline textbox which is in the custom list its not even taking anything and showing the error message that is passed in regularexpression control.

So in short I need a error message while passing more than 100 characters in multiline text box and its should accept the value which is less than 100.

NOTE:I need to do the same in microsoft designer.I dont need the code behind. I have only the aspx page form present with me.

Can anybody reply for the same.

Thanks,

推荐答案

"给正则表达式验证器,它显示错误.
" to the regular expression validator it is showing error..
"SharePoint Designer cannot render the XSLT in this Data View. Try to undo your changes or re-insert the Data View.Failed setting processor stylesheet : 0x80004005 : Expected token '}' found ','. ^[a-zA-Z'.\s]{1-->,<--40}


"



再一次,如果我试图将任何值传递给自定义列表中的多行文本框,它甚至不接收任何内容并显示在正则表达式控件中传递的错误消息.

简而言之,当我在多行文本框中传递超过100个字符时,我需要一条错误消息,并且它应该接受小于100的值.

注意:我需要在Microsoft Designer中执行相同的操作.我不需要后面的代码.我只有aspx页面表单.

任何人都可以回答同样的问题.

谢谢



Again if I am trying to pass any value to the multiline textbox which is in the custom list its not even taking anything and showing the error message that is passed in regularexpression control.

So in short I need a error message while passing more than 100 characters in multiline text box and its should accept the value which is less than 100.

NOTE:I need to do the same in microsoft designer.I dont need the code behind. I have only the aspx page form present with me.

Can anybody reply for the same.

Thanks,


这篇关于Sharepoint设计器中的正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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