Click here to Skip to main content
15,905,682 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to rewrite the url ? Pin
Sudhanshu Mani Tripathi16-Jun-10 20:27
Sudhanshu Mani Tripathi16-Jun-10 20:27 
AnswerRe: How to rewrite the url ? Pin
Abhijit Jana16-Jun-10 20:50
professionalAbhijit Jana16-Jun-10 20:50 
GeneralRe: How to rewrite the url ? Pin
Sudhanshu Mani Tripathi17-Jun-10 3:03
Sudhanshu Mani Tripathi17-Jun-10 3:03 
AnswerRe: How to rewrite the url ? Pin
thatraja16-Jun-10 20:51
professionalthatraja16-Jun-10 20:51 
QuestionProblem in regular expression Pin
Rohit16db16-Jun-10 20:24
Rohit16db16-Jun-10 20:24 
AnswerRe: Problem in regular expression Pin
Abhijit Jana16-Jun-10 20:52
professionalAbhijit Jana16-Jun-10 20:52 
GeneralRe: Problem in regular expression Pin
Rohit16db16-Jun-10 21:04
Rohit16db16-Jun-10 21:04 
Questionajax for partial refresh of the page Pin
KishoreT16-Jun-10 20:17
KishoreT16-Jun-10 20:17 
I am using ajax scriptmanager to update system time on the webpage. the corresponding code was placed in ContentTemplate. The text out side the contentTemplate also refreshing instead of partial refresh of the page.

pls help me.

code: aspx
------------
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Ajax.aspx.cs" Inherits="WebApplication1.Ajax" %>

<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label2" runat="server" Text="My System time:"></asp:Label>


<asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>


</ContentTemplate>
</asp:UpdatePanel>


<asp:Timer ID="Timer1" runat="server" Interval="500" ontick="Timer1_Tick" />
</div>

</form>
</body>
</html>


//server side code
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace WebApplication1
{
public partial class Ajax : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
Label1.Text = System.DateTime.Now.ToString();
}

protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = System.DateTime.Now.ToString();
}

protected void Timer1_Tick(object sender, EventArgs e)
{
Label1.Text = System.DateTime.Now.ToString();
}
}
}

Pls help to resolve this problem
AnswerRe: ajax for partial refresh of the page Pin
KingHau16-Jun-10 20:52
KingHau16-Jun-10 20:52 
AnswerRe: ajax for partial refresh of the page Pin
KishoreT16-Jun-10 23:35
KishoreT16-Jun-10 23:35 
Questionasp.net without javascript Pin
digitaldxb16-Jun-10 11:35
digitaldxb16-Jun-10 11:35 
AnswerRe: asp.net without javascript Pin
Sandeep Mewara17-Jun-10 6:34
mveSandeep Mewara17-Jun-10 6:34 
QuestionTab Control in ASP.Net Tooltip Pin
indian14316-Jun-10 11:30
indian14316-Jun-10 11:30 
AnswerRe: Tab Control in ASP.Net Tooltip Pin
Sandeep Mewara17-Jun-10 6:31
mveSandeep Mewara17-Jun-10 6:31 
Questiondispalying an image from sql database without knowing content type Pin
Aptiva Dave16-Jun-10 10:51
Aptiva Dave16-Jun-10 10:51 
AnswerRe: dispalying an image from sql database without knowing content type Pin
Sandeep Mewara17-Jun-10 6:28
mveSandeep Mewara17-Jun-10 6:28 
QuestionError Message Pin
indian14316-Jun-10 10:34
indian14316-Jun-10 10:34 
AnswerRe: Error Message Pin
thatraja16-Jun-10 20:26
professionalthatraja16-Jun-10 20:26 
QuestionImplementing Custom 404 page in ASP.NET Web Form Application using Routing Pin
Nadia Monalisa16-Jun-10 9:05
Nadia Monalisa16-Jun-10 9:05 
QuestionDesign-time render error for CompositeControl Pin
Fayu16-Jun-10 5:38
Fayu16-Jun-10 5:38 
Questionow to find Textbox ID's binded inside Grid view Pin
Satish_S16-Jun-10 1:22
Satish_S16-Jun-10 1:22 
AnswerRe: ow to find Textbox ID's binded inside Grid view Pin
meeram39516-Jun-10 1:26
meeram39516-Jun-10 1:26 
GeneralRe: ow to find Textbox ID's binded inside Grid view Pin
Satish_S16-Jun-10 1:35
Satish_S16-Jun-10 1:35 
AnswerRe: ow to find Textbox ID's binded inside Grid view Pin
shreekar17-Jun-10 3:51
shreekar17-Jun-10 3:51 
Questiondisplay column headers vertically Pin
priyagee16-Jun-10 0:43
priyagee16-Jun-10 0:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.