4 Answers, 1 is accepted
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
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?
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
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....
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.
Through Linkbotton
Thanks,
Mohamed.