开发者

how to use page function in user control

开发者 https://www.devze.com 2023-02-01 09:57 出处:网络
I have an GridView and in GridView template field i used a user control. in the user contr开发者_开发问答ol their is data list.

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

精彩评论

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

关注公众号