如何在具有Html的会话中绑定网格视图的多个值 [英] How To Bind Multiple Values Of Grid View in Sessions with Html

查看:55
本文介绍了如何在具有Html的会话中绑定网格视图的多个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有两个网格视图.一个正在显示特定事物的项目,第二个将显示其零件.第二个网格视图有多个项目.我想通过会话将html中特定网格的值绑定.通过会话的html中的第一个网格,它工作正常,其代码如下所示:

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:

<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"/>



我的问题是,在第二个网格视图中,我有多个项目,并且通过选中复选框仅选择了一些项目.因此,如何通过html中的会话绑定已选中的项目,这就是我在同一个页面中上述代码中所遇到的问题,请建议我写答案



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

推荐答案

建议: 您可以为所选值创建单独的列表变量并将其存储在会话变量中.
Suggestion: You can create seperate list variable for selected values and store it in session variable.


这篇关于如何在具有Html的会话中绑定网格视图的多个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆