validation control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Seelan

    validation control

    Hello folks,
    I have made a dynamic control from a database table. Now I want to
    add validation to it from the same database table. Can some one please
    assist me with this. Any useful tutorial links would help too...
    Thanks
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: validation control

    Seelan,

    What kind of validation are you trying to do? The problem with the way
    that datasets are meant to be used in .NET is that the data that you select
    your list from when the control is created might have been changed by the
    time you want to persist that data back to the database. Because of this,
    you should be validating your data in a transaction which includes the
    update before you commit the changes.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Seelan" <seelanrNOSPAM@ gmail.com> wrote in message
    news:%23Eyw3spa FHA.2180@TK2MSF TNGP12.phx.gbl. ..[color=blue]
    > Hello folks,
    > I have made a dynamic control from a database table. Now I want to add
    > validation to it from the same database table. Can some one please assist
    > me with this. Any useful tutorial links would help too...
    > Thanks[/color]


    Comment

    • Seelan

      #3
      Re: validation control

      I'm a newbie at c# programming. So, articles on how to actually code
      this would help...
      I am loading dynamic controls from the database. and that table also has
      corresponding validation coloumn. Example in row 1 i have: textbox
      with validation property isRequired. How would I implement this in C#
      coding?

      Nicholas Paldino [.NET/C# MVP] wrote:[color=blue]
      > Seelan,
      >
      > What kind of validation are you trying to do? The problem with the way
      > that datasets are meant to be used in .NET is that the data that you select
      > your list from when the control is created might have been changed by the
      > time you want to persist that data back to the database. Because of this,
      > you should be validating your data in a transaction which includes the
      > update before you commit the changes.
      >
      > Hope this helps.
      >
      >[/color]

      Comment

      • sunil muthanna

        #4
        Re: validation control

        Testing the email notification

        "Seelan" wrote:
        [color=blue]
        > I'm a newbie at c# programming. So, articles on how to actually code
        > this would help...
        > I am loading dynamic controls from the database. and that table also has
        > corresponding validation coloumn. Example in row 1 i have: textbox
        > with validation property isRequired. How would I implement this in C#
        > coding?
        >
        > Nicholas Paldino [.NET/C# MVP] wrote:[color=green]
        > > Seelan,
        > >
        > > What kind of validation are you trying to do? The problem with the way
        > > that datasets are meant to be used in .NET is that the data that you select
        > > your list from when the control is created might have been changed by the
        > > time you want to persist that data back to the database. Because of this,
        > > you should be validating your data in a transaction which includes the
        > > update before you commit the changes.
        > >
        > > Hope this helps.
        > >
        > >[/color]
        >[/color]

        Comment

        Working...