Category - Arrays
Results 1 - 20 of 28
30 Jun 2020 30 Jun 2020 0 Comments  9766 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Array from JavaScript function to Code Behind (Server Side) function in ASP.Net using C# and VB.Net.

The JavaScript Array will be converted into a Comma Separated string and then saved in a HiddenField and then will be sent to Code Behind (Server Side) function through PostBack (Form Submission) in ASP.Net using C# and VB.Net.
05 Dec 2019 05 Dec 2019 0 Comments  32095 Views
Here Mudassar Ahmed Khan has explained with an example, how to download JSON object (Array) as File from Browser using JavaScript.

Initially a JSON object (Array) will be created and then it will be converted into a JSON String, then to BLOB object and ultimately downloaded (exported) as Text file from Browser using JavaScript.
15 Jul 2019 15 Jul 2019 0 Comments  46304 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert List of Objects to CSV file using C# in ASP.Net MVC Razor.

When the Export Button is clicked, the data from Database is fetched using Entity Framework as List of Objects.

Then using a FOR Loop, the data is converted into a Comma Separated (Delimited) string which is later exported and downloaded as CSV file in ASP.Net MVC Razor.
18 Apr 2019 19 Apr 2019 1 Comments  13333 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Array from Controller to View using ViewBag in ASP.Net MVC Razor.

The List Collection will be populated from Database using ADO.Net inside the Controller and it will be converted to Array and passed to the View using ViewBag.

Later in View, the Array will be iterated and the data will be displayed with the help of HTML Table in ASP.Net MVC Razor.
27 Feb 2019 27 Feb 2019 0 Comments  13950 Views
HTML  JSON  Table  AngularJS  Arrays  Image
Here Mudassar Ahmed Khan has explained with an example, how to display Images inside ng-repeat directive in AngularJS.

The ng-src directive is used along with Image elements in order to display Images from Model in AngularJS.

The Image will be stored in a Folder (Directory) on the Server and will be displayed by assigning the Path (URL) of the Image to the ng-src directive in AngularJS.
27 Feb 2019 27 Feb 2019 0 Comments  4872 Views
HTML  JSON  Table  AngularJS  Arrays  Image
Here Mudassar Ahmed Khan has explained with an example, how to get (pull) Image from JSON in AngularJS.

The Image will be stored in a Folder (Directory) on the Server and will be displayed by pulling the Path (URL) of the Image from the JSON and assigning it to the ng-src directive in AngularJS.
26 Feb 2019 26 Feb 2019 0 Comments  18744 Views
Here Mudassar Ahmed Khan has explained with an example, how to display Images from JSON Array using JavaScript.

This article will illustrate how to display Images in a dynamic HTML Table generated by looping through the JSON Array using JavaScript.

The Images will be stored in a Folder (Directory) on the Server and will be displayed in an HTML Image element using JavaScript.
19 Feb 2019 26 Feb 2019 0 Comments  3469 Views
HTML  JSON  Table  AngularJS  Arrays  Image
Here Mudassar Ahmed Khan has explained with an example, how to use ng-src inside ng-repeat directive in AngularJS.

The ng-src directive is used along with Image elements in order to display Images from Model in AngularJS.

The Image will be stored in a Folder (Directory) on the Server and will be displayed by assigning the URL of the Image to the ng-src directive in AngularJS.
19 Feb 2019 26 Feb 2019 0 Comments  9606 Views
HTML  JSON  Table  AngularJS  Arrays  Image
Here Mudassar Ahmed Khan has explained with an example, how to display Images from JSON Array using ng-repeat in AngularJS.

This article will illustrate how to display Images using the ng-src directive with Image elements in AngularJS.

The Image will be stored in a Folder (Directory) on the Server and will be displayed by assigning the URL of the Image to the ng-src directive in AngularJS.
11 Jan 2019 11 Jan 2019 0 Comments  19035 Views
Here Mudassar Ahmed Khan has explained with an example, how to get multiple selected (checked) CheckBox values as Comma Separated String using jQuery.

When the Get Button is clicked, the CheckBoxes will be referenced and if the CheckBox is selected (checked) then its value will be inserted into an Array.

Finally, the values of the selected (checked) CheckBoxes inside the Array will be displayed as Comma Separated String using JavaScript Alert Message Box.
11 Jan 2019 11 Jan 2019 0 Comments  11858 Views
Here Mudassar Ahmed Khan has explained with an example, how to get multiple selected (checked) CheckBox values as Comma Separated String using JavaScript.

When the Get Button is clicked, the CheckBoxes will be referenced using a loop. Inside the loop if the CheckBox is selected (checked) then its value will be inserted into an Array.

Finally, the values of the selected (checked) CheckBoxes inside the Array will be displayed as Comma Separated String using JavaScript Alert Message Box.
11 Jan 2019 11 Jan 2019 0 Comments  37892 Views
Here Mudassar Ahmed Khan has explained with an example, how to get multiple selected (checked) CheckBox values in Array using jQuery.

When the Get Button is clicked, the CheckBoxes will be referenced and if the CheckBox is selected (checked) then its value will be inserted into an Array.

Finally, the values of the selected (checked) CheckBoxes inside the Array will be displayed using JavaScript Alert Message Box.
11 Jan 2019 11 Jan 2019 0 Comments  72403 Views
Here Mudassar Ahmed Khan has explained with an example, how to get multiple selected (checked) CheckBox values in Array using JavaScript.

When the Get Button is clicked, the CheckBoxes will be referenced using a loop. Inside the loop if the CheckBox is selected (checked) then its value will be inserted into an Array.

Finally, the values of the selected (checked) CheckBoxes inside the Array will be displayed using JavaScript Alert Message Box.
19 Nov 2018 19 Nov 2018 1 Comments  62323 Views
Here Mudassar Ahmed Khan has explained with an example, how to post Array of objects from View to Controller in ASP.Net MVC Razor.

Records will be dynamically added to the List of objects on Button click using jQuery and later these records will be posted to Controller’s Action method using jQuery AJAX in ASP.Net MVC Razor.
19 Nov 2018 19 Nov 2018 0 Comments  11602 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) String Array from Controller to View in ASP.Net MVC Razor.

The String Array will be passed (sent) from Controller to View as Model in ASP.Net MVC Razor.
12 Sep 2018 14 Sep 2018 0 Comments  18320 Views
Here Mudassar Ahmed Khan has explained with an example, how to read CSV File using AngularJS and HTML5 File API.

The CSV file (Comma separated Text file) will be selected in HTML FileUpload element and will be read using HTML5 FileReader API.

The read data will be parsed into a JSON Array which will be later used to populate a HTML Table using ng-repeat directive in AngularJS.
07 Nov 2017 07 Nov 2017 2 Comments  38599 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically populate DropDownList i.e. HTML Select element on Button click from JSON Array using jQuery.

The JSON Array will be read and parsed and then one by one the each JSON object from the JSON Array will be added as Items (Options) to DropDownList using jQuery.
07 Nov 2017 07 Nov 2017 1 Comments  59612 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically populate DropDownList i.e. HTML Select element on Button click from JSON Array using JavaScript.

The JSON Array will be read and parsed and then one by one the each JSON object from the JSON Array will be added as Items (Options) to DropDownList using plain JavaScript.
08 Mar 2016 08 Mar 2016 0 Comments  19309 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind (populate) GridView control using Array, ArrayList and Generic List in ASP.Net using C# and VB.Net.
This article will illustrate how to bind (populate) GridView control using string Array, ArrayList and Generic List of string in ASP.Net.
07 Mar 2016 07 Mar 2016 0 Comments  22410 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind (populate) Repeater control using Array, ArrayList and Generic List in ASP.Net using C# and VB.Net.
This article will illustrate how to bind (populate) Repeater control using string Array, ArrayList and Generic List of string in ASP.Net.
Results 1 - 20 of 28