Hi Frinny! Thanks..thanks!
Sorry if I did not clearly explain my last post....:)
What I mean by placing my LoadAllPhotos() function to a Base Class is, instead of placing it to current .aspx page, I want to place it in another Class(which inherits System.Web.UI.P age) and my .aspx page will just inherit that class, so I can call LoadAllPhotos from my JavaScript using PageMethods of ASP.Net AJAX...but as what youve said, it is not possible to pass Page param to javascript, so I should not be wasting my time thinking of this, I guess..:).
Sorry If I used 'transition' in my last post. What I really meant was, calling JavaScript function from Code Behind and calling Code Behind function from JavaScript. Btw, this is the only way(method) I know to change my page's content without posting back..or should I say, without making the entire page refreshed like when you press the 'Refresh' btn of the browser. Thanks Frinny!
Sorry if I did not clearly explain my last post....:)
What I mean by placing my LoadAllPhotos() function to a Base Class is, instead of placing it to current .aspx page, I want to place it in another Class(which inherits System.Web.UI.P age) and my .aspx page will just inherit that class, so I can call LoadAllPhotos from my JavaScript using PageMethods of ASP.Net AJAX...but as what youve said, it is not possible to pass Page param to javascript, so I should not be wasting my time thinking of this, I guess..:).
Sorry If I used 'transition' in my last post. What I really meant was, calling JavaScript function from Code Behind and calling Code Behind function from JavaScript. Btw, this is the only way(method) I know to change my page's content without posting back..or should I say, without making the entire page refreshed like when you press the 'Refresh' btn of the browser. Thanks Frinny!
Comment