Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling another subroutine in Page_Load

Status
Not open for further replies.

vaichi123

Programmer
Dec 2, 2006
20
US
I am doing some time consuming calculation in one of my routines which is called during the node expand event of the treeview. I want this routine to be called during Page_Load event itself so I don't have to make the users wait for long when they click and expand the treeview. The problem is how do I call this routine in Page_Load itself as this routine takes an eventargs of Radtreenodeeventargs type however page_load can pass only system.eventargs I get a eventargs casting error. How do I overcome this?

Thanks for your help
 
Take the code you want to run out of the event of the tree and put it in its own sub. Then call that sub from Page_Load() and from your tree event.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top