i have a problem i want to access controls of previous pages values. I know that i can use postbackurl but i must use OnClientClick property because i must call javascript method and according to the criterias my url change. Below method is called OnClientClick property. This page name Calculator.aspx
function redirectSellPage() {
var type = getParameterByName('type');
if (type == 'test') {
window.location.href = "Change.aspx?PageType=a";
} else if (a == null || a == "") {
window.location.href = "Change.aspx?PageType=b";
} else {
window.location.href = "Change.aspx?PageType=c";
}
}
I want to access Calculator.aspx controls values in Change.aspx. How can i do that.
In source page, which in your case is Calculator.aspx, add this:
On the target page, which in your case is Change.aspx, add a @ PreviousPageType page directive that points to the source page.
Now in target page use PreviousPage property to access values.