Delete Selected Row From GridView in Asp net C# with Confirmation

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024

ความคิดเห็น • 19

  • @muhammadafzal237
    @muhammadafzal237 2 ปีที่แล้ว +2

    I followed your method but an error appeared. How to fix this error.
    "Both datasource and datasourceID are defined on GridView, Remove one definition".

    • @ProgrammingGeek
      @ProgrammingGeek  2 ปีที่แล้ว +2

      May be you load gridview by code and using SQL DataSource. remove datasource. Just take a new gridview and load data using code. then try. Hope you will understand what happened.

  • @bullseyerendan7486
    @bullseyerendan7486 2 ปีที่แล้ว +1

    Delete button is working fine but why does my whole page get refreshed every time I click delete ?

    • @ProgrammingGeek
      @ProgrammingGeek  2 ปีที่แล้ว +1

      To avoid refresh whole page you can use update panel and asyncpostback trigger.

  • @Salman-cn1lt
    @Salman-cn1lt 2 ปีที่แล้ว

    hello
    i did the same steps that you did in the video
    in the line int student...
    it says :
    System.FormatException: 'Input string was not in a correct format.'

    • @AlperBal
      @AlperBal ปีที่แล้ว

      get another job if you cant do it

    • @Salman-cn1lt
      @Salman-cn1lt ปีที่แล้ว

      @Alper Bal lmao you thought you ate with your response? Hear me out @$sh0le this comment was when i was in highschool i was developing my skills in c# and learning new stuff to acknowledge myself more and btw I figured out the problem later without anyone's help but the thing is if you are watching this basic tutorials on yt you are the one who needs another job cause its embarrassing that you do not know these basic things while you are a programmer and for your discussing attitude i don't think anyone is gonna hire a stupidas$ like you... and next time dont think that being a toxic rat is something cool or funny cause if you wanna play that game guess who is better at it

    • @AlperBal
      @AlperBal ปีที่แล้ว

      @@Salman-cn1lt you are muslim i am sorry for you

    • @Salman-cn1lt
      @Salman-cn1lt ปีที่แล้ว

      @Alper Bal first of all im not Muslim but i respect all the religions and if you are judging by my name do some research you dump stop embarrassing urself like thattt its soo funnyy how clown u rrr

    • @AlperBal
      @AlperBal ปีที่แล้ว

      @@Salman-cn1lt tell me if you are brown, turk or jew my answer will depend on it if you are out of islam congratulation you made it to be honest

  • @jayantacodingclass
    @jayantacodingclass 2 ปีที่แล้ว

    Gridview to textbox retrieve data -th-cam.com/video/heXzCxdQjO0/w-d-xo.html