public partial class index : System.Web.UI.Page { public void binding() { //database binding code } }
public partial class cart : System.Web.UI.UserControl { public void binding() { //database binding code } }
binding()
when you are adding reference of user control into page.you will get name of usercontrol. so you have to use usercontrolname.MethodName(); eg:->cart.binding() in your page. but the binding method should be public in usercontrol.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)