High_D
January 28th, 2008, 12:09 PM
I'm a tad new to posting, so maybe I just dont userstand the page lifecycle enough...but why would this not work?
If I make the fields not hidden the correct data shows up, but the serverpage which is handling the data I'm passing says it doesnt recognize my storeid/key. However if I remove the runat="server" attribute and just hardcode the value on the aspx, it works and the serverpage accepts the values.?
//PAGE CODE
<input id="hdnStoreID" type="hidden" name="ps_store_id" value="" runat="server"/>
<input id="hdnHPPKey" type="hidden" name="hpp_key" value="" runat="server" />
<asp:ImageButton ID="btnSubmit" runat="server" ImageUrl="images\Submit.gif" PostBackUrl="https://securesite.com/index.php" />
//CODEBEHIND from PageLoad
hdnStoreID.Value = System.Configuration.ConfigurationManager.AppSettings["StoreID"];
hdnHPPKey.Value = System.Configuration.ConfigurationManager.AppSettings["HPPKey"];
(the form runat=server exists in the masterpage...this code is in the content page)
If I make the fields not hidden the correct data shows up, but the serverpage which is handling the data I'm passing says it doesnt recognize my storeid/key. However if I remove the runat="server" attribute and just hardcode the value on the aspx, it works and the serverpage accepts the values.?
//PAGE CODE
<input id="hdnStoreID" type="hidden" name="ps_store_id" value="" runat="server"/>
<input id="hdnHPPKey" type="hidden" name="hpp_key" value="" runat="server" />
<asp:ImageButton ID="btnSubmit" runat="server" ImageUrl="images\Submit.gif" PostBackUrl="https://securesite.com/index.php" />
//CODEBEHIND from PageLoad
hdnStoreID.Value = System.Configuration.ConfigurationManager.AppSettings["StoreID"];
hdnHPPKey.Value = System.Configuration.ConfigurationManager.AppSettings["HPPKey"];
(the form runat=server exists in the masterpage...this code is in the content page)