Tech Off Thread

5 posts

How to Refresh Adrotator without refreshing the page and not using AJAX

Back to Forum: Tech Off
  • User profile image
    venkatzeus

    Hi,

     

    I am using ASP.NET 2.0 and C#.  I am not using AJAX.

     

    I have added an Adrotator in my page. I want to refresh the adrotator after every ten seconds. Currently when the adrotator refreshes, the page is also getting refreshed.

     

    How to refresh the adrotator without refreshing the complete page and not using Ajax?

     

    Thank you 

  • User profile image
    W3bbo

    You can't. The AdRotator is designed like that.

     

    Implementing your own ad-rotation client script is easy enough. You shouldn't be writing ASP.NET without knowing client-side scripting anyway.

  • User profile image
    figuerres

    no ajax means that you do not want to use JavaScript on the client side to update the add.

    and you do not want to do a full page post back.

    and you want it to happen every few seconds.

    *IF* you really mean that then you have two options:

     

    Flash

    SIlverlight

     

    if you do not for some reason wish to use them then you will not have any updates w/o a full page post back.

     

    personally i would re-think the "no ajax"  used right ajax is ok.... 

    if you still feel that way then i would look at silverlight or flash as a way to get there - but with more overhead than just an image swap.

     

  • User profile image
    Anonymous21​112

    You could use an IFrame with the tag  

    <meta http-equiv="refresh" content="10" />

      ugly? yes, but meets your requirements


  • User profile image
    xgamer

    Anonymous21112 said:

    You could use an IFrame with the tag  

    <meta http-equiv="refresh" content="10" />

      ugly? yes, but meets your requirements


    +1 iframe...

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.