Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: 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 8:00am
Edited 9-Dec-12 18:31pm
Krunal Rohit at 9-Dec-12 23:09pm
Provide your code, so that we can see whats happening in your app...
Rickin Kane at 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
0 Sergey Alexandrovich Kryukov 480
1 Gihan Liyanage 235
2 Bhavik_Patel 170
3 PhilLenoir 155
4 OriginalGriff 154
0 Sergey Alexandrovich Kryukov 8,653
1 OriginalGriff 7,132
2 CPallini 2,598
3 Richard MacCutchan 2,060
4 Abhinav S 1,808

Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 23 Feb 2013
Copyright © CodeProject, 1999-2014
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