Programming Tutorials And Source Code
1.2K views | +0 today
Follow
Your new post is loading...
Your new post is loading...
Scooped by Dotnetbull
Scoop.it!

Create pdf, screenshot from web page in c# using phantomjs - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

Dotnetbull's insight:

In this post i will explain how to capture screenshot and how to create PDF of a webpage using Phantomjs.

I searched a lot for html to pdf converter and found some of the solution but they were not rendering webpage currently and even not supporting css and styling, eventually i found two best solution which supports latest css, styling and render webpage as it is in browsers, first of them is Phantomjs and second is Pechkin.

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

image resizing in asp.net c# dynamically - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

image resizing in asp.net c# dynamically - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples | Programming Tutorials And Source Code | Scoop.it
Dotnetbull's insight:

In this article you can find the code that is for re-sizing images with given width and height and retain the quality of the image as it was.

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

Identifying that the Page is Post Back or not in asp.net - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

Identifying that the Page is Post Back or not in asp.net - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples | Programming Tutorials And Source Code | Scoop.it
more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

How to maintain dynamic control events, data during postback in asp.net - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

How to maintain dynamic control events, data during postback in asp.net - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples | Programming Tutorials And Source Code | Scoop.it
more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

C# Custom Datetime Format String - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

Dotnetbull's insight:

Many Date times format patterns are available in c# asp.net, you can use them and get custom format as you required, DateTime Type have the method ToString that can be use to get custom datetime format just pass the string format.
Below is the many letter format provided by Datetime type ToString Method and expected result given in small bracket definition is given in bold string after equal.

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

What is 301 permanent and 302 temporary http status code redirection and how to implement it in asp.net c# - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

What is 301 permanent and 302 temporary http status code redirection and how to implement it in asp.net c# - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples | Programming Tutorials And Source Code | Scoop.it
Dotnetbull's insight:
This article explains what is the http status code 301 and 302, 301 status code vs 302 status code, how to use it and how to implement it in your asp.net c# website.
more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

how $document.ready() is different from window.onload() - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

Dotnetbull's insight:

we often use window.onload() in javascript and $document.ready() in jquery and assume that both are same just jquery library wrap up javascript window.onload() and introduce $document.ready() but no there is much difference between them below is the explanation -

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

Removing duplicate entries, records from Array in C#.NET - Asp.net C#,JavaScript,JQuery,Sql Server

Dotnetbull's insight:

Four method for removing duplicate entries from an array, all does same task with the different - 2 ways using list contain (internally using linq) method, collection distinct extension method (internally using linq need .net 3.5 framework or greater) and traditional for loop also work in lower version of .net framework.

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

program for factorial using recursion, while and for loop in c# - Asp.net C#,JavaScript,JQuery,Sql Server

Dotnetbull's insight:
program for calculating factorial of a number using recursion, while and for loop in c# In this article you can see how to calculate factorial of a number using recursive function , while loop and from for loop below are the three function just pass number that you want to calculate factorial and it will return the output (i.e factorial of the number).
more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

Difference between abstract class and interface - Asp.net C#,JavaScript,JQuery,Sql Server

Dotnetbull's insight:

Abstract class is a class that contain complete and abstract (incomplete) both type of member and it can not be instantiated, Abstract classes are one of the essential behaviors provided by
.NET Abstract Class Read More..

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

What is a CLS (Common Language Specification) In .Net Framework - Asp.net C#,JavaScript,JQuery,Sql Server

Dotnetbull's insight:

CTS is a base class library that contains all type information like Int32, Int64, String , Boolean etc.  CLR understands only base type of library type not others type like CLR dont know what is int (C#) or Integer (VB) CLR only know Int32 type, So what about the CLS - CLS just a documentation that map base type into different - 2 language datatype, compiler reads and converts language datatype to documented base type (i.e CTS type) e.g compiler reads the associated base type of int(C# Integer in VB) is Int32 from CLS guidelines and convert it to Int32.

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

What is NameSpace in .Net - Asp.net C#,JavaScript,JQuery,Sql Server

Dotnetbull's insight:

This a basic question which allways asked in the interview that what is the namespace ,do you know about namespace,can you tell me some words about namespace.

NameSpace is the Logical group of types or we can say namespace is a container (e.g Class, Structures, Interfaces, Enumerations, Delegates etc.), example System.IO logically groups input output related features , System.Data.SqlClient is the logical group of ado.net Connectivity with Sql server related features. In Object Oriented world, many times it is possible that programmers will use the same class name, Qualifying NameSpace with class name can avoid this collision.

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

Window Service For Monitor multiple folders using FileSystemWatcher - Asp.net C#,JavaScript,JQuery,Sql Server

Dotnetbull's insight:

Dotnet has a class named FileSystemWatcher that is for having watch in a particular folder and sub folder (conditional), when a file created, modified, deleted or renamed , it fires respective event where we can implement our logic to prevent suspicious activity.

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

Merging multiple PDFs using iTextSharp in asp.net c# - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

Merging multiple PDFs using iTextSharp in asp.net c# - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples | Programming Tutorials And Source Code | Scoop.it
Dotnetbull's insight:

In this article i will show you how to merge multiple pdfs into one using ITextSharp below is the two approach one is to pass your input files path, output file path (will be created if not exist) and another is pass direct input stream, output stream and it will write the merge files into output stream.

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

asp.net charting controls microsoft (ms chart) Line chart samples / tutorial - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

asp.net charting controls microsoft (ms chart) Line chart samples / tutorial - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples | Programming Tutorials And Source Code | Scoop.it
Dotnetbull's insight:

If you are thinking of charting, graph and reporting then MS Chart is one of the best and easy way to display your data.
By default ms chart include with visual studio 2010 and 2012 (.net framework 4.0, 4.5 or later), you can also use it with visual studio 2008 by installing ms chart component from Microsoft website.

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

what is access modifier in c# - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

what is access modifier in c# - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples | Programming Tutorials And Source Code | Scoop.it
more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

Find max top 5 number from three given sorted array - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

Program to reverse an array with given no of elements and remains as same - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

Dotnetbull's insight:
In this article we will see how to reverse an array with given on of elements for the starting and remaining elements as its same position, suppose we have given this array {1,2,3,4,5,6,7,8} and number of elements to be reverse is 4 then output should be {4,3,2,1,5,6,7,8}.
more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

binding dropdownlist in .net mvc razor by viewbag, model and jquery - 3 ways - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

binding dropdownlist in .net mvc razor by viewbag, model and jquery - 3 ways - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples | Programming Tutorials And Source Code | Scoop.it
Dotnetbull's insight:

There is a lot of ways to bind dropdownlist in asp.net mvc (mvc3, mvc4 or later razor syntax .cshtml) and maintaining dropdownlist state during postback some of them given below -

Use viewbag property.Through view model.Use jquery .ajax i.e. asynchronous post back at selected index change of another dropdownlist.
more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

program to find first non repeating character in a string c# - 3 ways - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples

Dotnetbull's insight:

In c# you want to create logic that if a string like "abcabd" is passed to a method then it should return first non repetitive character from string like in above it should return "c".

Below is three way to get the first non-repeating(distinct) character from the string -

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

parsererror after jquery.ajax request with jsonp content type - Asp.net C#,JavaScript,JQuery,Sql Server

parsererror after jquery.ajax request with jsonp content type - Asp.net C#,JavaScript,JQuery,Sql Server | Programming Tutorials And Source Code | Scoop.it
more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

Autocomplete Without JQuery UI And Ajax ToolKit - Asp.net C#,JavaScript,JQuery,Sql Server

Dotnetbull's insight:
As we know there is lots of auto complete provider apis, one of them is jquery auto complete plug-in and another is ajax auto complete control, we can implement auto complete functionally through these apis or ajax controls but there is some demerits of them below.
Demerits of jquery plug-in is very heavy plug-in make your page slower and increase of data size of page need to include auto complete css that also take some data size.
Demerits of ajax auto complete controls, Need  script manager which render 4 or 5 .axd (JavaScript file) file taking more that 200 kb data size which is the cause of slower page speed and high page size. 

So why you guys use ajax auto complete or jquery auto complete plug-in thing about you own function, I have found an alternate solution for that.
Make your own handler (.ashx) or you can make you web service (.asmx), fetch data from your database parse it as json datatype.Call this aspx handler file (just like a service) from jquery .ajax method make html with this json and append it at your auto complete div container apply css as you need.
more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

What is abstract class in c# - Asp.net C#,JavaScript,JQuery,Sql Server

Dotnetbull's insight:

What is abstract class in c#
Abstract class is a class that contain complete and abstract (incomplete) both type of member and it can not be instantiated, Abstract classes are one of the essential behaviors provided by dotnet.

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

What is a Interface in C# .Net - Asp.net C#,JavaScript,JQuery,Sql Server

Dotnetbull's insight:

What is a Interface in C# .Net
Interface is a type which contains only the signatures of methods, delegates or events, it has no implementation. Implementation of the methods is done by the class that which implements the interface.

more...
No comment yet.
Scooped by Dotnetbull
Scoop.it!

Where and in which format View State information stored in a webpage in asp.net - Asp.net C#,JavaScript,JQuery,Sql Server

Dotnetbull's insight:

Where and in which format View State information stored in a webpage in asp.net
All data stored in viewstate serialize and encode into base64 format at the time of rendering of page and converted into slandered hidden field (i.e ) with a specific name called __VIEWSTATE you can see it just open page source in browser and find for __VIEWSTATE, further at the time of post back asp.net decode , desalinize this hidden field and converts it back to viewstate object in a event called loadviewstate which fire just after page init

more...
No comment yet.