Well Thank You Very Much For response ...
I am telling you step by step ...... because It is very unknow problem for me and for the member who tried to solve this issue using forum
Now What steps I have Taken Now ....
1) I have Turned All those Control which required update pannel to usercontrol.ascx becuase it can be removed and redrag to anywhere else in entire solution ok
2) First I made simmlpe Date Time.ascx for display top of the Master page ok....
the codes are below
<asp:ScriptManager ID="ScriptManager1" runat="server" ></asp:ScriptManager><asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"><ContentTemplate><fieldset><asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick"></asp:Timer><asp:Label ID="Label1" runat="server" Text="Label" Width="495px"></asp:Label></fieldset></ContentTemplate></asp:UpdatePanel>
and the code behind is below
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Auzine.UserControl { public partial class DateTime : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { //ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "myscript", script, true); } protected void Timer1_Tick(object sender, EventArgs e) { //Label1.Text = DateTime.Now.ToLongDateString() + "----" + DateTime.Now.ToLongTimeString(); Label1.Text = AuzineDateTimeConfig.AuzineDateConfig("Azy"); } } }
ok Then I drg this DateTime.ascx To the Top Of Mater Continer and except this I did not use any update pannel or Ajax in master page nor in Index page ok....
after I Cheked it on browser the page is currently shown is Index along with master ok...
only one was in the top of Master page except there is no update pannel ....
Insted of this the page scrolls Up after a second
I used Firebug You People migh know about it very well ... here I saw when this one script tag keep on adding in head section and when it add the page refresh and page scroll up the tag is below ....what does it mean I do not know
the tag is below
Sys.Application.add_init(function() {$create(Sys.UI._Timer, {"enabled":true,"interval":1000,"uniqueID":"ctl00$DateTime1$Timer1"}, null, null, $get("DateTime1_Timer1")); });
Now Please tell me what does it mean.... and one more thing I also do not know about ScriptManager.RegisterStartupScript Issue so what I am making mistake here...