Monday, September 7, 2009

Pass Regular Expression from view to controller

Hello, i have this problem on my asp.net mvc website (in c#) and i don't know how to solve it.

My web app has one aspx wich the user can create a field to be used later, such an input textbox, drop down list, radiobutton, etc. But in this field, the user can add to it a regular expression to validate the field later. My problem is that i cant pass the regular expression text from view to controller without losing text, and this is because the complexity of a regular expression. I try with encoreUri and encodeElement, but it didn't work. I have to tell that the text of the regular expression that i am passing is with a $.post() of the jquery library.

I hope that you can help me with this problem.

Thanks.

View Full Details...............................

No comments:

Post a Comment