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

Pass Variable to Insert ASCX

1 Answer 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 26 Feb 2010, 07:13 PM
Hi,

I have a grid with custom edit and insert controls.  All is working well.  I have a new request that requires me to send a variable to the insert control.  I have my edit control's DataItem property being filled with data so I can Eval to populate controls but I can't figure out how to pass anything to the insert control.  I need to be able to access this passed variable from the insert control's Page_Load.  Can someone please help me out with this?

Thank you,
Nick

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 02 Mar 2010, 08:57 AM
Hi Nick,

You could try using the Session object to hold the value which is needed for the UserControl. You can set it into the Page's method and then you could get it into the UserControl Load event handler.
Also you could check out this article which demonstrates another ways for passing values to user control form the Page.

I hope this helps.

Greetings,
Radoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Nick
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or