Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
Hi,
 
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
krumia11.8K
v2
Comments
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
good
Please Sign up or sign in to vote.

Solution 1

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

Solution 2

Step 1:
Default.aspx
 
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
    <asp:Label ID="Label1" runat="server">60</asp:Label>
    <asp:Timer ID="Timer1" runat="server" Interval="1000"
        ontick="Timer1_Tick">
    </asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
Default.aspx.cs
 
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<
  Permalink  
v2

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,588
1 OriginalGriff 528
2 Manas Bhardwaj 383
3 Damith Weerasinghe 330
4 Tadit Dash 315
0 Sergey Alexandrovich Kryukov 9,575
1 OriginalGriff 6,006
2 Peter Leow 4,500
3 Maciej Los 3,540
4 Abhinav S 3,513


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 23 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid