CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2009
    Posts
    35

    Stop the page from refreshing

    hello frnds,I want to prevent the page from refreshing...I want that only some portion of page is refreshed..not full page,,Is it possible?? Which control i use for dat..I want just the hints..not the code...

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Stop the page from refreshing

    I am not sure what you are asking. However, you should take a look at UpdatePanel and ScriptManager on MSDN. These are Ajax controls and let you do partial page refreshes.

  3. #3
    Join Date
    Jun 2009
    Posts
    35

    Re: Stop the page from refreshing

    hi frnd tell me one thing,there is no update panel in the toolbox..R u using AJAX toolkit.....?I dont want to use AJAX framework,...In PHP we have div tag,thru which we can refresh only the part of the image,We just change the src attribute of it?..Can somebody tell me how to use div tag & load page using div tag..
    Last edited by sonia.sardana; July 30th, 2009 at 11:48 AM.

  4. #4
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Stop the page from refreshing

    Which version of ASP are you using? The Ajax functionality is basically using Javascript behind the scenes. All you will have to do is write JavaScript, look at XMLHttpObject in google, you will find 110s of examples. You can surely use a Div tag and Javascript together to provide Ajax functionality, I have done it it using classic ASP number of times.

    However, the question is why do we want to re-invent a wheel when all this functionality and much is built in to ASP.NET 2.0. Shouldn't it be easier to use the Update Panel or AjaxControl tool kit. If you are using earlier version of .NETthen you will have to use Ajax tool kit and if you are using 2.0 and above then Updatepanel si what you should be using.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured