Linq query to validate data using if conditon(asp .net mvc3)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sahithi3
    New Member
    • May 2012
    • 1

    Linq query to validate data using if conditon(asp .net mvc3)

    Hi All,
    I need to perform server side validation using if condition
    My view page consists of form page where the data entered in the fields must be validated if its present in the database or not
    User may input in anyy of the fields ,May be one or all.Am using multiple table to reteive data using Joins
    Once the user inputs valid input in any of the fields all the respective values of the particular value must be displayed
    Please provide me a relevant linq query its really urgent
    Thanks
  • PsychoCoder
    Recognized Expert Contributor
    • Jul 2010
    • 465

    #2
    What have you tried thus far? This isn't a code repository where you just ask for code and get it.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      I'm not exactly sure what LINQ has to do with validation in ASP.NET MVC or what you're having problems with but maybe this MSDN article about Models and Validation in ASP.NET MVC could be helpful to you.

      Please provide more details on what you have tried to solve the problem so that we can help you better.

      Comment

      • madankarmukta
        Contributor
        • Apr 2008
        • 308

        #4
        Originally posted by sahithi3
        Hi All,
        I need to perform server side validation using if condition
        My view page consists of form page where the data entered in the fields must be validated if its present in the database or not
        User may input in anyy of the fields ,May be one or all.Am using multiple table to reteive data using Joins
        Once the user inputs valid input in any of the fields all the respective values of the particular value must be displayed
        Please provide me a relevant linq query its really urgent
        Thanks
        Could you please elaborate more on what you want to achieve.

        Thank you.

        Comment

        Working...