Insert, Edit, Update, Delete Data in GridView Using Asp.Net C# | Hindi | Free Online Classes

Sdílet
Vložit
  • čas přidán 3. 08. 2018
  • Hello Friends, Students, Subscribers,
    Here, we provide free video tutorials for learning computer programming using easy methods. In this free video tutorial of asp.net programming using c#, you will learn how to insert, update and delete data from MS SQL Server Database with the help of gridview control. We have used templatefield in gridview control. You will learn how to perform CRUD Operations in Database with the help of GridView Control in Asp.Net C#.
    If You like our work and Enhanced Your Programming Skill Through Our Channel, You can Donate to This Channel to Keep The Mission Programming Carry On. Many Students Already Making Efforts.
    Click This Link to Donate.
    www.instamojo.com/beststudygu...
    ---------------------
    Download Our All 400+ Videos Asp.Net Code : Just Paying Onetime Amount Rs.49/- Only
    Buy and Download All 400+ Codes Here ( 100% Working Code ) :
    beststudyguru.myinstamojo.com...
    or
    You can also buy our pendrive of 32GB Which will include 400+Videos in Mp4 Format So You can watch all Videos Without Internet and Learn Asp.Net in Hindi At Your Home Easily. We will send you the pendrive through Courier. You have to pay Just Rs.999/- ( Include All Source Code File + 400+Videos + 32GB Pendrive )
    Buy Our Pendrive Here :
    www.instamojo.com/beststudygu...
    ------------------------------------------------------------------------------------
    Subscribe Our CZcams Channel - Like, Comment & Share Our Videos
    / haritistudyhubeasylearn
    --------------
    Follow Our Twitter Page
    / haritihub
    --------------
    Like & Share Our Facebook Page
    / haritistudyhub
    --------------
    if You Have Any Problem and Doubt in Programming Language
    Feel Free to Email Us
    BestStudyGuru @ Gmail.Com
    --------------
    We thank you for sharing with us your feedback on the free education service rendered by us and assure you that it will be our endeavour to provide quality service at all times. We look forward to your feedback in future also.
    Thanks & Regards,
    Hariti Study Hub Team

Komentáře • 168

  • @sayalisutar9336
    @sayalisutar9336 Před 5 lety +1

    Thank you so much sir

  • @capitalreleases8690
    @capitalreleases8690 Před 5 lety +2

    very good explanation bro....

  • @HiteshSharma-xy5dz
    @HiteshSharma-xy5dz Před 5 lety +1

    Thank you sir, in this video you did very good job, because you simultaneously explained all code as wel,l so that's help us to understand. keep it continue explaining code while doing it... thank you so much .

  • @code_with_ankush
    @code_with_ankush Před 5 lety +1

    nice job brother

  • @gajananshalgar4908
    @gajananshalgar4908 Před 5 lety +1

    thank you so much for tutorial

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 5 lety

      Thanks for your valuable feedback to us. Keep visiting our channel for more updated videos.

  • @vivekmaurya9554
    @vivekmaurya9554 Před 5 lety +1

    Thank you for uploading great videos....

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 5 lety

      Thanks for your valuable feedback to us. Keep visiting our channel for more updated videos.

  • @dhananjayambhire2794
    @dhananjayambhire2794 Před 5 lety +1

    Thanks you for this video

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 5 lety

      Thanks for your valuable feedback to us. Keep visiting our channel for more updated videos.

  • @prabhjotsingh6510
    @prabhjotsingh6510 Před 2 lety +1

    You are great man !

  • @kannanmassey5783
    @kannanmassey5783 Před 3 lety

    Sir can u help with data grid view example without using sqldatasource. Kindly use connection string as shown in your precious lectures. Thanx

  • @ahsanullah3939
    @ahsanullah3939 Před 2 lety +1

    Very nice 👍 sir I love 💕 your work

  • @sidramdevar7770
    @sidramdevar7770 Před 4 lety

    Hi Will you please share the same crud on multiple table binding to gridview

  • @komalkumari9528
    @komalkumari9528 Před 3 lety

    Sir please make one video on crud operation using two or three tables

  • @adilyar1551
    @adilyar1551 Před 5 lety

    sir plz add one more button detail view so can we can see whole detail of user and it would be nice if wo add detail view print option.

  • @PappuKumar0608
    @PappuKumar0608 Před 5 lety

    which version of visual basic you are using sir

  • @gursewaksinghmaan700
    @gursewaksinghmaan700 Před 5 lety

    sir please uplad a video make a comman data connection with web configuration manager, for use all website project

  • @ItsMagicEngineGuru
    @ItsMagicEngineGuru Před 4 lety +1

    so good

  • @alliswell6352
    @alliswell6352 Před 4 lety

    in this project, same name not allow
    how i can do this ?

  • @sayalisutar9336
    @sayalisutar9336 Před 5 lety

    Can I use this in visual studio 2008??

  • @Sagaciti
    @Sagaciti Před rokem

    The problem is you have to exchange roll nos of two person . Now your edited first and get confused that which one of them u have to edit next , as there will be two same roll numbers . how will u do ?

  • @viralworld955
    @viralworld955 Před 4 lety +1

    Yar new videos lawo plz js me asp. Net ko start se smja do ap bht best teacher hen

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 4 lety

      Thanks for your valuable feedback to us. We will definitely try to implement new series for beginners.

  • @kannanmassey5783
    @kannanmassey5783 Před 3 lety

    Could not load file or assembly
    Microsoft.sqlserver.management.sdk.sfc, version=12.0.0.0..... on one of its dependencies. System cannot find the file specified . Sqlerver 8 I am using

  • @kamalsinghvlogs4698
    @kamalsinghvlogs4698 Před 2 lety +1

    Very good

  • @sonali2026
    @sonali2026 Před 4 lety

    Sir,how to add checkbox in gridview by using stored procedure

  • @pratiklondhe5167
    @pratiklondhe5167 Před 3 lety +1

    Badhiya

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 3 lety

      Thanks for your valuable feedback to us. Keep visiting our channel for more updated videos.

  • @jontipass6755
    @jontipass6755 Před 5 lety

    create procedure st_getShifts
    as
    select s.sh_id as 'ID',
    s.sh_name as 'Name',
    format(s.sh_fromTime,'hh:mm tt') as'From',
    format(s.sh_toTime,'hh:mm tt') as'TO',
    s.sh_number as 'Number'
    from shifts s
    when execute error show
    Msg 195, Level 15, State 10, Procedure st_getShifts, Line 49
    'format' is not a recognized built-in function name.
    pls help me give solution pls

  • @sayalisutar9336
    @sayalisutar9336 Před 5 lety

    Can I use this without connect SQL Server 2005

  • @anabia_3377
    @anabia_3377 Před 8 měsíci

    Plz share how to create search bar from database field by javascript

  • @akhterhussain100
    @akhterhussain100 Před 5 lety +1

    dear can you input date in this gridview and TextMode of Textbox of date will be DateTimelocal.

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 5 lety +1

      Thanks for your valuable feedback to us as query. We will definitely try to implement your requested example as video tutorial on our channel in upcoming days. Keep visiting our channel for more updated videos.

  • @abuzarkhalid2748
    @abuzarkhalid2748 Před 5 lety

    yeh control k through ap kaam krwarye hy isko kaam ko ugr hm ek laptop sy dosray m lykr jye tu sql source sary dobara sy lyny prty hy

  • @pradeeppugazh6498
    @pradeeppugazh6498 Před 3 lety

    Sir, i do the same program
    But i want the cs code update and insert I don't know the what happen in the right side
    Insert syntax and update syntax please give me sir

  • @chandraprakash3887
    @chandraprakash3887 Před 4 lety

    Sir hyperlink Ka use Karke single button ke click pr insert and update using asp.net c# pr ek video banaye plz

  • @faizanengineer8811
    @faizanengineer8811 Před rokem

    Please Telerik Controls per banaye

  • @sundram5849
    @sundram5849 Před 2 lety

    Sir kuch aisa bataiye ke jab hum reg kre to
    Reg, or form ke all data ke label me print kra sake other web page me aspx. Net me
    Alag alag web page le or sub web page ke data record ke ek sath print kra sake
    Jaise ke hum koi form online kerte hai or oha se print milta hai oisa he

  • @thechannel4666
    @thechannel4666 Před 4 lety +1

    getting error
    cmd.executenonquery() an expression of non-boolean type specified in a context where a condition is expected

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 4 lety

      Thanks for your valuable feedback to us as query. Kindly share your code through mail so we could review it and reply you back with solution.

  • @vivekpal1090
    @vivekpal1090 Před 5 lety +1

    Sir can u help me, i need help in project ??
    where two tables from single database Parent_Table & Child_Table
    How to show these two table data in the gridview and perform
    insert/update/delete .

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 5 lety

      Thanks for your valuable feedback to us as query. We have one tutorial on our channel to display data merged from two different tables and display in gridview. Kindly search video on our channel. We will try to add option for insert and edit data by joining two tables in gridview control using asp.net. Keep visiting our channel for more updated videos.

    • @vivekpal1090
      @vivekpal1090 Před 5 lety

      Is this Done using parent_Table and child_Table?

  • @varshajadhav1445
    @varshajadhav1445 Před 5 lety +1

    thanks but does not show the insert query code properly

  • @lnkp4133
    @lnkp4133 Před 6 měsíci

    How to update records with the session variable?

  • @sandipmistri9937
    @sandipmistri9937 Před 5 lety

    plz send the All coding of this tutorial

  • @AbdullahMubeenA.M
    @AbdullahMubeenA.M Před rokem

    Your Video solve my 70% problem but mere pass edit template ka option nahi araha he oar kal technical interview he mera 14:34 time line pr mere pass visual studio 2022 he please guide me

  • @kshitijsinha3734
    @kshitijsinha3734 Před 5 lety +1

    DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'Work Order Number
    this error is appearing while debugging. how can i solve this issue?
    please reply soon as possible as i need to submit

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 5 lety

      Thanks for your valuable feedback to us as query. We think your table column name does not matched with your eval in data binding. Kindly check it again. Keep visiting our channel for more updated videos.

  • @ashwinichaudhari6688
    @ashwinichaudhari6688 Před 3 lety

    This code having error "InvalidOperationException was unhandled by user code "

  • @Johnny-jk1rg
    @Johnny-jk1rg Před 3 lety +1

    Hi, would you mind share the code of this project? Cuz there are some part of the code was block in the video. Thanks.

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 3 lety

      Thanks for your valuable feedback to us as query. Kindly buy 49/- biggest coding pack link given in video description. one time payment for all codes of our videos.

  • @vigneshnayak9550
    @vigneshnayak9550 Před 4 lety +1

    sir how to put req. field validator for calendar and how to compare two dates one from calendar and another one in code....plzz help me soon as possible......and thank you for many thing
    .....

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 4 lety

      Thanks for your valuable feedback to us as query. We will definitely try to implement it as video tutorial.

  • @MonishaWorld
    @MonishaWorld Před 4 lety

    Please sir ..ap 1ka exam protal ka example dakha saktha ha..how to check question and ans.. please sir ai example dakha saktha ha

  • @VikashKumar-fg2pm
    @VikashKumar-fg2pm Před rokem

    show me this vedio updating event with where condition full

  • @sahuji587
    @sahuji587 Před rokem

    Sir login page ke baad ye application start ho, aur is application me search option bhi ho aisa kaise karenge?

  • @jayakar_kundapura
    @jayakar_kundapura Před 4 lety +1

    Advanced options are desablled..select nahi ho raha he..fix it bro

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 4 lety

      kindly create primary key in table of database then options in advance will be enabled.

    • @jayakar_kundapura
      @jayakar_kundapura Před 4 lety

      @@HaritiStudyHubEasyLearn yes sir..i created it too..but not working

    • @jayakar_kundapura
      @jayakar_kundapura Před 4 lety

      @@HaritiStudyHubEasyLearn only one table is not allowing to take advanced option..

  • @yogeshmore6992
    @yogeshmore6992 Před 4 lety

    I got error that keyword datsource not found

  • @vidhyaarumugam341
    @vidhyaarumugam341 Před rokem +1

    Version on vs community edition and sql version plz ...how to install thus software for this all

  • @faizanengineer8811
    @faizanengineer8811 Před rokem

    Gridview m multiple rows kis trha edit ki jay

  • @rakshaprabhu2823
    @rakshaprabhu2823 Před 2 lety

    Sir in output gridview is not displaying plz solve problem

  • @nishadinamdar6249
    @nishadinamdar6249 Před 4 lety +1

    Sir how to make student ID that should be combination of alphabet and number.

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 4 lety

      Thanks for your valuable feedback to us as query. We will definitely try to implement it as video tutorial.

  • @manalisamani6729
    @manalisamani6729 Před 3 lety

    Sir I am having Product shopping module with fields(pid,pname,pimg,category,description,price)
    Here I m getting problem while inserting and updating record ...I have use file upload control in "product image" column of edititem template , and same in footer row of "Product Image" column I have taken FileUpload control.
    So here my quetion is how will I able to insert and update if I m using FileUpload control for selecting image and store it in database.
    I have seen your video in which you are store image url through FileUpload control in the database but it doesn't work here as FileUpload control which I m using is a part of gridview . Kindly provide me coding of inserting and updating image through FileUpload control in gridview .
    It will be really helpful sir if you provide this code.
    Thanks sir 😊

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 3 lety +1

      We have noted down your request. Thanks for your valuable feedback to us as query. We will definitely try to implement it as video tutorial.

    • @manalisamani6729
      @manalisamani6729 Před 3 lety

      @@HaritiStudyHubEasyLearn Thank You sir. But I also want to share to you that I found the solution for Updating now I m not getting solution for inserting(i know their coding are quite similar except query part.)But I think I m getting some minor error while declaring control id name I think so. I m eagerly waiting for your video to solve my issue 😊.
      Thank you so much sir once again.😊

  • @SamSarm
    @SamSarm Před 4 lety +1

    Hello sir.i m getting error in insert and update...same way I m using in my created Employee table but I m getting error in cmd.ExecteNonQuery()

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 4 lety +1

      Kindly check your query again. Send us running project error screenshot through our mail so we could review it and reply you back with solution.

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 4 lety +1

      Check your sql query once again.

  • @kavitasharma-yr2gc
    @kavitasharma-yr2gc Před rokem

    Hi sir,without coding kya hm select use kr skte h?

  • @itsme-rj9ci
    @itsme-rj9ci Před 2 lety +1

    Advanced SQL generation option was disabled for me how to select insert,update option please reply

  • @ayushsharma-br3lc
    @ayushsharma-br3lc Před 2 lety +1

    Hi Sir,
    I did payment and downloaded the source codes
    can you please let me know what is the name of the source code of this video project?

  • @madhurasati
    @madhurasati Před 2 měsíci +1

    💌💌💌💌

  • @ajaybhojane3809
    @ajaybhojane3809 Před 5 měsíci

    Sir c sharp windows me kayse kare

  • @manishagore3967
    @manishagore3967 Před 3 lety +1

    When I insert row. I got an error "incorrect syntax near"

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 3 lety

      There may be incorrect syntax in sql query. Kindly check query carefully. Send us running project error screenshot through our mail so we could review it and reply you back with solution.

  • @mycreativeminesh4948
    @mycreativeminesh4948 Před 4 lety +1

    Sir how to find server name without using sql management

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 4 lety

      There are different ways available to check server name like using services in windows for sql server instance. you can check on google. We will also try to find the way to check sql server. Thanks for your valuable feedback to us as query.

  • @khanlifestyles
    @khanlifestyles Před 2 měsíci

    bhai apne code kaha dala hai mil nahi rha hai

  • @justiceseeker2142
    @justiceseeker2142 Před 3 lety +1

    Can you please share the Google doc with the code for this? You said you would in this video. But it's not here. Please.

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 3 lety

      Dear member, Kindly share your email address.

    • @aravindh3326
      @aravindh3326 Před 3 lety

      @@HaritiStudyHubEasyLearn can u send it to me also please sir
      My email address is
      aravindh937@gmail.com

  • @asutosdwibedi6606
    @asutosdwibedi6606 Před 6 lety +1

    Thanks bro..can I send you some design by email???

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 6 lety +1

      Thanks for your valuable feedback to us. Ya! You can send us your design by mail anytime. We will appreciate your idea. Keep visiting our channel for more updated videos.

  • @poojapandey5702
    @poojapandey5702 Před 4 lety +1

    Sit pls make understand about coding pls

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 4 lety

      Thanks for your valuable feedback to us as query. We will review it and make another video with more explanation.

  • @ridarafiiq
    @ridarafiiq Před 2 lety +1

    can you add the code for it in description please!

  • @aravindh3326
    @aravindh3326 Před 3 lety

    Can u please share the Google dox with code which you said will be there in the description which is not there .

    • @aravindh3326
      @aravindh3326 Před 3 lety

      And this is my Google mail id ...
      aravindh937@gmail.com

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 3 lety

      buy coding pack 49/- here www.instamojo.com/beststudyguru/aspnet-code-400-videos-example-download-all-/?ref=store

  • @techplusit
    @techplusit Před 5 lety +1

    plz send me date time and calendar grid view

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 5 lety

      Thanks for your valuable feedback to us as query. We have noted down your requested example and will definitely try to implement it as video tutorial on our channel in upcoming days. Keep visiting our channel for more updated videos.

  • @parkashsingh8436
    @parkashsingh8436 Před 4 lety +1

    sir if with image show and delete option use

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 4 lety

      Thanks for your valuable feedback to us as query. We will definitely try to implement it as video tutorial.

    • @parkashsingh8436
      @parkashsingh8436 Před 4 lety

      @@HaritiStudyHubEasyLearn because not make a video on this topic i search from three day

  • @vipultambe5294
    @vipultambe5294 Před 4 lety +1

    Bhai apne DataKeys use kyu nahi kiya, fir system ko kaise pata chalega ki hum kaunsa row process kr rahe hai.

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 4 lety

      Thanks for your valuable feedback to us. We have used unique value as roll number for act as a datakey.

  • @gauravmishra8994
    @gauravmishra8994 Před 4 lety

    Delete karne se pahle warning message kaise show hoga?

  • @manishkumar-rc8ie
    @manishkumar-rc8ie Před 3 lety +1

    can you please share this video download link

  • @kinemasterediting1852
    @kinemasterediting1852 Před 3 lety

    Advanced pe click karne ke bad genrate insert update delete statement nahi aa raha hai

  • @ENGINEER987
    @ENGINEER987 Před 3 lety +1

    Sir usko ko store procuder m kr please

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 3 lety

      Definitely we will do it through store procedures. Thanks for your valuable feedback to us as query. We will definitely try to implement it as video tutorial on our channel.

    • @ENGINEER987
      @ENGINEER987 Před 3 lety

      @@HaritiStudyHubEasyLearn kab tak mile ga sir

  • @majidgul1151
    @majidgul1151 Před 2 lety +1

    video ka main part sell kar rhy hoo bilwajy pagal banrhy ho k description pe free of cost diya va hai

  • @sufiahazhar7357
    @sufiahazhar7357 Před 3 lety +1

    Sir, can i get the code?

  • @parita_thakkar
    @parita_thakkar Před 4 lety +1

    When I delete a row I got an error.
    "NullReferenceException was unhandled by user code"
    How can I solve this error?

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 4 lety

      Thanks for your valuable feedback to us as query. Kindly send your code and running project error screenshot through our email so we could review it and try to fix it remotely.

    • @parita_thakkar
      @parita_thakkar Před 4 lety

      @@HaritiStudyHubEasyLearn okay

  • @tarungoswami1396
    @tarungoswami1396 Před 2 lety +1

    Where can I get source code...free

  • @RK-bh7zf
    @RK-bh7zf Před 3 lety

    I got an error on updating. Is there anyone who can send me update query code?????

    • @HaritiStudyHubEasyLearn
      @HaritiStudyHubEasyLearn  Před 3 lety +1

      Try to use primary key in your database table.

    • @RK-bh7zf
      @RK-bh7zf Před 3 lety

      @@HaritiStudyHubEasyLearn i have used it
      Can u please send me the update query code

  • @Dunya-vv8yu
    @Dunya-vv8yu Před 5 měsíci

    where is the code

  • @BirendraKumar-jh7of
    @BirendraKumar-jh7of Před měsícem

    make sure to provide UPI paytm option it is not available

  • @SupportMe91
    @SupportMe91 Před rokem

    Row Editing event Fire on double Click not On single click

  • @programmingmindset1263

    I am Completely unable to unerstand What you are taking About ....plz make videos in English

  • @rajeshbodana7377
    @rajeshbodana7377 Před 3 lety +1

    coding kya che file ?

  • @karangavle
    @karangavle Před rokem

    Where's the notes

  • @dhavalmali5665
    @dhavalmali5665 Před 5 měsíci

    Source code?

  • @UserCS-pj3ju
    @UserCS-pj3ju Před 3 lety +1

    kindly send me code

  • @sanjayverma-eh8cw
    @sanjayverma-eh8cw Před 2 lety

    Delete nahi ho raha hai

  • @southfitness7567
    @southfitness7567 Před rokem

    Where is the source code

  • @gamingstoryyt1829
    @gamingstoryyt1829 Před 2 lety

    how can be someone so much greedy... Even getting view and someone is asking for the SQL queries then also not supporting them Shame on you for these thing

  • @unknownboy6977
    @unknownboy6977 Před rokem

    ace FinalProject
    {
    public partial class GridView : System.Web.UI.Page
    {
    protected void Page_Load(object sender, EventArgs e)
    {
    if (!IsPostBack)
    {
    GVbind();
    }
    }
    protected void GVbind()
    {
    SqlConnection con = new SqlConnection(@"Data Source = DESKTOP-5FHUBR7; Initial Catalog = test; Integrated Security = True");
    {
    con.Open();
    SqlCommand cmd = new SqlCommand("select * from final", con);
    SqlDataAdapter da = new SqlDataAdapter(cmd);
    DataTable tb = new DataTable();
    da.Fill(tb);
    GridView1.DataSource = tb;
    GridView1.DataBind();
    }
    }
    private void userdelete(int id)
    {
    SqlConnection con = new SqlConnection(@"Data Source = DESKTOP-5FHUBR7; Initial Catalog = test; Integrated Security = True");
    {
    string query = "delete from final where id = " + id + "";
    SqlCommand cmd = new SqlCommand(query, con);
    con.Open();
    cmd.ExecuteNonQuery();
    }
    }
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
    int id = int.Parse(GridView1.DataKeys[e.RowIndex].Value.ToString());
    GVbind();
    }
    protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
    {
    GridView1.EditIndex = e.NewEditIndex;
    GVbind();
    }
    protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
    Label ID = GridView1.Rows[e.RowIndex].FindControl("Label1") as Label;
    TextBox Name = (TextBox)GridView1.Rows[e.RowIndex].FindControl("TxtName");
    TextBox Email = (TextBox)GridView1.Rows[e.RowIndex].FindControl("TxtEmail");
    TextBox Password =(TextBox) GridView1.Rows[e.RowIndex].FindControl("TxtPass");
    TextBox Mobile = (TextBox)GridView1.Rows[e.RowIndex].FindControl("TxtMob");
    RadioButtonList Gender = (RadioButtonList)GridView1.Rows[e.RowIndex].FindControl("RadioButtonList1");
    DropDownList Usertype = (DropDownList)GridView1.Rows[e.RowIndex].FindControl("DropDownList1");
    //updateuser(ID, Name.Text, Mobile.Text, Gender.Text, Usertype.Text, Image.ImageUrl);
    SqlConnection con = new SqlConnection(cs);
    con.Open();
    SqlCommand cmd = new SqlCommand("update P1datatable set Name = '" + Name.Text + "', Mobile = '" + Mobile.Text + "', Gender = '" + Gender.SelectedValue + "', Usertype = '" + Usertype.SelectedValue + "' where ID = '" + Convert.ToInt32(ID.Text) + "'", con);
    cmd.ExecuteNonQuery();
    GridView1.DataBind();
    // updateuser(ID, Name.Text, Mobile.Text, Gender.Text, Usertype.Text, Image.ImageUrl);
    GridView1.EditIndex = -1;
    GVbind();
    }
    protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
    {
    GridView1.EditIndex = -1;
    GVbind();
    }
    }
    }

  • @VikashKumar-fg2pm
    @VikashKumar-fg2pm Před rokem +1

    I am add your subscribe link and add pay 49 rupee for 400 code please suggest how to use code

  • @sundram5849
    @sundram5849 Před 2 lety

    Sir kuch aisa bataiye ke jab hum reg kre to
    Reg, or form ke all data ke label me print kra sake other web page me aspx. Net me
    Alag alag web page le or sub web page ke data record ke ek sath print kra sake
    Jaise ke hum koi form online kerte hai or oha se print milta hai oisa he

  • @sundram5849
    @sundram5849 Před 2 lety

    Sir kuch aisa bataiye ke jab hum reg kre to
    Reg, or form ke all data ke label me print kra sake other web page me aspx. Net me
    Alag alag web page le or sub web page ke data record ke ek sath print kra sake
    Jaise ke hum koi form online kerte hai or oha se print milta hai oisa he

  • @sundram5849
    @sundram5849 Před 2 lety

    Sir kuch aisa bataiye ke jab hum reg kre to
    Reg, or form ke all data ke label me print kra sake other web page me aspx. Net me
    Alag alag web page le or sub web page ke data record ke ek sath print kra sake
    Jaise ke hum koi form online kerte hai or oha se print milta hai oisa he

  • @sundram5849
    @sundram5849 Před 2 lety

    Sir kuch aisa bataiye ke jab hum reg kre to
    Reg, or form ke all data ke label me print kra sake other web page me aspx. Net me
    Alag alag web page le or sub web page ke data record ke ek sath print kra sake
    Jaise ke hum koi form online kerte hai or oha se print milta hai oisa he

  • @sundram5849
    @sundram5849 Před 2 lety

    Sir kuch aisa bataiye ke jab hum reg kre to
    Reg, or form ke all data ke label me print kra sake other web page me aspx. Net me
    Alag alag web page le or sub web page ke data record ke ek sath print kra sake
    Jaise ke hum koi form online kerte hai or oha se print milta hai oisa he

  • @sundram5849
    @sundram5849 Před 2 lety

    Sir kuch aisa bataiye ke jab hum reg kre to
    Reg, or form ke all data ke label me print kra sake other web page me aspx. Net me
    Alag alag web page le or sub web page ke data record ke ek sath print kra sake
    Jaise ke hum koi form online kerte hai or oha se print milta hai oisa he

  • @sundram5849
    @sundram5849 Před 2 lety

    Sir kuch aisa bataiye ke jab hum reg kre to
    Reg, or form ke all data ke label me print kra sake other web page me aspx. Net me
    Alag alag web page le or sub web page ke data record ke ek sath print kra sake
    Jaise ke hum koi form online kerte hai or oha se print milta hai oisa he

  • @sundram5849
    @sundram5849 Před 2 lety

    Sir kuch aisa bataiye ke jab hum reg kre to
    Reg, or form ke all data ke label me print kra sake other web page me aspx. Net me
    Alag alag web page le or sub web page ke data record ke ek sath print kra sake
    Jaise ke hum koi form online kerte hai or oha se print milta hai oisa he