开发者

how to use page function in user control

I have an GridView and in GridView template field i used a user control. in the user contr开发者_开发问答ol their is data list.

in my parent page their is BindGrid function. i want to call BindGrid function of page inside Datalist_RowCommand event.

Thanks in advance


I recommend you create an event in your user control which the parent page subscribes to.

Then in the Datalist_RowCommand call (fire) the event. A method (event handler) in the parent page will then recieve information from the control and you can call your function from there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜