Click here to Skip to main content
15,909,437 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Page.Isvalid always returns false even thought all the validations args.Isvalid=true.

What do i need to check for?

Any ideas?

Thanks
Posted
Comments
SASS_Shooter 30-Apr-12 17:03pm    
Reading the documentation on this property, the first thing it states is you must call Page.Validate(). Did you do this?
pentyd 1-May-12 10:32am    
Thanks for the reply.

Yes i did that.

VB
Protected Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click
      Try
         



Page.validate()

          If Page.IsValid() Then


              clsCommon.SetSession(SessionVariable.SRCH_FROM_DATE, txtFromDate.Text)
              clsCommon.SetSession(SessionVariable.SRCH_THRU_DATE, txtThruDate.Text)
              clsCommon.SetSession(SessionVariable.ACCT_NBR, txtAccountNbr.Text)
              MyGridSort.ResetPosition()
              PopulateGrid()

          End If
      Catch ex As Exception
          MyBase.LogError(ex, Assembly.GetExecutingAssembly().GetName().Name)
      End Try
  End Sub
 
Share this answer
 
Comments
Sandeep Mewara 1-May-12 3:26am    
I doubt if this is a solution. Looks like reply to one of the comment. If so, use Improve Question link to update you question.
Sandeep Mewara 1-May-12 3:28am    
BTW, Page.validate() => Validate will be with capital V.
Look here on how to use the Page.IsValid property: MSDN: Page.IsValid Property [^]
 
Share this answer
 
Comments
pentyd 1-May-12 10:31am    
Thanks for the feedback. I did some analysis, i think may be some validation fails. But i don't know which one. I spent 3 hours trying to fix but yet i couldn't figure out. I am new to this project and this is one of the issue's
i got to fix. I checked the custom validations they have not used any groupvalidator.

Anywaz i will update once i figure out something.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900