Anandapala
Anandapala was the last ruler of the Kabul Shahi dynasty, who ruled from 1001 to 1010 CE. His empire expanded from from Laghman to Kashmir and Sirhind to Multan. But he had lost most of his territories to Sabuktagin and his son Mahmud. Anandapala was defeated by Mahmud of Ghazni when his elephant suddenly took flight and turned the tide of the battle. According to 'Adab al-Harb' (pp. 307–10) in about 990 CE, it is written, "the arrogant but ambitious Raja of Lahore Bharat, having put his father in confinement, marched on the country of Jayapala with the intention of conquering the districts of Nandana, Jailum (Jehlum) and Takeshar" (in an attempt to take advantage of Jayapala's concentrated effort with defence against the armies of Ghazni). "Jayapala instructed Prince Anandapala to repel the opportunist Raja Bharat. Anandapala defeated Bharat and took him prisoner in the battle of Takeshar and marched on Lahore and captured the city and extended his father's kingdom yet further."
During the battle of Chach between Mahmud and Anandapala, it is stated that "a body of 30,000 Gakhars fought alongside as soldiers for the Shahi Emperor and incurred huge losses for the Ghaznavids". However, despite the heavy losses of the enemy, he lost the battle and suffered much financial and territorial loss. This was Anandapala's last stand against Sultan Mahmud of Ghazni. R.C Majumdar compared him ironically to his dynastic ancient famous ancestor "King Porus, who bravely opposed Alexander.
Source :
http://en.wikipedia.org/wiki/Anandapala
During the battle of Chach between Mahmud and Anandapala, it is stated that "a body of 30,000 Gakhars fought alongside as soldiers for the Shahi Emperor and incurred huge losses for the Ghaznavids". However, despite the heavy losses of the enemy, he lost the battle and suffered much financial and territorial loss. This was Anandapala's last stand against Sultan Mahmud of Ghazni. R.C Majumdar compared him ironically to his dynastic ancient famous ancestor "King Porus, who bravely opposed Alexander.
Source :
http://en.wikipedia.org/wiki/Anandapala