开发者

curly brackets in url will not pass through validation vb.net

开发者 https://www.devze.com 2022-12-30 08:50 出处:网络
i have this url, http://www.poer.com/oneup.htm?zip={zip}. I need the {zip}, because in my code, when this page opens, I replace the {zip} with a zipcode say 10001.

i have this url, http://www.poer.com/oneup.htm?zip={zip}. I need the {zip}, because in my code, when this page opens, I replace the {zip} with a zipcode say 10001. But in aspx, when i put validation for that txtbox, it wont let the {} pass through. This is the validation - ValidationExpression="http://([\w-]开发者_Python百科+.)+[\w-]+(/[\w- ./?%&=]*)?" regularexpressionvalidator. How can i get the curly brackets in sql server? which is my db in backend


I don't know ValidationExpression but it looks like just a regex so can't you just add the ={zip} to the end of it?

ValidationExpression="http://([\w-]+.)+[\w-]+(/[\w- ./?%&=]*)?={zip}"
0

精彩评论

暂无评论...
验证码 换一张
取 消