Click here to Skip to main content
16,016,140 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,
I have two grid views .One is showing The item of a particular thing and second will show its spare parts.Second grid view have multiple items.I want to bind the values of particular grids in html through sessions.I have binded the item of first grid in html through sessions and it working fine and the code for that is showmn below:

XML
<body onload ="document.getElementById('btn').click()">
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart"/>
<input type="hidden" name="business" value="info@purplebayuk.com"/>
<input type="hidden" name="lc" value="UK"/>
<input type="hidden" name="item_name" value="<%= Session["name2"] %>" />
<input type="hidden" name="amount" value="<%= Session["prc2"] %>"/>
<input type="hidden" name="quantity" value="<%=Session["qnt2"] %>"/>
<%--<input type="hidden" name="shopping_url" value="http://www.dritlive.com/main.aspx" />--%>
<input type="hidden" name="currency_code" value="GBP"/>
<input type="hidden" name="button_subtype" value="products"/>
<input type="hidden" name="add" value="5"/>
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted"/>
<input type="image" src="" id="btn" border="0" name="submit" id="btn" alt="PayPal - The safer, easier way to pay online!"/>
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/>


My problem is that in second grid view I ahve multiple items,and I am selecting only some items by checking checkbox.So how to bind checked items through session in html,thats my problem in same way as done in above code in same page,please suggest me write answer
Posted

1 solution

Suggestion: You can create seperate list variable for selected values and store it in session variable.
 
Share this answer
 

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