javascript - Maintain scroll position when using Response.Redirect(Request.RawUrl) -


i maintain scroll position when using:

response.redirect(request.rawurl) 

the reason because have button in gridview updates value in grid. after clicking button want update value in gridview, needs response.redirect(request.rawurl) want maintain scroll position.

this not work either:

maintainscrollpositiononpostback="true"  

i have tried other javacript methods , not work well, since refreshing page.

how this?

i fixed it.

i replaced response.redirect(request.rawurl) gridview1.databind()


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -