Latest posts on tagged on "ASP-NET"

How to share image to twitter post using asp.net MVC?

23 May 2016

In this article we will describe how to share a post along with image in twitter. We can share image with SendTweetWithMedia() method by passing image as stream. Inorder to send image as stream we need to convert it.

How to share twitter post using asp.net MVC c#?

23 May 2016

The sample code in this article demonstrates share twitter post programmatically. To create a twitter application using Twitter apps and get a customer key (API Key) and customer secret (API key). Inorder to share twitter post we need to Install-Package TweetSharp using nuget package manager console and reference to the page.

How to pass multiple parameters to a POST method using jQuery Ajax in asp.net MVC?

22 May 2016

In this article we will discuss to pass multiple parameters from Ajax post call in asp.net MVC application. Before I have faced issues with jQuery ajax post call to a controller with multiple parameter due to syntax errors. Now I have found a way by passing JSON stringifyed Object to a [HttpPost] method.

[Solved] CS1003: Syntax error, '>' expected

21 May 2016

When I run the application I got error “CS1003: Syntax error, '>' expected”. After that I realized the mistake because of semicolon (;) I put after the model class in the Index.cshtml view “@model MVC_tutorials.Models.Document;”

How to create word document file using asp.net MVC?

21 May 2016

In this step-by-step article descrbes how to create a MS word document file using asp.net. The sample code in this article demonstrates how to insert paragraphs with text programmatically.

How to create multiple fileUpload using asp.net MVC 4?

20 May 2016

In this article we will learn how to upload in asp.net MVC 4 application.To begin create an asp.net mvc project called mvc-tutorials and also create a class and name it as picture with a single propery name files with datatype

How to create single fileUpload using asp.net MVC 4?

20 May 2016

To begin create an asp.net mvc project called mvc-tutorials and also create a class and name it as picture with a single propery file with datatype HttpPostedFileBase.

How to create Enumerations in asp.net c#?

14 May 2016

The purpose of using enumeration is to improve readability by enabling us to use meaningful symbols instead of numeric values. The value of variable is an integer,it is easy to output the name of the symbol rather then its value.

How to create and sort array in asp.net c#?

14 May 2016

In c# arrays are declared using square braces and it provides members for working with its contained data. The following code declares an array with some initial data and then sorts the array.

How to convert text to image using asp.net c#?

12 May 2016

In this article we will discuss to convert text to image using System.Drawing namespace. Using Graphics property we can convert text it in to bitmap image and save it the specified loction.