Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Rules object during save on a postback
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
ASP.NET
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MySQL
Miscellaneous
Thread ID:
00987178
Message ID:
00987917
Views:
43
As a final statement, the previous code works fine as long as the code listed below, located in the StatesRule.vb is not activated.
    Public Overrides Function CheckRulesHook(ByVal ds As DataSet, ByVal tableName As String) As Boolean
        Me.ValidateStateName(Me.DataRow("cName"))
        Me.ValidateStateAbbreviation(Me.DataRow("cAbbreviation"))
        Return Me.ErrorProviderBrokenRuleCount = 0

    End Function
It looks like a data set is being passed into this method, why do you use a Me.DataRow("cName") reference instead of passing on the values present in the "ByVal ds As DataSet" parameter. Probably showing my ignorance with that question but soooooo what ;-).

Later and thanks,

CT
Previous
Reply
Map
View

Click here to load this message in the networking platform