How to avoid page refresh after button click event in asp net c# | update Panel in asp.net

preview_player
Показать описание

you are inserting some data in database in Click event of button, After click if user refresh the page than click event gets fired again resulting data insertion to database again.

To stop event fire on browser refresh we need to write bit of code.

-------------
May be you like this
--------------
F

c# playlist:
Рекомендации по теме
Комментарии
Автор

Thank you so much man! Your video helped me a lot at work last Friday. I was really stuck in a problem and then you came up. Many thanks!

joaomacedo
Автор

Simple and beautiful explanation! --- Worked like a charm! --- Thank you!

nordx
Автор

Thank you so much for this simply trick. I was boring with my problem and you solved it quickly!

danielenardella
Автор

Thank you.Its very useful.It helped me.

serhatgunes
Автор

k fine but when I redirect one webform to another to load next page in new tab means, not woking..

sridharlumos
Автор

Dear sir your video is great, kindly make a video to show how to avoid page refresh and also inserting new record using updatepanel after clicking insert linkbutton in a formview asp.net c# webform. I will be extremely grateful to you if you make this video at the earliest.

logoutofyourgmailaccountne
Автор

It does not work for me. I am using VS 2017. Any idea?

sbmahapatra
Автор

perhaps update panel is just hiding the visible flicker & hiding page load but infact page load is happening on the server behind curtains... becoz its taking time to make round trip on server & providing burden on server.

shovikanand
Автор

thank you sir nice video. but when i use update panel with script manage my button click event is not working . why this happen . please ans this sir.

sradhawebcreations
Автор

Any idea on how to do this in Core 3.0?

VanFSK
Автор

used the update panel but it somehow disables my asp button which is inside it. it cant fire an onclick event. Solution needed

kiizajustus
Автор

what about the scrolling ..how to maintain position after the refresh?

itz_vulego._.
Автор

من أجل أن يكون هناك مشكلة بس في نفس الوقت الذي يكون فيه يصلح الحال ردي

hhhggggh
Автор

wooow thank you, this works with Bootstrap?, regards

leoneldominguez
Автор

people are still learning web forms? (instead of MVC?)

andrewwerner
Автор

good but you may be improve it. use with UpdateProgress control

akfsf