Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: ASP.NET WebPages 2 - Validation bug [1120]

$
0
0

Hi, the validation does not seem to work correctly in ASP.NET WebPages 2. I created a form and then used the RenderPage method to render that page into another page however on submit the validation does not show, but the data inside the fields is preserved (If you use the Value attribute on HTML elements). I posted the issue on here as well:

http://forums.asp.net/t/1916968.aspx/1?Contact+Form+validation+not+showing+

I think this is the best place to raise the issue.
Comments: Thanks for getting back to us with your simplified example. I have verified that we can get it to reproduce, and for Web Pages/Razor V2, it is unfortunately the behavior. A few things to consider 1. Validation actually does run on the server side, so any actions relying on validation do work (e.g. if you rely on validation before writing to your database, that will work just fine). 2. The alternative approach of using a layout page, and calling renderbody, does support validation appropriately, so you can use that today. I'll keep looking and see if we can do something for Web Pages/Razor V3.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>