views:

32

answers:

1

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-]+.)+[\w-]+(/[\w- ./?%&=]*)?" regularexpressionvalidator. How can i get the curly brackets in sql server? which is my db in backend

A: 

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}"
ho1