The view engine is responsible for creating HTML from your views. Views are usually some kind of mix-up of HTML and a programming language. The choice of view engine is important, because the feature sets of view engines are quite different. The Razor syntax is based on the C# programming language, and that’s the language… | Click here to read more.
If you want to send mails via your Gmail/outlook account from your ASP.Net web application, we can use SmtpClient and MailMessage. Step-1 Create instance of MailMessage. Which contains details about mail that you want to send. It includes From, To, CC, BCC, Subject, Attachment, and Mail Body. Step-2 Create instance of SmtpClient. In which we… | Click here to read more.
ASP.NET Web API is a framework for building HTTP services that can be accessed from any client including browsers and mobile devices. It is an ideal platform for building RESTful applications on the .NET Framework. However it can also use to create non RESTful services. It works more or less the same way as ASP.NET… | Click here to read more.
Hello, In this section you can find some important SQL queries that really help you as a developer. For MS SQL Server Use Comma-separated values with IN clause Add new column with default value Retrieve list of table Retrieve list of column from table Obtain only Date part from current date & time For MySQL… | Click here to read more.
Some time you need to import bulk data to application, for that CSV is preferred format. You can also use PHPMyAdmin to import CSV file, however it’s cool to use PHPMyAdmin as a developer but you may not want to allow Client/User to import via it, because there are large no. of operations can perform… | Click here to read more.
In some case if you want to retrieve data from another user i am normally using file_get_contents($link); But some sites disabled file access by using file_get_content(), in that situation we can use Curl functions of PHP. For this you must need to enable CURL in your PHP server. API_URL contains a URL of API that you… | Click here to read more.
Nowadays, Many user faces shortcut virus in pendrive or other USB devices. To remove this virus we need to follow few simple steps. Step-1 Open Command Prompt. For this press Win + R -> cmd OR Open Start -> Run -> cmd Step-2 Use Attrib command Where X is letter of your drive. If your… | Click here to read more.
Almost web application contains some type of icons for user interactions. Many of them use .png images which takes some time to load, and others are using sprite image generated by some tools which takes less time compared to .png images but still takes. Another major con of images is that you can not use… | Click here to read more.
Now a day almost APIs and web services are using JSON format for transfer and represent data instead of XML. Due to JSON is easy to understood and faster then XML. JSON is language independent there for used by many languages, PHP is one of them. For using JSON in PHP we need to use… | Click here to read more.
With newer version PHP5.5 mysql_*() methods are deprecated. Normally most of developers are using this method for database operations. After PHP5.5 there are two options for performing database operations: Use MySQLi Use PDO PDO stands for PHP Data Objects. PDO allow us to use various different types of database with same syntax. PDO is suggested… | Click here to read more.
Koding is an online development environment. Using koding we can develop a applications of C, C++, PHP, Ruby, Go, Java, Python and many more languages. Koding allows us to create application based on cloud means your code is available when you want. Koding provide one Virtual Machine to each free users (more for premium users)…. | Click here to read more.
I am noticed that in some sites of you click on download button and file is type of image/music/video/pdf then in most of cases it play/open with in browser instead of downloading on client. In this article i am writing certain snippet for how to force browser to download file rather then open in browser…. | Click here to read more.