Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand

Posts Tagged ‘alert’

Search Alerts

Posted by JP on July 24, 2012

In this article we can examine the Search Alerts feature of SharePoint.

What is Search Alert?

Search Alert is a feature by which the user query is saved. Later when a content matches the query, the user is informed about the content through email or RSS feed. The major search providers online have this feature.

SharePoint 2010 also provides the Search Alert feature.

Experimenting with Alert

You can try with the Search Alert feature.

1. Open the default site and use the search term which does not exist. For eg: Art of Living. Clearly your search result will be none as shown below.

clip_image002

2. Now click on the Email button which is highlighted above. You will get the following screen

clip_image004

Enter the details and click the OK button. Your Search Alert is ready.

For testing the alert, create a list content with the Alert Keyword. You will be getting email notification for the same as daily summary / weekly summary based on the option you have selected. We can also add RSS feeds as an alternative for Email.

References

http://www.bainsight.com/blog-archive/Pages/5-12-2011.aspx

Summary

In this article we have explored the Search Alerts feature of SharePoint.

Advertisements

Posted in SharePoint | Tagged: , , , | Leave a Comment »

For Beginners: In ASP.NET how to show a Javascript Alert message box?

Posted by JP on December 2, 2010

I have seen frequently that beginners in ASP.NET try to use Windows Forms MessageBox and fails.

I would like to say that MessageBox class is meant for Windows Forms Application and not ASP.NET Web applications.

In ASP.NET applications, you have to:

Use either a page to show the message

or

Use javascript alert function to show the message (the example is given below)

Example

Create a new web application using File > New Project > Web > ASP.NET Web Application

image

In the solution Explorer, right click on the Default.aspx and use View Code command.

Replace the Page_Load method code as below:

protected void Page_Load(object sender, EventArgs e)

{

    string message = "Test Message Box in ASP.NET";

    string script = "<script language=’javascript’>alert(‘" + message + "’);</script>";

    ClientScript.RegisterStartupScript(GetType(), "key", script);

}

Now you can execute the application.

Output

On loading the page you will see the following message box (if not enable javascript in your browser)

image

Posted in C# | Tagged: , , | Leave a Comment »