ASPSnippets.com
25 May 2018 25 May 2018 0 Comments  186 Views
Here Mudassar Ahmed Khan has explained with an example, how to Save (Insert) Image file in Database using Entity Framework in ASP.Net MVC Razor.

The Image file will be converted into Binary data and will be saved (inserted) into the Database Table using Entity Framework in ASP.Net MVC Razor.
25 May 2018 25 May 2018 0 Comments  99 Views
Here Mudassar Ahmed Khan has explained with an example, how to display Images inside WebGrid in ASP.Net MVC Razor.

The Image path will be stored in database and the Image files will be saved into a Folder (Directory) on disk.

The path of the Image files will be fetched from database using Entity Framework and will be used to populate the WebGrid in ASP.Net MVC Razor.
25 May 2018 25 May 2018 0 Comments  201 Views
Here Mudassar Ahmed Khan has explained with an example, how to display Image file using Path stored in database in WebGrid in ASP.Net MVC Razor.

Image files will be uploaded and then will be saved into a Folder (Directory) on disk. The Path of the saved files will be inserted into a Database Table using Entity Framework.
25 May 2018 25 May 2018 0 Comments  230 Views
Here Mudassar Ahmed Khan has explained with an example, how to upload files without Full PostBack in ASP.Net using C# and VB.Net.

The AJAX Control Toolkit AsyncFileUpload control allows to upload files without Full PostBack using AJAX in in ASP.Net using C# and VB.Net.
24 May 2018 24 May 2018 0 Comments  194 Views
Here Mudassar Ahmed Khan has explained with an example, how to upload multiple files with Progress Bar using AngularJS ngFileUpload in ASP.Net MVC Razor.
24 May 2018 24 May 2018 0 Comments  205 Views
Here Mudassar Ahmed Khan has explained with an example, how to upload Image files to a Folder (Directory) on Server disk using HTML FileUpload and AngularJS in ASP.Net MVC Razor.
24 May 2018 24 May 2018 0 Comments  187 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement File Upload using AngularJS in ASP.Net MVC Razor.

This article will illustrate how to upload multiple files with the standard FileUpload element using HTML5 and AngularJS in ASP.Net MVC Razor.
24 May 2018 24 May 2018 0 Comments  230 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement jQuery AutoComplete TextBox using Web API in ASP.Net MVC Razor.

The jQuery AutoComplete TextBox data will call the Web API which will fetch the data from database using Entity Framework in ASP.Net MVC Razor.
24 May 2018 24 May 2018 0 Comments  241 Views
ASP.Net  AJAX  jQuery  MVC  Web API
Here Mudassar Ahmed Khan has explained with an example, how to return an object of Anonymous type from Web API 2 in ASP.Net MVC Razor.

This article will illustrate how to call a Web API Controller’s Action method that returns Anonymous type object using jQuery AJAX in ASP.Net MVC Razor.
23 May 2018 23 May 2018 0 Comments  333 Views
Here Mudassar Ahmed Khan has explained with an example, how to call (consume) Web Service (ASMX) with parameters from Client Side using JavaScript in ASP.Net using C# and VB.Net.
23 May 2018 23 May 2018 0 Comments  223 Views
Here Mudassar Ahmed Khan has explained with an example, how to call (consume) Web Service (ASMX) using ScriptManager in ASP.Net using C# and VB.Net.
23 May 2018 23 May 2018 0 Comments  257 Views
Here Mudassar Ahmed Khan has explained with an example, how to fetch jQuery AutoComplete TextBox data in Key Value pairs using JSON object in ASP.Net MVC Razor.

The data from database will be fetched using Entity Framework and will be returned as JSON array with Key Value pairs will be returned to the jQuery AutoComplete plugin.

This article also illustrates, how to fetch the Key and Value of the selected AutoComplete item on Form submission in ASP.Net MVC Razor.
23 May 2018 23 May 2018 0 Comments  270 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement AutoComplete TextBox from database using jQuery in ASP.Net MVC Razor.

The jQuery AutoComplete plugin will be applied to HTML TextBox and it fetch the data from Database using AJAX and Entity Framework in ASP.Net MVC Razor.

This article also illustrates, how to fetch the selected AutoComplete item on Form submission in ASP.Net MVC Razor.
22 May 2018 22 May 2018 0 Comments  305 Views
Here Mudassar Ahmed Khan has explained with an example, how to get value of Column (Item) inside ItemDataBound event of Repeater control in ASP.Net using C# and VB.Net.

This article will illustrate how to get the value of Label control inside the ItemDataBound event of Repeater control in ASP.Net.
22 May 2018 22 May 2018 0 Comments  350 Views
Here Mudassar Ahmed Khan has explained with an example, how to render GridView with THead, TBody and TFoot tags in ASP.Net using C# and VB.Net.

By default, GridView renders as HTML Table without the THead, TBody and TFoot tags.
22 May 2018 22 May 2018 0 Comments  234 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the ItemDataBound (OnItemDataBound) event of Repeater in ASP.Net using C# and VB.Net.

ItemDataBound event is triggered for each Repeater Item when it is bound to the Data row.
21 May 2018 21 May 2018 0 Comments  343 Views
Here Mudassar Ahmed Khan has explained with an example, how to read, parse and insert XML File data to SQL Server Table using Stored Procedure.

SQL Server 2005 and above versions, allow to read and parse and XML file using the XML data type and it also provide functions to parse the XML and extract its Attribute and Tag values.
21 May 2018 21 May 2018 0 Comments  267 Views
Here Mudassar Ahmed Khan has explained with an example, how to read, parse and insert XML String data to SQL Server Table using Stored Procedure.

SQL Server 2005 and above versions, allow to pass a parameter of XML data type to the Stored Procedure and provide functions to parse the XML and extract its Attribute and Tag values.
21 May 2018 21 May 2018 0 Comments  367 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform CRUD operation in WebGrid using jQuery AJAX and JSON in ASP.Net MVC Razor.

WebGrid CRUD i.e. (Select, Insert, Update and Delete) operations will be performed by calling the Controller Action methods using jQuery AJAX and JSON in ASP.Net MVC Razor.
21 May 2018 21 May 2018 0 Comments  347 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform CRUD operation using jQuery AJAX and JSON in ASP.Net MVC Razor.

CRUD i.e. (Select, Insert, Update and Delete) operations will be performed by calling the Controller Action methods using jQuery AJAX and JSON in ASP.Net MVC Razor.
17 May 2018 17 May 2018 0 Comments  492 Views
ASP.Net  AJAX  jQuery  JSON
Here Mudassar Ahmed Khan has explained with an example, how to call Server Side function without Static WebMethod using jQuery in ASP.Net using C# and VB.Net.

Whenever an AJAX call needs to be done to make call to Server Side in jQuery, one has use a Static Web Method or a Web Service Web Method.

This article will illustrate how to call the Server Side code i.e. Page Load event with JSONP (JSON with Padding) using jQuery getJSON function and CallBack functions in ASP.Net.
17 May 2018 17 May 2018 0 Comments  400 Views
Here Mudassar Ahmed Khan has explained with an example, how to call Server Side function without Static WebMethod using JavaScript in ASP.Net using C# and VB.Net.

Whenever an AJAX call needs to be done to make call to Server Side in JavaScript, one has use a Static Web Method or a Web Service Web Method.

This article will illustrate how to call the Server Side code i.e. Page Load event with JSONP (JSON with Padding) using jQuery dynamic SCRIPT Tag and CallBack functions in ASP.Net.
16 May 2018 16 May 2018 0 Comments  473 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind (populate) GridView using Session data in ASP.Net using C# and VB.Net.

The concept is to create a dynamic DataTable, save it to Session and bind it to GridView.

Later whenever a new row is added, the DataTable is fetched from Session, it is updated and then again used to bind the GridView.
15 May 2018 15 May 2018 0 Comments  444 Views
Here Mudassar Ahmed Khan has explained with an example, how to get Current Page and Previous Page names in ASP.Net using C# and VB.Net.

This article will illustrate how to extract Current Page and Previous Page names from URL using the Request.Url and Request.UrlReferrer properties in ASP.Net.
15 May 2018 15 May 2018 0 Comments  597 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform CRUD operation (Create, Read, Update and Delete) using Web API in ASP.Net MVC Razor using Entity Framework and AngularJS.

CRUD operation in simple terms means Select, Insert, Edit, Update and Delete operations.