locked
Validation against SqlDataSource? RRS feed

  • Question

  • User1906480063 posted

    Split off from http://forums.asp.net/t/1678321.aspx/2/10?Validation+against+SqlDataSource+

    Hello Luke,

    Looks like it could work. The problem I am having with your code is that I am going to display a message like invalid user and if the id matches db. the button will insert a new user.

     

    I am trying to use your example but it doesn't work in button event.

     

    Don't know why?

     

    Jose

    Friday, February 10, 2012 5:51 PM

All replies

  • User3866881 posted

    Hello:)

    1)Please set error message for the customized control first。

    2)Then when button click,please call Page.Validate() or CustomizeControl.Validate()。And then check if(!IsValid){……}。

    Reguards!

    Saturday, February 11, 2012 9:46 PM