isvalid

Hunting down ModelState.IsValid errors.

Is there a good way in asp.net MVC to trace ModelState errors? IsValid returns false when I submit my form even if there aren't actually any fields in it, or anything being validated. I looked at this thread here and tried Steve Willcock's suggestion but no exceptions are thrown, just a generic error. Is there any way I can see what is ...

Page with multiple validation groups always returns TRUE for page.isvalid

I have two validation groups and two validation summaries on my page. Controls belong to either of two groups and there is a button for each group that performs the validation for each. I can't get page.isvalid to work; it always returns true regardless of the validity of the controls on the page. Is there a different way to validate on...

isvalid rss feed url

Before adding a rss feed url to the database, how can i check and make sure that it a valid rss url. via vb.net code. Please let me know. ...

Exclude Control from Page.Isvalid

I have a few controls on a page that are all in the same validation group. Depending on certain conditions, one of these controls can be set to visible=false (and the user wont be able to input anything into it). If this happens, is there a way to remove said control from the validation group? Code like this: if(testControl.Visible==...

Page.IsValid always return false

I have cause validation true on button. And I am checking the Page.IsValid in c# code. But its always returning false value? ...

Which controls triggered the Page.IsValid = false?

Two things: A) Is it possible to set the Page.IsValid (Is_Valid) property through Jquery so that I dont have to use the aspx validators? It is my understanding that the IsValid property is read-only? B) When the validators are in, is it possible to find out, through Jquery (ofcourse) which controls caused the validation to fail? An exa...

Recaptcha returning "The reCAPTCHA server is unavailable"

Hi, I'm using ASP.NET and plugging in the google Recaptcha user control successfully, when calling the IsValid method on it, it returns in its recaptcha.ErrorMessage property: "The reCAPTCHA server is unavailable" and recaptcha.IsValid obviously returns false. Does anyone know the reason why this could happen? Is it because I'm working...