Hi,
Correct me if i am wrong.Did you try usng hidden field?
<asp:HiddenField ID="hdnValue" runat="server" Value="Secret Value" />
In that way you can make your variable as public string A.
Assign the hidden variable while assigning the string variable.
On Postback reassign the string variable using the hidden variable.
Hope this helps.