470,848 Members | 1,059 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

Can a WebUserControl use functions from host file?

Hello Group,

I'm using VisualStudio.NET and put a DataGrid into a WebUserControl (an ascx
file). For the DataGrid element, I have set AllowSorting="True" and

The functions that Grid_Sort rely upon are in the Code-Behind file of the
host file (index.aspx.vb). But the task-list reports "Name 'FunctionName' is
not declared." when I try to refer to them.

So, my question is: is it possible to put an Event Handler for a DataGrid in
a WebUserControl ascx.vb Code-behind file, while putting the support
functions that the Event Handler needs in the host aspx.vb Code-behind file?
How would I get the two to share functions?

I've been able to achieve communication between a WebUserControl and the
host file through Properties and Methods, but I have not been able to make
common functions such as you could with old asp include files. Any ideas?

Mike Levin
Nov 18 '05 #1
0 911

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Chris | last post: by
1 post views Thread by DichkoSoft | last post: by
reply views Thread by Christian H | last post: by
2 posts views Thread by Oren | last post: by
2 posts views Thread by Oren | last post: by
reply views Thread by Giovanni | last post: by
reply views Thread by Klaus Jensen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.