Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
C#
<script  runat="server">
void BindShoppingCart()
   {
       if (Profile.ShoppingCart != null)
       {
           var  gdfg= Profile.ShoppingCart;
           var gdfhd = Profile.UserName;
           weekly_sp.DataSource = Profile.ShoppingCart.CartItems;
           weekly_sp.DataBind();
         var gfgf1=  Profile.ShoppingCart.Total.ToString("c");
       }
   }
</script>
Posted
Updated 8-Oct-14 21:26pm
v2
Comments
Sinisa Hajnal 9-Oct-14 3:43am    
Why? And what have you tried until now? Normally you call server-side via Ajax calls from jQuery. Mark BindShoppingCart with WebMethod attribute...
vermanishad 9-Oct-14 3:59am    
because profile method is support only html <script runat="server"> that a reason if you know this question plz suggest me
Sergey Alexandrovich Kryukov 9-Oct-14 4:06am    
Suggest what? there are no a script on server side. I suggest you learn how Web works in general, what happens on what side, etc.
—SA
Sergey Alexandrovich Kryukov 9-Oct-14 4:05am    
The request makes no sense. jQuery script is... already a script.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900