Click here to Skip to main content
12,755,775 members (36,658 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0

I am using master and child page. In child page, i am using update panel and controls inside the update panel relating to the page. When a record is inserted or edited, i want a message to be displayed at the top of the page. The message should stay for few seconds and then be invisible. When the page is scrolled, the message should always reside at the top of the content page. Please help me on this.
Posted 9-Dec-12 9:00am
Updated 9-Dec-12 19:31pm
Krunal Rohit 9-Dec-12 23:09pm
Provide your code, so that we can see whats happening in your app...
Rickin Kane 10-Dec-12 5:00am
make sure your Message (Success , warning & error) are in Update Panel and sitting at Master Page
After that when ever you want to display the message , you need to find the Update Panel which covers the message section and Update it like upMesage.Update()
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

UISettings.ShowMessage("alert alert-success", "Buzz Deleted Successfully", divMessage, ltlMessage);
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Step 1:

<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <asp:Label ID="Label1" runat="server">60</asp:Label>
    <asp:Timer ID="Timer1" runat="server" Interval="1000"

protected void Timer1_Tick(object sender, EventArgs e)
    int seconds = int.Parse(Label1.Text);
    if (seconds >

In the Above code let the Code Label be Visible=False
lblMessage :- refer to Step 2.

Step 2: Take a new Label for your message, Give its as follows

<asp:label id="lblMessage" runat="server" style=" text-align:Center" auto="><br mode=" hold=" />Your Mesage<

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170217.1 | Last Updated 23 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100