Hi moi_meme and thanks for your help.
I've tried doing that before but it doesn't suit my needs. I'll explain why.
I've got an ascx page which is rendered 3 times or more inside the main aspx page. The reason why is because each ascx page belongs to a record from a certain table in our database.
I've got something like this:
var IP = ViewData["childID"];
then at the end of the page I increment this var by doing the following:
ViewData["childID"] = (int)ViewData["childID"]+1;
I do this so that when the page is read over again, the integer on IP will be incremented.
But when the page reads from the beginning, the value at the ViewData was not incremented, thefore the value in IP is still the same.