1

I have a gridview which has paging property. From code behind i am changing the Next text with an image with the following code. the image is successfulu loaded instead of next text but when i am clicking it does not fires the event PageIndexChanging , but if i have the default text of the pager Next it does fires the event. Any help?

grdQuestions.PagerSettings.NextPageImageUrl = "NewImages/next_bg.jpg";
Amarnath Balasubramanian
  • 9,300
  • 8
  • 34
  • 62
user1292656
  • 2,502
  • 20
  • 48
  • 68

1 Answers1

3

In the page load event you should check IsPostBack condition. Like this

if(!IsPostBack) { //page load events }

try it now

Karthik AMR
  • 1,694
  • 21
  • 29