1
Answer

how to disable Previous and next link asp.net mvc

Asad khan

Asad khan

8y
1.1k
1
how to disable Previous and next link asp.net mvc
when i become first page then previous link will become disable and when i become last page then next link will become disable.
Answers (1)
0
Pradeep Sahoo

Pradeep Sahoo

311 6k 3.6m 8y
Set global variable in javascript . When the page is loaded first time set the global variable not to go previous . Once it goes to next page reset back the global variable value again . Based on the global variable value you need to enable or disable the link.