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...

Recommended Answers

All 5 Replies

Yes, it is possible.
If i was to do this I would use AJAX. It can do exactly what you want.

Using ASP.NET Ajax, you can do partial rendering of your pages.

Use ScriptManage and UpdatePanel controls.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestPage20.aspx.cs" Inherits="TestPage20" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
</head>
<body>
	<form id="form1" runat="server">
	<div>
	</div>
	<asp:ScriptManager ID="ScriptManager1" runat="server">
	</asp:ScriptManager>
	<asp:UpdatePanel ID="UpdatePanel1" runat="server">
		<ContentTemplate>
			
            Add your controls here

		</ContentTemplate>
	</asp:UpdatePanel>
	</form>
</body>
</html>

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?...is there any div tag in ASP.Net??

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..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.