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

  • Home
  • SEARCH
  • 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 4012984
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:18:54+00:00 2026-05-20T09:18:54+00:00

Hopefully this is an easy one… I need to create an Alert Me button

  • 0

Hopefully this is an easy one…

I need to create an “Alert Me” button on my custom SharePoint masterpage which when clicked, will direct the user to a pre-populated “New Alert” page for that particular site/list. The OOTB blog site template already features this exact same button at the bottom of the default.aspx page, it’s markup is as follows:

http://server/currentsite/_layouts/SubNew.aspx?List={00000000-0000-0000-0000-000000000000}&Source=http://server/currentsite/default.aspx

Does anyone know if there is an OOTB control or web part that I can just drop into my page layout to reproduce this?

Obviously I could create the button dynamically in the codebehind of my page layout if need be, but I’d be surprised if there isn’t a pre-written control already.

Thanks in advance…

  • 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-20T09:18:55+00:00Added an answer on May 20, 2026 at 9:18 am

    For those insterested, I ended up rolling my own usercontrol for this. Code is as follows:

    HTML


    <asp:HyperLink ID="AlertHyperLink" runat="server"><img alt="Alert me" src="/_layouts/images/menualert.gif" title="Alert me to any changes that get made to this site." /></asp:HyperLink>
    

    C#


    protected void Page_PreRender(object sender, EventArgs e)
    {
        // If the current page is not associated with a list, then hide the list-sensitive tools.
        if (SPContext.Current.List != null)
        {
            this.AlertHyperLink.NavigateUrl = string.Format(
                "{0}/_layouts/SubNew.aspx?List={{{1}}}&Source={2}",
                SPContext.Current.Web.Url,
                SPContext.Current.List.ID.ToString(),
                this.Server.UrlEncode(this.Page.Request.Url.ToString()));
        }
        else
        {
            this.AlertHyperLink.Visible = false;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This will hopefully be an easy one. I have an F# project (latest F#
Hopefully this will be an easy one to answer. I created a class in
Another easy one hopefully. Let's say I have a collection like this: List<DateTime> allDates;
Hopefully, this will be an easy answer for someone with Javascript time behind them...
Hopefully this is an easy one. Problem: Django QueryDict wraps values in lists. This:
hopefully this is an easy one. I'm coding in objective-c and i'm wondering if
Hopefully this is easy to explain, but I have a lookup transformation in one
This is hopefully a quick/easy one. I know a way to work around this
Hopefully this is a quick one, and Easy if you know how... I'm writing
Hopefully an easy one, I have created a Custom Repeater control that extends System.Web.UI.WebControls.Repeater.

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.