Tuesday, February 28, 2017

How to get image from the physical path (Local Drive) in asp.net C#?


You can create a virtual path i.e (folder) in the application called “Images” and save the images into it. When the user uploads the images using the file upload control,

more details:

Monday, February 27, 2017

How to convert GIF format to static jpeg format in asp.net C#?

animated moving pictures Gif to jpg image
In this article, I will show you to convert animated moving pictures i.e GIF format to static image. It take the first frame from the GIF image and create a static image without loosing quality.

more details

JQuery sortable example using dropzone.js

jquery sortable example
We cannot not sort the image in dropzone area using Dropzone Js.So we can use jQuery ui plugin to achieve this. And also, I will show you how to highlight the dropzone area using the CSS.

more details:

Friday, February 24, 2017

How to clear the fields after submitting a form in asp.net MVC?


In this article, I will show you how to clear form after submit in asp.net MVC. Before, when I submitting the asp.net mvc form; the page fields are not cleared; the problem on resetting of all form fields.

more details:

Translate a page to other languages- Google translate plugin




In this article I will show you how to translate a page to other languages using the google translate plugin. Just you need to register a translate plugin and piece of JavaScript code on the page or master page.

more details:

Thursday, February 23, 2017

How to bind dropdownlist in asp.net MVC using Entity framework.


In this example I am going to explain How to create DropDownList using MVC .net.Here, I am binding the MVC dropdownlist from model object (myDatabaseEntity) using entity framework.

more details:

Sunday, February 19, 2017

How to set limits for file upload in dropzone.js ?

multiple file upload jquery
The jQuery file upload plugin Dropzone.js
supports maxFiles option. You can set simply desired number for file upload
like this maxFiles:1. If you set one, then it will allow one file at a time. Further,
you can call maxfilesexceeded function. It will delete the preview of the first
file and add the new one. 
more details

Html5 preview image before upload JQuery example

In this article, I will show you how to preview an image before uploading to the server using jQuery.You can preview the selected photos with the help of HTML5 FileReader().

more details:

Saturday, February 18, 2017

How to hide footer in bootstrap mobile view?

footer template bootstrap
In this article I will show how to
hide responsive footer in bootstrap mobile view. It is simple; you can create a
div tag and apply the following Css footer code hidden-xs. Paste the footer coding
inside the created div tag.


When you apply “hidden-xs” class; it will hide the
elements on the extra small devices which having a screen width less than
768px. Visible on other device screen length greater than 768px.
more details

Thursday, February 16, 2017

API-Google places autocomplete jQuery example?


In this article, I will show you how to get address from google maps places autocomplete using jQuery. If a user searches a city or country name in textbox it automatically gets the Address, Longitude and Latitude value.

more details

How to create a favicon for website on browser tab?


In this article, I will show you how to create favicon for website on the browser tab. The size of the site icon should be about 16x19 pixels and named as favicon.ico or something. It also called as shortcut icon,bookmark icon or webpage icon.

more details:

Wednesday, February 15, 2017

How to redirect to a particular section of a page in HTML with example?

html link to section of page
In this article, I will show you how to redirect html link to section of page. Create an html page with link button and section tag.You need to add an id attribute for the section tag and pass section to the end of the URL using hash(#).

more details:

Monday, February 13, 2017

Page loading effects in Css

In this article I will show you web page load css animation transition effects. The Css animation transition fadeIn effect for 1 Sec also opacity of the page changes from 0 to 1.

more details:

Sunday, February 12, 2017

How to download a File with MVC4 Razor view?

 In this article, I will show you download file to client browser from a server using asp.net c# MVC razor view with example. I am using FileResult, it allows user to download file from the folder with specified file name. It will return the file with generic octet-stream MIME type.

more details:

Saturday, February 11, 2017

File upload and download in asp.net MVC

In this I will show you, file upload and download in asp.net MVC with example. Also displaying the number of already uploaded files with details such as fileName , size and file type.

more details:

Wednesday, February 8, 2017

Convert HTML to pdf in asp.net c# using itextSharp

In this article, I
will show you how to convert  html to pdf
in c# using iTextSharp. For that, you need to
Download the iTextSharp PDF library and unzip. Copy and paste the following dlls
itextsharp and itextsharp.xmlworker in the project folder and reference it . 
more details:

Redirect to external URL from controller asp.net MVC

You can redirect to an external URL by using Redirect Method() or via Json Result.

for details:

How to select all checkboxes from all pages in jQuery datatable grid?

Normally jQuery datatable will display 10 records at a time. If we select using paging max it will show 100. If user needs to select all records form all pages. Below example I will show you how to select all records from all pages of jQuery datatable and same way if user unchecks select all checkbox it will uncheck checkboxes from all pages.

more details

Monday, February 6, 2017

how to send email in vb.net using gmail server?

 In this article, I will show you how to send email with vb.net using gmail sever.The SMTP (simple mail transfer protocol) server used for sending email using the namespace System.Net.Mail.

more details:

Saturday, February 4, 2017

JQuery sticky header example

 In this article I will show you sticky header on scroll jQuery using css. This effect will take place when the user scroll down the page and it reaches height 72px with the help of window.scroll function.

more details:

Friday, February 3, 2017

Solved-The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.

I got this following error “The SMTP server requires a secure connection or the client was not authenticated. The server response was:5.5.1 authentication Required” while attempting to send mail using asp.net c# (i.e Google authentication required).

more details:

Thursday, February 2, 2017

How to configure godaddy email account using .net?

 To set up your email client with your email, you need to know your POP or IMAP Email Server Settings and ports. To find them, go to the Email Setup Center and write down the information that displays under Email Server Settings.

more details:

[solved]Unable to read data from the transport connection: net_io_connectionclosed

I am attempting to send email using asp.net c#, I got the following error “Unable to read data from the transport connection net_io_connectionclosed”.

more details:

Wednesday, February 1, 2017

JQuery focus on first input field

 Normally, User starts to fill a form,always to select the first input field on the page.Here,the following little trick will work for any situation automatically on page load.

detail: