本文介绍了如何使用asp.net中的查询字符串将2个值id传递到下一页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你在互联网上搜索bt没有什么工作对我来说请帮助我..我绑定terlik网格中的一些值。值是站点名称和点名称。我希望在单击按钮时将这2个值(siteid,pointid)的id传递给第二个page.aspx。但是不应该显示。使用响应.redirect我如何发送这些ID id来自d数据库本身。请查找我的代码
i想要发送这些ids到下一页
Hi searched in the internet bt nothing works fine for me please help me.. i am binding some values in a terlik grid. values are site name and point name .here i want pass the ids of this 2 values(siteid,pointid)to the second page.aspx when a button is clicked. but that should not be displayed .using responce .redirect how can i send those ids ids are coming from d database itself.pls look up my code
i want to send these ids to the next page
<table width="100%">
<tr>
<td style="width: 100%;">
<telerik:RadGrid ID="grdPointSearch" runat="server" AutoGenerateColumns="False" EnableEmbeddedSkins="False" EnableHeaderContextFilterMenu="True" EnableHeaderContextMenu="True" Height="121px" Skin="NGN_Grid" Width="100%">
<mastertableview autogeneratecolumns="False" clientdatakeynames="sitename" datakeynames="sitename,pointname">
<columns>
<telerik:gridboundcolumn datafield="SiteName" headertext="Site Name" itemstyle-cssclass="fntn fntrd tal" readonly="true" uniquename="SiteCode" xmlns:telerik="#unknown">
</telerik:gridboundcolumn>
<telerik:gridboundcolumn datafield="PointName" headertext="Point Name" itemstyle-cssclass="fntn fntrd tal" readonly="true" uniquename="PointName" xmlns:telerik="#unknown">
</telerik:gridboundcolumn>
<telerik:gridboundcolumn uniquename="PointId" datafield="PointId" display="false" xmlns:telerik="#unknown"> </telerik:gridboundcolumn>
<telerik:gridboundcolumn uniquename="SiteId" datafield="SiteId" display="false" xmlns:telerik="#unknown"> </telerik:gridboundcolumn>
<telerik:gridtemplatecolumn uniquename="TemplateColumn" headertext="Responce" xmlns:telerik="#unknown">
<itemtemplate>
<table>
<tr>
</tr>
<tr>
<td>
<telerik:RadButton ID="btnviewdtls" runat="server" ButtonType="LinkButton" Text="View Details"
CommandName="Button1Click" />
</td>
</tr></table></itemtemplate></telerik:gridtemplatecolumn></columns>
</mastertableview>
<clientsettings>
<clientevents />
</clientsettings>
</td>
</tr>
</table>
////clikevent
protected void ViewDetail_Click(object sender, EventArgs e)
{
////Response.Redirect("SPMPointDetails.aspx", false);
Response.Redirect("/SPMPointDetails.aspx?" +Siteid,pointid );
}
<pre lang="HTML">
推荐答案
这篇关于如何使用asp.net中的查询字符串将2个值id传递到下一页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!