ASP.NET Load Control Problems Using VB.NET -
i have asp.net page (page a) has html , single html control loads form (control a). when finished saving form in control a, want html control in page load next control. have been unable make work , appreciated.
this code using in control trigger function in page load control.
protected sub btnsave2_click(byval sender object, byval e eventargs) handles btnsave2.click try dim ctest new frmmain ctest.nextbutton() catch ex exception this function in page being fired, not loading anything
public sub nextbutton() dim cname new control cname = loadcontrol("ep/ctle1_01_03.ascx") me.dvcontent.controls.add(cname) end sub
use virtual path:
cname = loadcontrol("~/ep/ctle1_01_03.ascx")
Comments
Post a Comment