Sujeet Raman

Sujeet Raman

  • 773
  • 927
  • 341.8k

How to pass 2 values id in to the next page using query stri

Feb 25 2016 8:42 AM
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%;">                     &lt;telerik:RadGrid ID="grdPointSearch"  runat="server"  AutoGenerateColumns="False"  EnableEmbeddedSkins="False" EnableHeaderContextFilterMenu="True" EnableHeaderContextMenu="True" Height="121px" Skin="NGN_Grid" Width="100%"&gt;                                               <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>                                        &lt;telerik:RadButton ID="btnviewdtls"  runat="server" ButtonType="LinkButton" Text="View Details"                                            CommandName="Button1Click" /&gt;                                    </td>                                                                                                 </tr></table></itemtemplate></telerik:gridtemplatecolumn></columns>                         </mastertableview>                         <clientsettings>                             <clientevents />                         </clientsettings>                                      </td>             </tr>         </table>    


   protected void ViewDetail_Click(object sender, EventArgs e)         {             ////Response.Redirect("SPMPointDetails.aspx", false);               Response.Redirect("/SPMPointDetails.aspx?" +Siteid,pointid );         }

Answers (5)