Hi All!
I am relatively new to aspx, and learning, here is a question for you, I hope anyone of you can answer me, appologies of it sound stupid to you :)
I have created a page and converted it into an asxc control, now I am adding this ascx control at some pages and its supposed to take some information out of session variables that are created on the parent aspx pages.
Now the problem part: I have a button on that page which when click, pass some data to session variable, and the page is reloaded, at the same time the ascx control is also loaded inside that, but the session variables are not assigned to that control as desired, they will come if i reload the page second time. A third reload to page will give 2nd time session data and so on, one less the i desire it to have.
What I get from this is, the ascx control's load event accomplishes first and then the parent aspx's load subroutine loads afterwards.
I need a solution to it, if someone can tell me how to invoke a sub or function of ascx control from parent aspx page, i can find answer to this problem or if there is any other better solution , i will love to learn that.....
Thanks to all in advance, and I hope I made you understand on my problem with my tricky english......:)
regards
Yasser Khan