Page Refresh
-
Hello, Does anyone know how on the codebehind to call a JavaScript function. I would like to call this JavaScript Refresh function. function fRefresh() { document.frames['myIFRAME'].location = 'apage.aspx'; } Thank you. RB
-
Hello, Does anyone know how on the codebehind to call a JavaScript function. I would like to call this JavaScript Refresh function. function fRefresh() { document.frames['myIFRAME'].location = 'apage.aspx'; } Thank you. RB
after a click of a button? in server: button.Attributes.Add("onclick","fRefresh();"); right after page is loaded? in page_load event: RegisterStartUpScript("ExecuteRefresh","fRefresh();"); how do you need it? daniero -- modified at 13:43 Friday 30th December, 2005
-
Hello, Does anyone know how on the codebehind to call a JavaScript function. I would like to call this JavaScript Refresh function. function fRefresh() { document.frames['myIFRAME'].location = 'apage.aspx'; } Thank you. RB
-
after a click of a button? in server: button.Attributes.Add("onclick","fRefresh();"); right after page is loaded? in page_load event: RegisterStartUpScript("ExecuteRefresh","fRefresh();"); how do you need it? daniero -- modified at 13:43 Friday 30th December, 2005
That worked thanks so much.
-
Are you still trouble with refreshing the IFRAME? 1 line of code equals many bugs. So don't write any!!
No I am not thank you.
-
No I am not thank you.
I just dont understand. IE has a timer refresh function, if thats what you need. It would be better to force a postback, at least it makes it easier to read. Back tracking javascript is annoying. And it you keep the data in a viewstate as long is its not to big it would be fine. Or create a new Web Server Control of the page. Then you can call and set properties and just do a page refresh, without an ugly IFRAME. It would be easier maitain. And maintenance is more important. Nick 1 line of code equals many bugs. So don't write any!!