You can simply use javascript for this.
I have this hidden textbox in partial view and i want to access it's value in parent view
So, simplest way is as follow:
var allexamcount = document.getElementById("allexamcount").value;
document.getElementById("examcount").value = allexamcount ;