USING TELERIK GRID***
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
i want to send these ids to the next page
Bash
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>Code
Code
////clikeventCode
Code
protected void ViewDetail_Click(object sender, EventArgs e) { ////Response.Redirect("SPMPointDetails.aspx", false); Response.Redirect("/SPMPointDetails.aspx?" +Siteid,pointid ); }
Banketeshvar NarayanRank #235 · 10.5K reputationPosted Feb 25, 2016, 8:03 AM EST
Rajeev PunhaniRank #551 · 4.4K reputationPosted Feb 25, 2016, 8:32 AM EST
If the above solution is helpful then,accept the answer.
Sujeet RamanRank #1,329 · 1.3K reputationPosted Feb 25, 2016, 10:50 PM EST
Sujeet RamanRank #1,329 · 1.3K reputationPosted Feb 25, 2016, 10:50 PM EST
Vipan SharmaRank #1,589 · 999 reputationPosted Feb 26, 2016, 2:25 AM EST