This is a migrated thread and some comments may be shown as answers.

How to pass two parameters

4 Answers 119 Views
Window
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 19 Sep 2011, 02:56 PM

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.

4 Answers, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 20 Sep 2011, 02:04 AM
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?
0
mohamed
Top achievements
Rank 1
answered on 20 Sep 2011, 05:09 AM

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

Thanks,
Mohamed.
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 20 Sep 2011, 06:22 AM
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....
0
mohamed
Top achievements
Rank 1
answered on 20 Sep 2011, 01:33 PM
Problem Resoled ,

Through Linkbotton

Thanks,
Mohamed.
Tags
Window
Asked by
mohamed
Top achievements
Rank 1
Answers by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
mohamed
Top achievements
Rank 1
Share this question
or