Category - ASP.Net
Results 1 - 20 of 2535
21 Jan 2022 21 Jan 2022 0 Comments  307 Views
Here Mudassar Khan has explained with an example, how to get the ID of Button inside ASP.Net GridView when clicked using JavaScript.

When the Button is clicked, a JavaScript function is called and the ID will be fetched and displayed using JavaScript Alert Message Box.
19 Jan 2022 19 Jan 2022 0 Comments  372 Views
Here Mudassar Khan has explained with an example, how to get Session value in JavaScript or jQuery in ASP.Net Core MVC.

JavaScript is a Client Side language and hence directly it is not possible to get Session value in JavaScript.

Thus, the solution is to make an AJAX call using jQuery AJAX function and pass the value of JavaScript variable to a Controller and inside the Controller the value is retrieved from Session object in ASP.Net Core MVC.
19 Jan 2022 19 Jan 2022 0 Comments  280 Views
Here Mudassar Khan has explained with an example, how to get the ID of Button inside ASP.Net GridView when clicked using jQuery.

When the Button is clicked, a jQuery Click event handler will be called and the ID will be fetched and displayed using JavaScript Alert Message Box.
14 Jan 2022 14 Jan 2022 0 Comments  457 Views
ASP.Net  XML  HTML  Table  MVC  Grid  Core  .Net
Here Mudassar Khan has explained with an example, how to display XML file data in .Net Core.

This article will make use of ASP.Net MVC Core for illustrating how to read XML file data and then display it in Grid (HTML Table) format in .Net Core.
14 Jan 2022 14 Jan 2022 0 Comments  391 Views
ASP.Net  AJAX  jQuery  JSON  MVC  Core
Here Mudassar Khan has explained how to solve the problem: jQuery AJAX call parameters passed NULL to Controller in ASP.Net Core.

This article will explain the possible causes of parameters being passed as NULL and also explain the correct approach to perform jQuery AJAX call in ASP.Net Core MVC.
07 Jan 2022 07 Jan 2022 0 Comments  633 Views
ASP.Net  XML  MVC  Model  Core
Here Mudassar Khan has explained with an example, how to read (parse) XML file in ASP.Net Core MVC.

The XML file will be read and the fetched XML records will be parsed and displayed in Grid (HTML Table) format in View using Model in ASP.Net Core MVC.
04 Jan 2022 04 Jan 2022 0 Comments  530 Views
Here Mudassar Khan has explained with an example, how to use Response.Write in ASP.Net MVC.

Response.Write function is not available in ASP.Net MVC and hence this article will illustrate how to do similar functionality in ASP.Net MVC.
04 Jan 2022 04 Jan 2022 0 Comments  572 Views
ASP.Net  XML  MVC
Here Mudassar Khan has explained with an example, how to display Formatted XML in Browser in ASP.Net MVC Razor.

The XML file will be read as string and then its contents will be written to the Response as XML which will ultimately display the Formatted XML in Browser in ASP.Net MVC Razor.
04 Jan 2022 04 Jan 2022 0 Comments  445 Views
ASP.Net  XML  MVC  WebGrid
Here Mudassar Khan has explained with an example, how to read and display XML file data in WebGrid in ASP.Net MVC Razor.

The XML data will be read from an XML file and the fetched XML records will be displayed in WebGrid using Model class in ASP.Net MVC Razor.
04 Jan 2022 04 Jan 2022 0 Comments  676 Views
Here Mudassar Khan has explained with an example, how to implement Contact Us Form in ASP.Net Core Razor Pages.

The Contact Us Form consists of TextBox controls, a Rich TextBox and a FileUpload control to attach file.

When the Send Button is clicked, the values from the TextBox fields are embedded into HTML string and the HTML string is send as Email along with the Attachment in ASP.Net Core Razor Pages.
03 Jan 2022 03 Jan 2022 0 Comments  629 Views
Here Mudassar Khan has explained a simple tutorial with example, how to upload a file in ASP.Net Core Razor Pages.

This article will illustrate how to upload multiple files and then save the files in a Folder (Directory) inside the wwwroot Folder in ASP.Net Core Razor Pages.
03 Jan 2022 03 Jan 2022 0 Comments  438 Views
ASP.Net  MVC  Core
Here Mudassar Khan has explained with an example, how to use IHostingEnvironment inside Controller in ASP.Net Core.

The IHostingEnvironment interface is injected into the Controller class using Dependency Injection in ASP.Net Core MVC.
28 Dec 2021 28 Dec 2021 0 Comments  642 Views
Here Mudassar Khan has explained with an example, how to clear a Cookie in ASP.Net MVC Razor.

Cookies cannot be cleared, it can be made to expire by setting its Expiry Date to a Past Date in ASP.Net MVC Razor.
28 Dec 2021 28 Dec 2021 0 Comments  633 Views
Here Mudassar Khan has explained with an example, how does MVC application get the Cookies from Client in ASP.Net.

In ASP.Net MVC application, a Cookie is created by sending the Cookie to Browser through Response collection (Response.Cookies) while the Cookie is accessed (read) from the Browser using the Request collection (Request.Cookies).
28 Dec 2021 28 Dec 2021 0 Comments  471 Views
Here Mudassar Khan has explained with an example, how to store data in Cookies in ASP.Net MVC Razor.

This article will illustrate how to store data (value) inside a Cookie and then read the value from Cookie in ASP.Net MVC Razor.
27 Dec 2021 27 Dec 2021 0 Comments  436 Views
Here Mudassar Khan has explained with an example, how to get (read) Cookie value inside Controller in ASP.Net MVC Razor.

When the Read Cookie Button is clicked, the Cookie value will be read inside the Controller in ASP.Net MVC Razor.
27 Dec 2021 27 Dec 2021 0 Comments  524 Views
Here Mudassar Khan has explained with an example, how to delete (remove) Cookies in ASP.Net MVC Razor.

Cookies cannot be deleted or removed, it can be made to expire by setting its Expiry Date to a Past Date in ASP.Net MVC Razor.
27 Dec 2021 27 Dec 2021 0 Comments  795 Views
ASP.Net  AJAX  jQuery  MVC  Web API  Email  Gmail
Here Mudassar Khan has explained with an example, how to send email using jQuery AJAX in ASP.Net MVC Razor.

The jQuery AJAX function will call a Web API Action method which will send email using Gmail SMTP Mail Server in ASP.Net MVC Razor.

Once the Email is sent, a Confirmation will be sent back to the jQuery AJAX function which in turn will be display a Success message using JavaScript Alert Message Box.
24 Dec 2021 24 Dec 2021 0 Comments  798 Views
ASP.Net  AJAX  jQuery  MVC  Web API  Email  Gmail
Here Mudassar Khan has explained with an example, how to send Email using Web API and jQuery AJAX in ASP.Net MVC Razor.

When the Send Button is clicked, the SendEmail Action method of the Web API is called using jQuery AJAX and the Email is sent.
18 Dec 2021 18 Dec 2021 0 Comments  740 Views
Here Mudassar Khan has explained with an example, how to implement TinyMCE RichTextBox (RichTextEditor) in ASP.Net Core Razor Pages.

TinyMCE RichTextBox (RichTextEditor) is a JavaScript plugin and is applied to the HTML TextArea element.
Results 1 - 20 of 2535