UrbanPro
true

Learn .NET MVC from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Learn .Net MVC with Free Lessons & Tips

Ask a Question

Post a Lesson

All

All

Lessons

Discussion

Answered on 05/11/2020 Learn .Net MVC

Babish Adapa

Trainer

Your SQL should look like: SqlCommand cmd = new SqlCommand("insert into AMICIZIA (IdUtente1) values('" + l.Text; + "')", myconn);
Answers 3 Comments
Dislike Bookmark

Lesson Posted on 11/06/2019 Learn .Net MVC +1 .Net AJAX

Steps to fill drop-down value from database to view page in ASP.Net MVC Application

Jaffrena Michael Thomas

I have completed computer science Engineering and have pursued a Microsoft certification. I have twelve...

In simple few steps you can fill the dynamic data from database to HTML page in MVC Application Write connection string in web config file Create table related getter setter in model Fetch data from db using SQL or MySQL reference Pass the list of data retried to controller Using jQuery ajax... read more

In simple few steps you can fill the dynamic data from database to HTML page in MVC Application 

  1. Write connection string in web config file 
  2. Create table related getter setter in model
  3. Fetch data from db using SQL or MySQL reference 
  4. Pass the list of data retried to controller 
  5. Using jQuery ajax MVC call fill data to select tag of drop-down

 

read less
Comments
Dislike Bookmark

Lesson Posted on 12/01/2019 Learn .Net MVC +2 .Net C# .NET

Multi-core CPU utilization using Task Parallel Library in c#

Ketan Agnihotri

I have over 7 years of experience in software development. I delivered quality work in Media, Real-Estate,...

Nowadays, we are using multiple core systems. We must write our .NET applications in such a way that we must utilise the complete computing power of the machine. The parallel task library(TPL) allows you to write efficient code which is human readable, less error-prone and adjusts itself with the number... read more

Nowadays, we are using multiple core systems. We must write our .NET applications in such a way that we must utilise the complete computing power of the machine.

The parallel task library(TPL) allows you to write efficient code which is human readable, less error-prone and adjusts itself with the number of Cores available.

So your software would auto-upgrade with the upgrading environment.

It also improves the readability of the code and thus reduces the risk of getting bugs which makes solving difficult and time taking.

 

 

read less
Comments
Dislike Bookmark

Learn .NET MVC from the Best Tutors

  • Affordable fees
  • Flexible Timings
  • Choose between 1-1 and Group class
  • Verified Tutors

Lesson Posted on 15/12/2018 Learn .Net MVC

What is the need for Restful Service in MVC Core?

Suprio D.

Corporate technology consultant. Having training experience in dot-net platform(3.5 linq,and wcf framework,web...

EXPLANATIONRestful service makes access to client information send to the server by JSON request that reduces several round trips from the server and hence optimises the speed. HTML framework works the application MVC Web API with razor lack optimisation levels. The main reason is that razor methods... read more

EXPLANATION
Restful service makes access to client information send to the server by JSON request that reduces several round trips from the server and hence optimises the speed.
HTML framework works the application MVC Web API with razor lack optimisation levels. The main reason is that razor methods lack optimisation levels of HTTP request-response communication between the client and the server. But by the implementation of json request behaviour, restful services get enabled that enables switching between client and servers much faster. Thus, faster the communication between client and the server.

read less
Comments
Dislike Bookmark

Lesson Posted on 05/11/2018 Learn .Net MVC +4 .Net .Net Advanced .Net WCF .Net Web Services

CLR and it's properties

Raga Deepthi Gade

I am an experienced .NET professional with over 8+ years of experience in teaching C , C# , Asp.Net ,...

CLR is one of the components of the .NET framework which provides an environment to execute the .NET code or the managed code. , CLR helps in converting the MSIL/CIL code into native code and running it. Properties of CLR : Common Language Specification : a set of language rules, common to all... read more

CLR [ Common Language Runtime ] is one of the components of the .NET framework which provides an environment to execute the .NET code or the managed code. , CLR helps in converting the MSIL/CIL code into native code and running it.

Properties of CLR :

  • Common Language Specification [ CLS]: a set of language rules, common to all the .NET supported programming languages.
  • Common Type System [ CTS]: a data type system, familiar to all the .NET supported programming languages, which is further divided into value types and reference types
  • Garbage Collector [ GC]: responsible for the "Automatic memory management."
  • Just in Time [ JIT ] compiler: converts the MSIL/CIL code into native code

 

NOTE: we'll learn more about the CLR properties in the sessions.

 

 

 

 

read less
Comments
Dislike Bookmark

Lesson Posted on 31/10/2018 Learn .Net MVC +2 .Net Advanced .Net

Garbage collector in .NET framework

Raga Deepthi Gade

I am an experienced .NET professional with over 8+ years of experience in teaching C , C# , Asp.Net ,...

Garbage collector is responsible for the "automatic memory management - AMM" in .NET framework. Garbage collector is one of the properties of .NET framework components CLR . Why there is a need of "Memory management"? Ans : Basically, Operating Sytem stores the data that is processed and accessed... read more

Garbage collector [ GC ] is responsible for the "automatic memory management - AMM" in .NET framework. Garbage collector [ GC ] is one of the properties of .NET framework components CLR [ common language runtime ].

Why there is a need of "Memory management"?

Ans : Basically, Operating Sytem [ OS ] stores the data that is processed and accessed during programming / development of the applications in the memory. Sometimes that memory gets filled and developers may not be able to store the new data / input that is coming into. 

At this moment, developers need to write a seperate logic for the management of the memory, where they've to identify the unused or unnecessary data that has occupied the OS memory and need to write the logic for releasing that memory which is a burden for the developers.

Hence, to avoid the burden on the developers , this "automatic memory management" is needed.

In .NET, Garbage collector [ GC ] is responsible for the "automatic memory management" and it's popular for it's efficiency.

Working of Garbage collector [ GC ] : 

Garbage collector [ GC ] identifies the active and idled objects from the  heap memory , retains the active objects and destroys the idled objects and releases the memory. 

NOTE: GC provides automatic memory management only for "Reference types"

Generations of GC : 

Garbage collector [ GC ] divides the heap memory into 3 parts or generations and are named as Generation 0 , Generation 1 & Generation 2. Always Gen 0 > Gen 1 > Gen 2

Whenever a new object gets created , it occupies the memory only in Gen 0.

When Gen 0 gets filled completely, Garbage collector [ GC ] performs an action called "Collection" on Gen 0 , identifies the active and idled objects , pushes the active objects into Gen 1 and destroys the idled objects from the Gen 0 and releases the memory. 

 

When Gen 1 gets filled completely, Garbage collector [ GC ] performs an action called "Collection" on Gen 1 , identifies the active and idled objects , pushes the active objects into Gen 2 and destroys the idled objects from the Gen 1 and releases the memory. 

When Gen 2 gets filled completely, Garbage collector [ GC ] performs an action called "Collection" on Gen 2 , identifies the active and idled objects , retains the active objects and destroys the idled objects from the Gen 2 and releases the memory. 

Thus , Garbage collector [ GC ]  is efficient and responsible for "Automatic memory management" in .NET framework.

 

read less
Comments
Dislike Bookmark

Learn .NET MVC from the Best Tutors

  • Affordable fees
  • Flexible Timings
  • Choose between 1-1 and Group class
  • Verified Tutors

Asked on 29/09/2018 Learn .Net MVC

Whats the cost of MVC and linq, because I already learned asp.net, c#. Please suggest me the cost.

Answer

Lesson Posted on 06/09/2018 Learn .Net MVC +2 Bootstrap jQuery

Clear boostrap modal on hide or close

Dorababu Meka

I am an experienced developer with 8 years of experience in developing web application using Asp.Net,...

When I am working with MVC project I had a requirement like to clear all the errors and text entered inside a bootstrap modal. So that when I opened the modal again I could see a plain binding. $("#myModal").on("hidden.bs.modal", function () { $("#guest_form input,input").val(''); ... read more

When I am working with MVC project I had a requirement like to clear all the errors and text entered inside a bootstrap modal. So that when I opened the modal again I could see a plain binding.

$("#myModal").on("hidden.bs.modal", function () {  

        $("#guest_form input[type='text'],input[type='password']").val('');  
        $("#guest_form input[type='text'],input[type='password']").each(function () {  
            $(this).removeClass('form-control input-validation-error');  
            $(this).addClass("form-control");  
        });  
        $(".field-validation-error").text('');  
    }); 

Initially my modal looks as follows

 

On submitting the modal without entering any data here my modal looks as follows

On closing the modal and opening it again I am still seeing the errors on my modal

What I need is I would like to clear all the validations and the classes which got applied using MVC validations so that it should again show me the original screen as follows

Try the above code and give a try, which will clear all the errors and entered text when you close and open the modal again . If you are facing any issues let me know.
 
Happy Coding :)
read less
Comments
Dislike Bookmark

Learn .NET MVC from the Best Tutors

  • Affordable fees
  • Flexible Timings
  • Choose between 1-1 and Group class
  • Verified Tutors

Lesson Posted on 18/10/2016 Learn .Net MVC +2 .Net ASP.NET

Export To Excel using StringBuilder in ASP.net MVC C#

Mohammad

public ActionResult Export() { StringBuilder sb = new StringBuilder(); //static file name, can be changes as per requirement string sFileName = "filename.xls"; //Bind data list from edmx var Data = objEntities.citymaster.Take(10).ToList(); if (Data... read more
 public ActionResult Export()  
   {  
     StringBuilder sb = new StringBuilder();  
     //static file name, can be changes as per requirement  
     string sFileName = "filename.xls";  
     //Bind data list from edmx  
     var Data = objEntities.citymaster.Take(10).ToList();  
     if (Data != null && Data.Any())  
     {  
       sb.Append("<table style='1px solid black; font-size:12px;'>");  
       sb.Append("<tr>");  
       sb.Append("<td style='width:120px;'><b>City Name</b></td>");  
       sb.Append("<td style='width:300px;'><b>City Code</b></td>");  
       sb.Append("</tr>");  
       foreach (var result in Data)  
       {  
         sb.Append("<tr>");  
         sb.Append("<td>" + result.sCityName + "</td>");  
         sb.Append("<td>" + result.sCityCode + "</td>");  
         sb.Append("</tr>");  
       }  
     }  
     HttpContext.Response.AddHeader("content-disposition", "attachment; filename=" + sFileName);  
     this.Response.ContentType = "application/vnd.ms-excel";  
     byte[] buffer = System.Text.Encoding.UTF8.GetBytes(sb.ToString());  
     return File(buffer, "application/vnd.ms-excel");  
   }  
read less
Comments 1
Dislike Bookmark

About UrbanPro

UrbanPro.com helps you to connect with the best .NET MVC in India. Post Your Requirement today and get connected.

Overview

Questions 18

Lessons 24

Total Shares  

+ Follow 25,069 Followers

Top Contributors

Connect with Expert Tutors & Institutes for .Net MVC

x

Ask a Question

Please enter your Question

Please select a Tag

X

Looking for .NET MVC Classes?

The best tutors for .NET MVC Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn .NET MVC with the Best Tutors

The best Tutors for .NET MVC Classes are on UrbanPro

Book a Free Demo

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more