Part 84 Compare attribute in asp net mvc

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ • 14

  • @naodagere8210
    @naodagere8210 4 роки тому

    You always explain things from bottom, great work as usual.

  • @braScene
    @braScene 8 років тому +1

    Thanks very much mr Venkat!!

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  8 років тому +2

      You are very welcome and Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful.
      I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you
      ua-cam.com/users/kudvenkatplaylists?view=1&sort=dd
      If you need DVDs or to download all the videos for offline viewing please visit
      www.pragimtech.com/kudvenkat_dvd.aspx
      Slides and Text Version of the videos can be found on my blog
      csharp-video-tutorials.blogspot.com
      Tips to effectively use my youtube channel.
      ua-cam.com/video/y780MwhY70s/v-deo.html
      If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
      ua-cam.com/users/kudvenkat
      If you like these videos, please click on the THUMBS UP button below the video.
      May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them.
      Good Luck
      Venkat

  • @stephenhiggins5912
    @stephenhiggins5912 8 років тому +2

    I have issue where the error message is displayed even if both boxes contain the same value.

  • @saagarsoni3
    @saagarsoni3 11 років тому

    good morning sir...hv a gr8 day

  • @theoldcrab6682
    @theoldcrab6682 4 роки тому

    There remains one minor issue. When the “Edit” view is rendered, the “ConfirmEmail” property is empty. If you press Save, the message is displayed by validation stating that the email addresses do not match, which is as it should be. If you subsequently copy the email address into the “ConfirmEmail” field and click Save, the error message goes away but nothing else happens. But, if you click Save again, the form is posted. I discovered that if you click anywhere on the form after copying the email address into the “ConfirmEmail” field, the same thing happens: the message goes away, and if you then click on the Savebutton, the form is posted. I confirmed that the HTTP Post “Get” controller action is not being driven if you click Save right after copying the email address, but it is driven the second time. This strikes me as weird. BTW, I'm using VS 2017.

  • @gasham23
    @gasham23 6 років тому

    Thank you so much

  • @taruntarun05
    @taruntarun05 5 років тому

    Please View Shashank's Comment : Include ConfirmEmail property in the Bind of Post action method of edit for those having issue if it is not working if values are same.

    • @vijithvijayan7925
      @vijithvijayan7925 5 років тому

      How to add this ConfirmEmail property in the Bind of Post action method of edit

  • @VijendraSingh-qw4hl
    @VijendraSingh-qw4hl 4 роки тому +1

    This will fix the issue -
    [HttpPost]
    public ActionResult Create([Bind(Include = "Id,Name,Email,Age,Gender,ConfirmEmail")] tblEmployee tblEmployee)

  • @VishalDonga
    @VishalDonga 6 років тому +1

    Not working in real..Showing validation even if my both fields are same.

  • @quwink
    @quwink 10 років тому

    When i try to give the compare attribute, a custom errormessage, it doesn't change. Am i the only one with this problem? Anywhere else the errormessage seems to work fine..

  • @mahmoud.kandeel
    @mahmoud.kandeel 8 років тому

    i do exactly same as tutorial but, i always get error "'ConfirmEmail' and 'Email' do not match." even if i enter the same data, when i debug app ConfirmEmail value always null, can you help me sir?!
    iam using VS 2015

    • @sashankreddy1355
      @sashankreddy1355 7 років тому +5

      Include ConfirmEmail property in the Bind of Post action method of edit