Avatar of ferguson_jerald
ferguson_jerald
 asked on

How to redirect after gridview row updating?

Hello Experts,

I use the following on a button to redirect the user to the same page when it's clicked:

protected void btn_refresh_emp_name_ddl_Click(object sender, EventArgs e)
        {
            Response.Redirect(Request.RawUrl);
        }

Open in new window

I would like to do the same thing when a gridview row is updated, so I tried this:

protected void tbl_emp_gv_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {
            Response.Redirect(Request.RawUrl);
        } 

Open in new window

but it didn't work.  

Any help would be greatly appreciated.

Thanks,
J
ASP.NET.NET ProgrammingC#

Avatar of undefined
Last Comment
ferguson_jerald

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Lokesh B R

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Kaushal Arora

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ferguson_jerald

ASKER
Thanks!  That's what I needed.
Your help has saved me hundreds of hours of internet surfing.
fblack61