Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 896545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:44:48+00:00 2026-05-15T14:44:48+00:00

I googled for twitter like alert but all the articles were in php… Is

  • 0

I googled for twitter like alert but all the articles were in php… Is there an asp.net mvc one out there? Here is the http://briancray.com/2009/05/06/twitter-style-alert-jquery-cs-php/ sample in php..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T14:44:49+00:00Added an answer on May 15, 2026 at 2:44 pm

    Most of it is CSS and jQuery so no ASP.NET MVC specific.

    Model:

    public class MyModel
    {
        public string Message { get; set; }
    }
    

    Controller:

    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View(new MyModel());
        }
    
        [HttpPost]
        public ActionResult Index(MyModel model)
        {
            return View(model);
        }
    }
    

    View:

    <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AppName.Models.MyModel>" %>
    
    <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
        <style type="text/css">
        #alert
        {
            overflow: hidden;
            z-index: 999;
            width: 100%;
            text-align: center;
            position: absolute;
            top: 0;
            left: 0;
            background-color: #fff;
            height: 0;
            color: #000;
            font: 20px/40px arial, sans-serif;
            opacity: .9;
        }
        </style>
    
        <% if (!string.IsNullOrEmpty(Model.Message)) { %>
            <div id="alert"><%: Model.Message %></div>
        <% } %>
    
        <% using (Html.BeginForm()) { %>
            <%: Html.EditorForModel() %>
            <input type="submit" value="Alert me!" />
        <% } %>
    
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
        <script type="text/javascript">
            $(function () {
                var $alert = $('#alert');
                if ($alert.length) {
                    var alerttimer = window.setTimeout(function () {
                        $alert.trigger('click');
                    }, 3000);
                    $alert.animate({ height: $alert.css('line-height') || '50px' }, 200).click(function () {
                        window.clearTimeout(alerttimer);
                        $alert.animate({ height: '0' }, 200);
                    });
                }
            });    
        </script>
    
    
    </asp:Content>
    

    Of course this is only a sample where markup, style and scripts are mixed in the same page. In a real world application, CSS and scripts should be externalized.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using django and django-socialauth for auth with google/fb/twitter but there is a
I've made a twitter-like web app. Users can follow one another when viewing eachother's
Some profiles on Google Plus are verified. ( Just like twitter ) But unlike
I need a Twitter widget that isn't chunky and disgusting like the official one
         I was looking at some APIs like twitter, google APIs. From what I understand
Googled everything, but can't find solution for my problem. When i'm trying to deploy
we're developing one service to be integrated with various social networks and would like
I want to integrate facebook(like),twitter,google plus(bubble button) into my android app, which is developed
If I have a general url (not restricted to twitter or google) like this:
Since sites like The Official Google Blog , Twitter and Pinterest are loading content

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.