I ordered food from this place yesterday. The delivery was on time and the delivery boy was gentle at his work. I had their veg Cheese grilled sandwich.
The burger was very huge and you can't eat anything more after eating this burger. It tasted like a good desi burger with soft buns. It was very filling.
Thursday, 31 August 2017
Sunday, 9 October 2016
Read html from a Url
To read html from a url, you have to make HttpWebRequest.
First make HttpWebRequest and add url in it.
HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create("http://www.yourdomain.com/filename-1.html");
Now Specify timeout and UserAgent
httpRequest.Timeout = 10000; // 10 secs httpRequest.UserAgent = "Code Sample Web Client";
Now get a response in HttpWebResponse and from HttpWebResponse you will get your html.
HttpWebResponse webResponse = (HttpWebResponse)httpRequest.GetResponse(); StreamReader responseStream = new StreamReader(webResponse.GetResponseStream()); string FileMatter = responseStream.ReadToEnd();
In FileMatter variable you will get all html from given url.
Code
HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create("http://www.yourdomain.com/filename-1.html"); httpRequest.Timeout = 10000; // 10 secs httpRequest.UserAgent = "Code Sample Web Client"; HttpWebResponse webResponse = (HttpWebResponse)httpRequest.GetResponse(); StreamReader responseStream = new StreamReader(webResponse.GetResponseStream()); string FileMatter = responseStream.ReadToEnd();
Thursday, 6 October 2016
Keyword not supported: initial catalog
Introduction
In this In this article I will explain cause and resolution of Keyword not supported: initial catalog error
Cause
This error occurs when we are implement asp.net membership and error occurs in Global.asax file at the following line:
Resolution
To resolve this error you need check your connectionString and add providername property in your connectionString.
Suppose you are trying to connect with Sql Server so you have to add providerName="System.Data.SqlClient"
Example
In this In this article I will explain cause and resolution of Keyword not supported: initial catalog error
Cause
This error occurs when we are implement asp.net membership and error occurs in Global.asax file at the following line:
WebSecurity.InitializeDatabaseConnection("Action", "Member", "MemberId", "Email", autoCreateTables:= True)This error occurs when we have not specified provider name in connectionString.
Resolution
To resolve this error you need check your connectionString and add providername property in your connectionString.
Suppose you are trying to connect with Sql Server so you have to add providerName="System.Data.SqlClient"
Example
<connectionStrings> <add name="con" connectionString="Data Source=ServerName;Initial Catalog=master;Integrated Security=SSPI;" providerName="System.Data.SqlClient"></add> </connectionStrings>
Labels:
Asp.net
,
Asp.Net MVC
,
C#
Tuesday, 17 June 2014
Add Html5 Tags in Internet Explorer 8
Introduction:
Html5 is popular language but some of older browser such as IE8,IE7 and lower not supported Html5.
Html5 introduce some new elements such as header,section but older browser doesn't know about these tags then it can't generate them so you will find that in IE8 or lower your website will be without any styles.
Here is solution for add Html5 tags in IE8 and lower.
First we have to detect IE Version and then we have to create elements which is added by Html5.
Code:
Html5 is popular language but some of older browser such as IE8,IE7 and lower not supported Html5.
Html5 introduce some new elements such as header,section but older browser doesn't know about these tags then it can't generate them so you will find that in IE8 or lower your website will be without any styles.
Here is solution for add Html5 tags in IE8 and lower.
First we have to detect IE Version and then we have to create elements which is added by Html5.
Code:
var userAgent = navigator.userAgent.toLowerCase(); // Test if the browser is IE and check the version number is lower than 9 if (/msie/.test(userAgent) && parseFloat((userAgent.match(/.*(?:rv|ie)[\/: ](.+?)([ \);]|$)/) || [])[1]) < 9) { document.createElement('header'); document.createElement('section'); document.createElement('article'); document.createElement('aside'); document.createElement('nav'); document.createElement('footer'); }
Copy the following code at top of page.
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
Labels:
Design
,
Detect Mobile Device
,
IE8 Issue
,
javascript
,
JQuery
Detect mobile device using JavaScript
Introduction:
Here i will explain how to detect mobile device using JavaScript
This is simplest way to detect mobile device.
Code:
Here i will explain how to detect mobile device using JavaScript
This is simplest way to detect mobile device.
Code:
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { // some code.. }
Labels:
javascript
,
JQuery
Subscribe to:
Posts
(
Atom
)