Bryant Likes's Blog

It's all about WebData

Recent Posts

Tags

News


  • Windows Live Alerts
    View Bryant Likes's profile on LinkedIn

    Me

    Get Microsoft Silverlight
    by clicking "Install Microsoft Silverlight" you accept the
    Silverlight license agreement


    The posts on this weblog are provided "as is" with no warranties and confer no rights. The opinions expressed herin are the personal opinions of the individual authors and do not represent the views of Avanade in any way.

Community

Email Notifications

Archives

Extending SharePoint using Global.asax - Who's Online

In my last article on this subject I explained how to add some basic page tracking to SharePoint. In this article I will expand on this by adding a Who's Online WebPart. This WebPart will show who is currently online.

First we need to create the ActiveUsers table which will keep track of the users that are currently online. We also need to modify the Hit_Add stored procedure to update the ActiveUsers table. Finally, we need to create a very simple stored procedure to get the list of users that are currently online. Below is the SQL script for these tasks.

create table ActiveUsers (
 UserID varchar(50) not null,
 LastHit datetime not null,
 LastUrl varchar(256) not null,
 constraint PK_ActiveSessions primary key clustered
 (
  UserID
 )
)
go
alter proc Hit_Add
(
 @Url varchar(256),
 @UserID varchar(50)
)
as
 -- this needs to be changed to the userID
 -- that your site runs as
 if (@UserID = 'DOMAIN\PROCESSID') return
 insert into Hits values
 (@Url, @UserID, getdate())
 delete ActiveUsers
 where UserID = @UserID
  or datediff(mi, LastHit, getdate()) > 30 -- minutes
 insert into ActiveUsers values
 (@UserID, getdate(), @Url)
go
create proc ActiveUsers_Get
as
 select UserID, LastHit, LastUrl, datediff(mi, LastHit, getdate()) Age
 from ActiveUsers

go

That is all there is to tracking the users that are currently online. You can adjust the time by changing the minutes in the delete statement. Next we need to create our WebPart. The WebPart I'm going to show you is somewhat simple and just displays a list of users. You can easily add more functionality to it if you want. Below is the code for the Who's Online WebPart.

using System;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml.Serialization;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.WebPartPages;
namespace Bml.Stats.WebParts
{
 /// 
 /// Description for ActiveUsers.
 /// 
 [ToolboxData("<{0}:ActiveUsers runat=server>"),
  XmlRoot(Namespace="SPSStats")]
 public class ActiveUsers : Microsoft.SharePoint.WebPartPages.WebPart
 {
  
  protected override void RenderWebPart(HtmlTextWriter output)
  {
   output.AddAttribute(HtmlTextWriterAttribute.Width, "100%");
   output.AddAttribute(HtmlTextWriterAttribute.Cellpadding, "0");
   output.AddAttribute(HtmlTextWriterAttribute.Cellspacing, "0");
   output.RenderBeginTag(HtmlTextWriterTag.Table);
   output.RenderBeginTag(HtmlTextWriterTag.Tr);
   output.AddAttribute(HtmlTextWriterAttribute.Width, "100%");
   output.AddAttribute(HtmlTextWriterAttribute.Valign, "top");
   output.RenderBeginTag(HtmlTextWriterTag.Td);
   output.AddAttribute(HtmlTextWriterAttribute.Class, "ms-ls");
   output.RenderBeginTag(HtmlTextWriterTag.Table);
   AddUserRows(output);
   output.RenderEndTag(); // table
   output.RenderEndTag(); // td
   output.RenderEndTag(); // tr
   output.RenderEndTag(); // table
  }
  
  private void AddUserRows(HtmlTextWriter output)
  {
   try
   {
    SPWeb web = SPControl.GetContextWeb(Context);
    using (SqlConnection cn = new SqlConnection("[Your Connection]"))
    {
     cn.Open();
   
     SqlCommand cmd = new SqlCommand();
     cmd.Connection = cn;
     cmd.CommandText = "ActiveUsers_Get";
     cmd.CommandType = CommandType.StoredProcedure;
     
     SqlDataReader dr = cmd.ExecuteReader(CommandBehavior.CloseConnection);
     while (dr.Read())
     {
      string userName = (string)dr["UserID"];
      
      output.RenderBeginTag(HtmlTextWriterTag.Tr);
      output.AddAttribute(HtmlTextWriterAttribute.Class, "ms-lsmin ms-vb");
      output.AddAttribute(HtmlTextWriterAttribute.Valign, "top");
      output.RenderBeginTag(HtmlTextWriterTag.Td);
      output.AddAttribute(HtmlTextWriterAttribute.Align, "absbottom");
      output.AddAttribute(HtmlTextWriterAttribute.Src, "/_layouts/images/perusr.gif");
      output.RenderBeginTag(HtmlTextWriterTag.Img);
      output.RenderEndTag(); // img
      output.Write(" {0}", SPUtility.GetFullNameFromLogin(web.Site, userName));
      output.RenderEndTag(); // td
      output.RenderEndTag(); // tr
     }
     
     dr.Close();
     cn.Close();
    }
   }
   catch (Exception exc)
   {
    output.Write(exc.Message);
   }
  }
 }
}

Once you've compiled the WebPart and added it to the server you will need to make one change to your web.config file before the part will work. You will need to change the trust level from WSS_Minimal to WSS_Medium. This will allow the part to use the SQL Connection which isn't allowed in the minimal trust scheme. After you add it to a page you should see something very much like the following image.

As I wrote this WebPart I thought of a lot of other uses for the hits data such as a Favorites list (based on urls with the most hits), recently viewed pages, and others. There seems to be a lot you can do once you start collecting this data.

Posted: 05-13-2004 2:28 PM by bryantlikes | with 46 comment(s)
Filed under:

Comments

TrackBack said:

# May 13, 2004 2:31 PM

TrackBack said:

# July 7, 2004 3:01 AM

TrackBack said:

# July 7, 2004 3:03 AM

bryantlikes said:

Thank you, in advance, and I know this is not necessarily the appropriate place for this question, but can you point me to a chat room that would tell me how to set up Visual Basic 6.0 so it sees objects on my SharePoint server?

Thanks,

Ken
kstephan@csc.com
# July 7, 2004 12:31 PM

bryantlikes said:

When I do this, I get the following error message:

Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection

Any idea?
# July 21, 2004 10:38 AM

bryantlikes said:

You can't use a trusted connection to connect to the database. So you need to change your connection string to something like this:

http://blogs.sqlxml.org/bryantlikes/articles/583.aspx#675
# July 21, 2004 11:24 AM

bryantlikes said:

I've tried changing my connect string. I have searched far and wide through the net for the answer to this.

My connectstring is this:
strConn = "Server=MySERVER;Database=MYDEV;integrated security=SSPI";

SqlConnection cn = new SqlConnection(strConn);

cn.Open();

I have also tried:
strConn = "server=MYSERVER;Trusted_Connection=True;Database=MYDEV;uid=me;password=********"

Neither of them work. they both work from a standard winform.
# July 22, 2004 12:04 PM

bryantlikes said:

You can't use "Trusted_Connection=true". See the example connection string that I posted here:

http://blogs.sqlxml.org/bryantlikes/articles/583.aspx#675
# July 26, 2004 7:24 AM

bryantlikes said:

Why can't you use Trusted Connection?
# August 3, 2004 8:17 AM

bryantlikes said:

Yes!? Why can't we use Trusted Connection? My company's administrator is allways boring me with this issue...
# August 3, 2004 9:41 AM

bryantlikes said:

You can't use it here unless the user id that executes the global.asax has access to the database.
# August 9, 2004 12:36 PM

bryantlikes said:

If the Account that your App Pool is configured to run under (in W2k3) can access the SQL Server then you can use Trusted_Connection=true.. otherwise, you will have to specify the userid and password in the connection string without the trusted_connection part.
# October 5, 2004 9:19 AM

TrackBack said:

Found these on a SharePoint blog.&nbsp; There appears to be lots of useful web parts here as well as...
# August 17, 2005 8:08 AM

TrackBack said:

SharePoint Web Parts (free)

ActiveX Scripting Web Part (Simon Mourier)
Alert Manager, Subweb Viewer...
# October 14, 2005 3:13 PM

bryantlikes said:

When I upload the .dwp file and add it to a page I get the control is not registered as safe error
# December 18, 2005 7:26 AM

TrackBack said:

# January 27, 2006 2:28 PM

TrackBack said:

# February 14, 2006 2:01 AM

TrackBack said:

# February 14, 2006 2:04 AM

Luis Du Solier G said:

Really nice one!
# April 20, 2006 1:25 PM

wssproject said:

I'd like to know where i need to create the global.asax
and also where i create table??
# May 30, 2006 1:00 AM

Niranjan Ameta said:

that is Pretty one
# August 4, 2006 4:30 AM

Levan Kiladze said:

Hello,

Excuse me, I think here is small error:

insert into Hits values..

Perhaps, there should be insert into ActiveUsers values...

# October 23, 2006 12:36 AM

John said:

You can use a trusted connection in WebParts _if_ you implement impersonation.  NTLM v2 will hand off your credentials to Sharepoint, but NTLM will then not hand off your credentials to SQL.  I had this problem because SQL Server Analysis Services 2005 requires a trusted connection.  The two solutions are to 1.)  Use Basic authentication which will pass off your credentials again.  Unless you're running a secure site this probably isn't a great option.  The other is to impersonate via code instead of the web.config a proxy Active Directory user that has access to the account for the sections that access the database.  This will allow you to establish the connection.  Here's a link that explains more:

http://blakepell.spaces.live.com/blog/cns!808E32F75B9CF425!117.entry

# October 24, 2006 5:27 PM

John said:

Well, the link got cut off, copy and paste it. ;)
# October 24, 2006 5:28 PM

Cam said:

Can someone post a link to a compiled version?

# November 17, 2006 9:16 AM

Joydeep Banerjee said:

How does the ActiveUser table gets populated?

# April 26, 2007 1:33 AM

Josh Dunigan said:

Is there a compiled version already available for download?  Please email me at josh.dunigan@thetravelauthority.com if so.  Thanks.

# June 27, 2007 9:21 AM

jtrober said:

I am a bit new at sharepoint in general, so couple questions. I have a SBS 2003 server, I have sharepoing 2007 installed along side the 2003 site.

How would i go about creating that table? and What do I need to compile the web part?

Is there a compiled version out there I can download? Please email me if there is, jtrober@hotmail.com

# April 1, 2008 6:40 AM

Gaurav Saxena said:

When iam using this code, iam not getting anything(data value) in webpart. The webpart just displays the title and rest is just blank.

I have used SQL Authentication, and just changed the namespace and class name to 'WhoIsOnline'. Rest everything is same.

Any clue why this webpart is blank...:(

# May 5, 2008 9:47 PM

Gaurav Saxena said:

How to integrate communicator functionality with this application.

# May 12, 2008 9:17 PM

TheSniper said:

plss...is there a compiled version of this!

really want this "WhosOnline" on our Sharepoint site, with the Chat box already on it.

if there is, pls email the compiled version to:

dasniperz at gmail dot com

thanks!

# July 29, 2008 10:32 AM

Propecia. said:

Side effects from taking propecia. Propecia. Propecia generic. Buy propecia. Fertility restored after ending propecia.

# July 30, 2008 6:37 AM

David said:

Do I need to have completed the instructions on your previous post in order to get this to work?

# September 10, 2008 1:49 PM

rehmo said:

This one is great but i used the mysql and is there any compiled version please post link here.

Thank you in advance.

# September 16, 2008 7:16 PM

straight_up said:

Geez.  All the people asking for the precompiled version...  Could y'all be any more lazy?  

# September 18, 2008 11:46 AM

dave said:

It is more of not knowing how to code the informtation to work than it is being lazy. I, for instance, am the Network admin and have been given the task of Administering our SharePoint sites and donot really have any experience other than installing SQL and Sharepoint to be able to create the sites. So again, the compile version would benefit many who are not involved in coding.

Thanks

# October 9, 2008 9:11 AM

novice said:

I'm new to Sharepoint and am clueless about what tools are needed to even start compiling this.  A pre-compiled webpart would be nice but I'm willing to learn the process of how to compile this if I know what tools/software are required.

Can I use Visual Web Developer 2008 Express to accomplish this or do I need Visual Studio (2005 or 2008)?  I don't even know what flavor language the above code is.  VB/C#?  And about Global.asax, that looks like its using C# script?

Any pointers would be appreciated.  If I can get this compiled and working, I'll be more than glad to share it.

Regards,

kinoppyus@yahoo.com

# March 6, 2009 11:16 AM

Chandrika said:

Hi,

I have created thw hos is online webpart,as is is given here.

it is working in Intranet site but not working in the internet site.It shows an exception called "could nor find Stored Procedure ActiveUsers_Get".

I have created the tables in the Contyent data base of the sharepoint site.

Please helpp me to solve this issue.

Its very urgent.

# April 14, 2009 11:34 PM

Pharma861 said:

Very nice site! <a href="ypxoiea.com/.../1.html">cheap viagra</a>

# June 2, 2009 3:49 PM

Pharmd793 said:

Very nice site!  [url=ypxoiea.com/.../2.html]cheap cialis[/url]

# June 2, 2009 3:49 PM

Pharmk489 said:

Very nice site! cheap cialis ypxoiea.com/.../4.html

# June 2, 2009 3:49 PM

Pharmc505 said:

Very nice site!

# June 2, 2009 3:50 PM

ujwal said:

Where is the HIT table in sharepoint-2007 sqlserver 2005

# June 4, 2009 4:02 AM

virusswb said:

hi,i am come from china,i am chinese,i have a little english.

recently,i have one question.

i have one requirement, when i have no operation on sharepoint site after 20 min, i want to logout sharepoint auto, how can i do this, thank you for your apply.

good night.

# June 5, 2009 8:52 AM

HeeMiedgE said:

Good day

<a href=http://www.internetmosque.net>audio English only Quran for the first time on the internet </a>

In Islam, denial of human rights is OK because:

Islam is against pure democracy

Islam tolerates slavery

The misconception does not follow from the reasons given, and the reasons ignore a great deal of information.

As stated earlier, Islam is a complete way of life. Given this, it is not surprising that the Creator is concerned with the method which we choose to govern ourselves. The preeminent rule which the Islamic state must observe is stated in the Qur'an (translation follows):

<>:59] O you who believe! Obey Allah, and obey the Messenger, and those charged with authority among you. If you differ in anything among yourselves, refer it to Allah and His Messenger, if you do believe in Allah and the Last Day; That is best, and most suitable for final determination.

From this verse, it is clear that the state's obligation of obedience to the Creator is as important as the obedience of the individual. Hence, the Islamic state must derive its law from the Qur'an and Sunnah. This principle excludes certain choices from the Islamic state's options for political and economic systems, such as a pure democracy, unrestricted capitalism, communism, socialism, etc. For example, a pure democracy places the people above the Qur'an and Sunnah, and this is disobedience to the Creator. However, the best alternative to a pure democracy is a democracy that implements and enforces the Shari'ah (Islamic Law).

The Creator also states in the Qur'an (translated):

<>2:36-38] So whatever thing you are given, that is only a provision of this world's life, and what is with Allah is better and more lasting for those who believe and rely on their Lord, and those who shun the great sins and indecencies, and whenever they are angry they forgive, and those who respond to their Lord and keep up prayer, and their rule is to take counsel among themselves, and who spend out of what We have given them.

Allah orders us in this verse to conduct our matters by taking counsel among ourselves, or by consulting each other. This is the methodology of the Islamic state, to consult one another, but to always keep the Qur'an and Sunnah paramount. Any law which contradicts the Qur'an or Sunnah is unlawful. This broad principle of consultation is certainly wide enough to encompass a form of government where all are heard - in fact, encouraged to be heard. The early Islamic states were of this form. The petty governments of many `Muslim countries' today do not apply this principle and in fact commit many crimes against the people.

As for slavery, Islam is unique among the `religions' in its close attention to the peaceful removal of this practice. Before the advent of Islam, slavery was widespread all over the world. The Messenger of Islam taught us that freeing slaves was a great deed in the sight of Allah. From the Sunnah, specifically in the study of the Sunnah called Sahih Bukhari, we find:

<>:46:693] Narrated Abu Huraira: The Prophet said, "Whoever frees a Muslim slave, Allah will save all the parts of his body from the (Hell) Fire as he has freed the body-parts of the slave." Said bin Marjana said that he narrated that Hadith to `Ali bin Al-Husain and he freed his slave for whom `Abdullah bin Ja'far had offered him ten thousand Dirhams or one-thousand Dinars.

Also from the Sunnah, specifically in the study of the Sunnah called Malik's Muwatta, we find:

<>8:9:15] Narrated Aisha Ummul Mu'minin: The Messenger of Allah, may Allah bless him and grant him peace, was asked what was the most excellent kind of slave to free. The Messenger of Allah, may Allah bless him and grant him peace, answered, "The most expensive and the most valuable to his master."

The Creator has also made it easy for slaves to gain their freedom. From the Sunnah, specifically in the study of the Sunnah called Sahih Bukhari, we find:

<>:46:704] Narrated Abu Huraira: The Prophet said, "Whoever frees his portion of a common slave should free the slave completely by paying the rest of his price from his money if he has enough money; otherwise the price of the slave is to be estimated and the slave is to be helped to work without hardship till he pays the rest of his price."

The condition of slavery is very different in Islam than the harsh conditions imposed by non-Muslims or disobedient Muslims. From the Sunnah, specifically in the study of the Sunnah called Sunan Abu-Dawud, we find:

<>1:4957] Narrated AbuHurayrah: The Prophet (saw) said: None of you must say: "My slave" (abdi) and "My slave-woman" (amati), and a slave must not say: "My lord" (rabbi or rabbati). The master (of a slave) should say: "My young man" (fataya) and "My young woman" (fatati), and a slave should say "My master" (sayyidi) and "My mistress" (sayyidati), for you are all (Allah's) slave and the Lord is Allah, Most High.

Also from the Sunnah, specifically in the study of the Sunnah called Sahih Bukhari, we find:

<>:46:721] Narrated Al-Ma'rur bin Suwaid: I saw Abu Dhar Al-Ghifari wearing a cloak, and his slave, too, was wearing a cloak. We asked him about that (i.e. how both were wearing similar cloaks). He replied, "Once I abused a man and he complained of me to the Prophet. The Prophet asked me, `Did you abuse him by slighting his mother?' He added, `Your slaves are your brethren upon whom Allah has given you authority. So, if one has one's brethren under one's control, one should feed them with the like of what one eats and clothe them with the like of what one wears. You should not overburden them with what they cannot bear, and if you do so, help them (in their hard job)."

As a result of the teachings of Islam, slavery was almost completely eradicated from many areas of the Muslim world, peacefully and without bloodshed.

For more details <a href=http://www.internetmosque.net>click her</a>

# June 14, 2009 1:42 PM

HeeMiedgE said:

Hi!

<a href=http://www.internetmosque.net >Click Here</a>

Who Saves ?

Dear Brothers and Sisters,

Some Christians have told me that Jesus has turned their life around, in that they were once lost, now they are found. In that they were drunkards, drug users, abusers, and that Jesus has made them change their wicked ways.

That is Wonderful, this is similar to Prophet Muhammad ending the evil practices of burying newborn girls alive besides other vices for many from the past to the present.

For the Christians who Strive to be like Christ and try to live a righteous life, that is great. Though there is another group of Christians, the _kind_ who use Jesus as a scapegoat, an excuse to do evil. The Christians who *assume* Jesus bore all of their sins and that they are free to sin <indiscriminately>.

Those Christians have obviously not reflected upon Scripture. Jesus himself repeatedly states that we are accountable for our own actions.

Then there are the third type of Christians, the Christians who know Jesus, though their impulses to be unrighteous are too strong, and they submit to the temptations to drink alcohol, use drugs, and commit adultery, and even worse.

For everyone who is confused about the Trinity and who want to achieve a higher level of Spirituality, this is an invitation for you to know Allah , who is Allah ?

In Aramayic, the original language of Christ, Jesus called God "Alayho"

Moses in Hebrew called God "Elih"

Muhammad in Arabic called God "Allah"

Allah is the God of Abraham, our Creator, our Resurrector.

Allah is the Arabic name for God as in the Christian Arabic Bible, verses (Genesis 1:1 , John 3:16 , Luke 1:30 , Luke 3:38 , Matthew 19:17 .....) , the name "Allah" is used to mean God.

I am not asking you to switch Gods , I am asking you to know our God more , Love our God more , Respect our God more .

Not split and fractionalize our God up into three , or make various contradictory statues of God.

Allah can give you the added strength and the Faith you need to be on the Right Path, how do you know Allah ? We know, hear and reflect on Allah through the Holy Quran and through prayers.

"And they worship besides Allah things that hurt them not, nor profit them, and they say: "These are our intercessors with Allah". Say: " Do you inform Allah of that which He knows not in the heavens and on the earth"? Glorified and Exalted is He above all that which they associate as partners with Him." (Holy Quran 10:18)

In my experiences, Allah is Greater in saving us from the addictions of this world, and helps to heal the past wounds, Through giving us additional Hope and Faith, if you love Jesus, that is great, you can continue to Love Jesus, but worship the Creator of Jesus, Allah .

Allah gives us bountiful knowledge and spiritual guidance in the Holy Quran, the Final Testament.

In the Quran, you can know God directly without any intercessors or middle men filtering from you the power, strength and connection with God.

God loves you, God is the most forgiving and most merciful. Christianity claims God did not forgive the actions of Adam for millenniums , while Islam teaches Adam was forgiven the same moment Adam repented, and that death is a natural cycle , not a prolonged curse from our Loving God .

Believe in a Loving God of Abraham , one who does not need blood to forgive , one who Judges each individual fairly.

Believe our God is All Powerful , who sees and knows all of our Actions.

The tithing taking Church has conceived the notion that Jesus is the only Savior, but Jesus himself, the Servant of Allah, displayed with his words and actions for those who seek knowledge, that he was a sign from the true Savior, Allah.

Jesus *warns* of entire nations falling into Hell (Mt 23:33-36), Allah *saves* entire nations from Hell. (Holy Qur'an 12:110)

Allah Protects His apostles,

"So Allah protected him from the evil (consequences) of what they planned" (Holy Koran 40:45)

" So naught was the answer of (Abraham's) people except that they said: "Slay him or burn him." But Allah did save him from the Fire. Verily in this are Signs for people who believe." (Holy Koran 29:24)

Jesus gives No protection to his apostles; Jesus afraid people may discover him says;

"He <Jesus> said unto them <the>disciples], But whom say ye that I am? Peter answering said, The Christ of God. And he straightly charged them, and commanded them to tell no man that thing." (Luke 9:20 and 21)

Jesus, to even further clarify for us that he is not our Savior, infront of the crowd, asked Allah to Save him

"And he <Jesus> said, "Abba, Father, all things are possible to thee; remove this cup from me; yet not what I will, but what thou wilt." ("Mark 14:36)

Jesus asked our Creator to be his Savior from death, symbolized as "this cup" in Mark 14, undisputedly revealing that Jesus can not be our Savior if he himself prayed for a Savior.

even Jesus's disciples knew Jesus does not protect or save, when mere men (soldiers) arrested Jesus, the disciples decided to abandon Jesus and not seek protection in Jesus;

" Then all the disciples forsook him, and fled." (Matthew 26:56)

While Prophet Muhammad (descendant of Prophet Abraham) knows Allah saves;

Muhammad was sitting under a tree when a pagan with a sword approached him to kill him, the pagan asked 'who will protect you', Muhammad replied "Allah", at this moment, the pagan lunged forward at Prophet Muhammad tripped on a stump and dropped the sword which Muhammad picked up and gave it back to the pagan and asked the pagan, "who would have protected you", the pagan replied 'no, one', from that day on, the pagan became a Muslim and one of Prophet Muhammad's closest companions. (Volume 5, Book 59, Number 460: Narrated Jabir bin 'Abdullah)

To Save is also to preserve , the God of Abraham has preserved the final and completed message to us , the Holy Quran . The Holy Quran has been kept the same word for word for 1,400 years , while each month a different Bible is produced .

Finally we come to Salvation in the After life, above we have addressed Salvation on earth, now we will focus on who will save us in the next world.

Whether or not you agree that Allah is our Savior, this will perhaps explain why we Muslims take Allah as our Savior rather than Jesus, so at the very least you understand the thinking behind the actions of the second largest religion in the world and the fastest growing religion in the world "Islam"

One reason we believe Allah is our Savior and not Jesus, is because Jesus throughout the entire New Testament , never stated "I am your savior" or "I will save you from Hell". While on the other hand, Allah throughout the Old Testament and the Final Testament (The Holy Quran), stated we will be saved from Hell through the Grace of Allah.

In fact, Jesus even denied being our Savior;

NEW TESTAMENT

" Not every one who says to me, 'Lord, Lord,' shall enter

the kingdom of heaven, but he who does the will of my Father

who is in heaven . " Matthew 7:21

"And Jesus said to him, "Why do you call me good? No one is good but God alone." <Mr>10:18]

" I have come to cast a fire on the earth; and what will I

if already it has been kindled? " Luke 12:49

If Jesus was our Savior, then at the very least, Jesus would know when the day of resurrection was, yet Jesus plainly denies this;

"But of that day and hour no one knows, not even the angels in

heaven, nor the Son, but only the Father." <Mr>13:32]

While the Creator of Jesus, the God of Abraham in the Old Testament and the Quran offers us absolute Salvation:

OLD TESTAMENT

"For I am the Lord, your God, the Holy One of Israel, your SAVIOR....It is I, the Lord; there is NO SAVIOR BUT ME..." (Old Testament Isaiah 43:3 &11)

"You shall know that I, the Lord am your SAVIOR, your REDEEMER, the mighty one of Jacob." (Old Testament Isaiah 60:16)

FINAL TESTAMENT (HOLY QURAN)

"But Allah will deliver the righteous to their place of salvation: no evil shall touch them, nor shall they grieve." (Holy Quran 39:61)

"For those who believe and do righteous deeds, will be Gardens; beneath which rivers flow: That is the great Salvation" (Holy Quran 85:11)

"As for those who repent, reform, and proclaim, I redeem them. I am the Redeemer, Most Merciful." (Holy Quran 2:160.15)

Now you have Allah who states He will save you, and you have Jesus who states he will not save you, who would you take as a Savior ?

Allah Saves, through my daily reading and searching through the Gospel, not once have I found a verse where Jesus states he will save us from the Fire, while it is abundant in the Holy Quran that Allah has the Power to save us from Hell:

"And hold fast, All together, by the Rope Which Allah (stretches out For you), and be not divided among yourselves; and remember with gratitude Allah's favour on you; for ye were enemies and He joined your hearts in love, so that by His Grace, Ye became brethren; and ye were on the brink of the Pit of Fire, and He saved you from it. Thus doth Allah make His Signs clear to you: That ye may be guided." Translation of the Holy Qur'an 3:103

This is one of the reasons that Muslims declare Allah is our Savior, study Islam with an open mind and heart, learn what Allah can do for your soul.

"They say: "Become Jews or Christians if ye would be guided (To salvation)." Say thou: "Nay! (I would rather) the Religion of Abraham the True, and he joined not gods with Allah." (Holy Quran 2:135).

Peace and Blessings,

For more details <a href=http://www.internetmosque.net >Click Here</a>

# June 24, 2009 1:45 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)