Sponsored Links

How to detect a mobile browser in ASP.NET

I’ve been having this issue with mobile development for quite sometime that I couldn’t get the mobile browser accurately by just using the Request.Browser.isMobileDevice property and I’ve found this piece of code here

Looks pretty useful.

public static bool isMobileBrowser()
{
//GETS THE CURRENT USER CONTEXT
HttpContext context = HttpContext.Current;

//FIRST TRY BUILT IN ASP.NT CHECK
if (context.Request.Browser.IsMobileDevice)
{
return true;
}
//THEN TRY CHECKING FOR [...]

A Look at the Propaganda against Zaid Hamid

I’ve been following this controversy for some days now. Please listen to Zaid’s response in the video mentioned. I’ve been listening to Zaid Hamid for quite some time as well and honestly, I haven’t found a single thing against the Quran & Sunnah of the Holy Prophet (SAW). The answer he’s given is quite comprehensive [...]

How to use an OR in a query in EntitySpaces?

It’s simple, yet not very obvious. All you have to do is to change the normal behavior of the commas you use in the Where function to act as an OR. You’d do it like this:-

ObjES.Query.es.DefaultConjunction = esConjunction.Or;
ObjES.Query.Where(<<Go ahead with using the commas that usually defaults to an AND conjunction>>);

oh and I almost forgot to [...]