|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Getting the ApplicationInstance in webcontrol? HelpHi guys,
I have been having issues getting the Global ApplicationInstance in webcontrol.... within my global.asax, I have a public method test(). now how do I access them in a webcontrol.... normally I just using ((MyGobal.Class)HttpContext.ApplicationInstance).test(); pls advise, schizo If the Application class is in the same assembly as the Codebehind for the
control, then it should work. If the control is a different assembly, then you'll need to make a reference from the control assembly to the assembly that contains the application class. Chances are that this will be a bit tricky, since typically the control's assembly is compiled prior to the application's assembly. -Brock DevelopMentor http://staff.develop.com/ballen Show quoteHide quote > Hi guys, > > I have been having issues getting the Global ApplicationInstance in > webcontrol.... > within my global.asax, I have a public method test(). now how do I > access > them in a webcontrol.... > normally I just using > ((MyGobal.Class)HttpContext.ApplicationInstance).test(); > pls advise, > schizo
Page values are lost
See "what's going on" when an "Error Creating Control" message is displayed Accessing dynamic radio buttons Specifying Width and Height properties as percentages navigate through multipage hiddenfield / htmlInputHidden ? more than one webroot DataGrid Update Question Image Web Control Datagrid paging |
|||||||||||||||||||||||