How to pass two parameters

5 posts, 0 answers
  1. mohamed
    mohamed avatar
    311 posts
    Member since:
    Mar 2011

    Posted 19 Sep 2011 Link to this post


    Hello  Every One,

    How to pass two parameters in that example like

    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

    Thanks,
    Mohamed.
  2. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 19 Sep 2011 Link to this post

    Do you mean like how to pass querystring values?

    So if this is your column
    <telerik:GridTemplateColumn UniqueName="TemplateEditColumn">
               <ItemTemplate>
                         <asp:HyperLink ID="EditLink" runat="server" Text="Edit" NavigateUrl="~/page.aspx?firstname=steve&lastname=scott"></asp:HyperLink>
                </ItemTemplate>
    </telerik:GridTemplateColumn>

    So in the above case I'm passing two parameters on the querystring to page.aspx
    firstname whos value is "steve" and lastname whos value is "scott"

    Is that what you were asking?
  3. mohamed
    mohamed avatar
    311 posts
    Member since:
    Mar 2011

    Posted 20 Sep 2011 Link to this post


    Thanks for reply Steve,
     Same Like that parameters passed to popup window

    Thanks,
    Mohamed.
  4. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 20 Sep 2011 Link to this post

    So if it's an external page you're trying to show with the window (iframe with the ContentURL) then you use querystring parameters to pass values like I show above.

    Then on the server of that page (lets assume the page.aspx in the above example) consume them like
    string firstname = Request.QueryString["firstname"];
    string lastname = Request.QueryString["lastname"];

    Now if you have your window content defined in the ContentTemplate and NOT with ContentURL (so it's not an iframe) then you can set any properties locally in your page to hidden fields, and when the page opens you can just read those in....
  5. mohamed
    mohamed avatar
    311 posts
    Member since:
    Mar 2011

    Posted 20 Sep 2011 Link to this post

    Problem Resoled ,

    Through Linkbotton

    Thanks,
    Mohamed.
Back to Top