Shruti Agarwal
Shruti Agarwal

Reputation: 897

Button with postbackurl specified doesn't actually go to the target

I have a folder in my website called order in which 2 pages "Partner.aspx" and "ViewBasket.aspx" are present. In my first page i.e Partner.aspx, I have a button with the code :

<asp:Button runat="server" ID="btnViewBasket" PostBackUrl="~/ViewBasket.aspx"
 SkinID="MSWButtonM" Text="VIEW CART" meta:resourcekey="btnViewBasketResource1"/>

But on click of this button it doesnt go to the Viewbasket.aspx page. Can somebody please help?

Upvotes: 0

Views: 68

Answers (1)

NnN
NnN

Reputation: 463

Try,

<asp:Button runat="server" ID="btnViewBasket" PostBackUrl="/order/ViewBasket.aspx" 
SkinID="MSWButtonM" Text="VIEW CART" meta:resourcekey="btnViewBasketResource1"/>

Upvotes: 0

Related Questions