New Additions
06 Jan 2020 06 Jan 2020 0 Comments  387 Views
ASP.Net  MVC  Form  Model  Core
Here Mudassar Ahmed Khan has explained with an example, how to pass (get) data from View to Controller in ASP.Net MVC Core 2.1.

This article will explain how to create Form Fields using Model class and then pass (get) data from View to Controller using Model class object in ASP.Net MVC Core 2.1.
04 Jan 2020 04 Jan 2020 0 Comments  360 Views
Here Mudassar Ahmed Khan has explained with an example, how to display message from Controller in View using JavaScript Alert MessageBox in ASP.Net MVC Core.

The message sent from Controller to View will be displayed in JavaScript Alert MessageBox using ViewBag object in ASP.Net MVC Core.
25 Dec 2019 25 Dec 2019 0 Comments  694 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has provided a short Hello World Tutorial using a small Sample Program example on how to use and develop applications in ASP.Net MVC Core 2.1 for the first time.

This article makes use of Visual Studio 2017 for developing the ASP.Net MVC Core 2.1 Hello World Tutorial with Sample Program example.
21 Dec 2019 21 Dec 2019 0 Comments  708 Views
Here Mudassar Ahmed Khan has explained with an example, how to clear TextBox on Click using jQuery.

Clearing the TextBox's Text on Click is called Watermarking TextBox.

This article will explain how to clear TextBox on Click i.e. Watermark TextBox using the FREE ASPSnippets jQuery Watermark plugin.
21 Dec 2019 21 Dec 2019 0 Comments  486 Views
Here Mudassar Ahmed Khan has explained with an example, how to clear TextBox on Focus using jQuery.

Clearing the TextBox's Text on Focus is called Watermarking TextBox.

This article will explain how to clear TextBox on Focus i.e. Watermark TextBox using the FREE ASPSnippets jQuery Watermark plugin.
21 Dec 2019 21 Dec 2019 0 Comments  503 Views
HTML  JSON  Table
Here Mudassar Ahmed Khan has explained with an example, how to convert JSON data to HTML Table using JavaScript.

The HTML Table will be dynamically created by looping through the JSON array elements on Button Click using JavaScript.
21 Dec 2019 21 Dec 2019 0 Comments  593 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert (export) JSON string as PDF using JavaScript.

The JSON string will be converted into a JSON object. The data from the JSON object will be used to populate an HTML Table and later the HTML Table will be downloaded (exported) as PDF file using the pdfmake plugin in JavaScript.
19 Dec 2019 19 Dec 2019 0 Comments  540 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ViewState variable inside JavaScript in ASP.Net with C# and VB.Net.

ViewState is a Server Side class object which though stores the data on Client Side but it is in Encrypted Form (Hashed format) and hence cannot be read by Plain JavaScript.

Thus the ViewState variable is accessed inside JavaScript code with the help of Server Side Code Blocks in ASP.Net with C# and VB.Net.
19 Dec 2019 19 Dec 2019 0 Comments  879 Views
Here Mudassar Ahmed Khan has explained with an example, how to store (save) Temporary data in GridView in ASP.Net using C# and VB.Net.

When the Add Button is clicked, the data from the TextBoxes will be inserted into a DataTable which will be stored (saved) in ViewState and later used to populate the GridView in ASP.Net using C# and VB.Net.
19 Dec 2019 19 Dec 2019 0 Comments  514 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Page_ClientValidate function with JavaScript in ASP.Net.

Page_ClientValidate is an ASP.Net JavaScript function in-built which is used to perform ASP.Net validation explicitly i.e. invoking the ASP.Net Validators using JavaScript.

For example, in order to make the RequiredFieldValidator work with OnClientClick we need to make use of Page_ClientValidate JavaScript function in ASP.Net.
16 Dec 2019 16 Dec 2019 0 Comments  436 Views
Here Mudassar Ahmed Khan has explained with an example, how to download JSON object (Array) as File from Browser using jQuery.

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 jQuery.
16 Dec 2019 16 Dec 2019 0 Comments  1051 Views
ASP.Net  MVC  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to call Controller's Action method with Parameter on Button Click in ASP.Net MVC Razor.

When the Submit Button is clicked, the Form will be submitted and the data inside the Form will be sent to the Controller's Action method as parameter using Model class object in ASP.Net MVC Razor.
16 Dec 2019 16 Dec 2019 0 Comments  650 Views
ASP.Net  MVC  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) data from View to Controller on Button Click in ASP.Net MVC Razor.

When the Submit Button is clicked, the Form will be submitted and the data inside the Form will be passed (sent) to the Controller’s Action method using Model class object in ASP.Net MVC Razor.
16 Dec 2019 16 Dec 2019 0 Comments  425 Views
ASP.Net  MVC  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to call HTTP POST Action method on Button Click in ASP.Net MVC Razor.

When the Submit Button is clicked, the Form will be submitted and the HTTP POST Action method of Controller will be called in ASP.Net MVC Razor.
16 Dec 2019 16 Dec 2019 0 Comments  667 Views
Here Mudassar Ahmed Khan has explained with an example, how to call (consume) Web API inside HTTP POST Action method of Controller in ASP.Net MVC Razor.

When the Submit Button is clicked, the HTTP POST Action method of Controller will be called which in turn will call the Controller method of Web API 2.

The Web API 2 Controller method will fetch records from database using Entity Framework in ASP.Net MVC Razor.

The Web API 2 Controller method will be called using WebClient class inside MVC Controller.
16 Dec 2019 16 Dec 2019 0 Comments  595 Views
ASP.Net  MVC  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to call multiple Action methods using one Single Form in ASP.Net MVC Razor.

One Form in a View can do a POST submission to one Action method in Controller and hence in order to call multiple Action methods using one single Form in a View, a Switch case has to be implemented inside the Action method.

The Switch case detects the clicked Submit button by fetching its Value from the Request.Form collection and the appropriate Action method will be called in ASP.Net MVC Razor.
16 Dec 2019 16 Dec 2019 0 Comments  495 Views
ASP.Net  MVC  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to use multiple Submit buttons in one Single View in ASP.Net MVC Razor.

One Form in a View can do a POST submission to one Action method in Controller and hence in order to use multiple Submit buttons inside one single Form in a View, a Switch case has to be implemented inside the Action method.

The Switch case detects the clicked Submit button by fetching its Value from the Request.Form collection and the appropriate action is performed in ASP.Net MVC Razor.
14 Dec 2019 14 Dec 2019 0 Comments  714 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement dynamic Table with DropDownList in HTML using jQuery.

When the Add Button is clicked, a new Table Row with a DropDownList will be dynamically created and added to the HTML Table and when the Remove Button is clicked, the Table Row with DropDownList will be removed from the HTML Table using jQuery.
12 Dec 2019 12 Dec 2019 0 Comments  1075 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement dynamic Table with DropDownList in HTML using JavaScript.

When the Add Button is clicked, a new Table Row with a DropDownList will be dynamically created and added to the HTML Table and when the Remove Button is clicked, the Table Row with DropDownList will be removed from the HTML Table using JavaScript.
13 Oct 2014 11 Dec 2019 10 Comments  83434 Views
Here Mudassar Khan has explained how to insert data in GridView without using database in ASP.Net using C# and VB.Net.

Multiple Rows and columns will be added to GridView with the help of DataTable in ViewState or Session thus the GridView is populated without using database.
12 Aug 2015 11 Dec 2019 6 Comments  105946 Views
Here Mudassar Ahmed Khan has explained with an example, how to build a Database driven Twitter Bootstrap Responsive ASP.Net Menu control i.e. ASP.Net Menu control that works for Mobile Phone, Tablet and Desktop displays.

The ASP.Net Menu control items will be dynamically populated from database using C# and VB.Net.
11 Dec 2019 11 Dec 2019 0 Comments  1149 Views
Here Mudassar Ahmed Khan has explained with an example, how to add (insert) new row to GridView programmatically in ASP.Net using C# and VB.Net.

When the Add Button is clicked, the values from the TextBoxes will be added to the DataTable in ViewState, which will be later used to populate the GridView in ASP.Net using C# and VB.Net.
11 Dec 2019 11 Dec 2019 0 Comments  535 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically add (insert) OPTIONs to DropDownList (HTML SELECT) using jQuery.

Using a FOR loop, the items from Array will be added as OPTION to DropDownList (HTML SELECT) using jQuery.
10 Dec 2019 10 Dec 2019 0 Comments  512 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically create DropDownList (HTML SELECT) in HTML using jQuery.

When the Add Button is clicked, a DropDownList will be dynamically created with OPTIONS and added to the Page using jQuery.
10 Dec 2019 10 Dec 2019 0 Comments  502 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically add Row with DropDownList (HTML SELECT) using jQuery.

When the Add Button is clicked, a new Row with DropDownList will be dynamically created and added to the Page and when the Remove Button is clicked, the Row with DropDownList will be removed using jQuery.