Find the best tutors and institutes for .Net Training

Find Best .Net Training

Please select a Category.

Please select a Locality.

No matching category found.

No matching Locality found.

Outside India?

Search for topics

.Net Training Updates

Ask a Question

Post a Lesson

All

All

Lessons

Discussion

Lesson Posted on 07 Sep .Net/.Net MVC IT Courses/Bootstrap IT Courses/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

Answered on 15 Aug .Net/.Net Advanced

Sainath

Join mvc.net course for rupees less than 5k. After that learn topics like web api and angularjs on your own.
Answers 3 Comments
Dislike Bookmark

Lesson Posted on 30 Jun .Net/ADO.NET

Differences Between Execution Query, Execute Scalar and Execute Reader.

Suprio D.

Having training experience in dot-net Platform(3.5 LinQ,and wcf framework,webservices,MVC 4).. Applications),trained...

ExecuteNonQuery ExecuteNonQuery method will return number of rows effected with INSERT, DELETE or UPDATE operations. This ExecuteNonQuery method will be used only for insert, update and delete, Create, and SET statements. ExecuteReader Execute Reader will be used to return the set of rows,... read more

ExecuteNonQuery

ExecuteNonQuery method will return number of rows effected with INSERT, DELETE or UPDATE operations. This ExecuteNonQuery method will be used only for insert, update and delete, Create, and SET statements. 

 

ExecuteReader

Execute Reader will be used to return the set of rows, on execution of SQL Query or Stored procedure using command object. This one is forward only retrieval of records and it is used to read the table values from first to last. MOSTLY HELPFUL WHEN SEARCHNG FOR EXISTANCE OF PARTICULAR DATABASE RECORDS.since its only for searching and retrieval of records here as well INSERT, DELETE or UPDATE queries for its operations tobe performed is not applicable.

 

Execute Scalar

Execute Scalar will return single row single column value i.e. single value, on execution of SQL Query or Stored procedure using command object. It’s very fast to retrieve single values from database. as comapred to executeNonquery its not depended on INSERT, DELETE or UPDATE queries for its operations tobe performed.

read less
Comments
Dislike Bookmark

Looking for .Net Training

Find best .Net Training in your locality on UrbanPro.

FIND NOW

Lesson Posted on 30 Jun .Net/.Net WCF

Compare ASP.NET WEB API and WCF.

Suprio D.

Having training experience in dot-net Platform(3.5 LinQ,and wcf framework,webservices,MVC 4).. Applications),trained...

What to choose between WCF or WEB API..? Choose WCF when you want to create a service that should support special scenarios such as one way messaging, message queues, duplex communication etc. while we need to choose web API. When you want to create a resource-oriented service over HTTP that can... read more

What to choose between WCF or WEB API..?

  1. Choose WCF when you want to create a service that should support special scenarios such as one way messaging, message queues, duplex communication etc. while we need to choose web API. When you want to create a resource-oriented service over HTTP that can use the full features of HTTP (like URIs, request/response headers, caching, versioning, various content formats)

  2. Choose WCF whenever you want to create a service that can use fast transport channels when available, such as TCP, Named Pipes, or maybe even UDP (in WCF 4.5), and you also want to support HTTP when all other transport channels are unavailable. While we need to choose Web API when you want to expose your service to a broad range of clients including browsers,  iPhone, mobiles and tablets.

read less
Comments
Dislike Bookmark

Answered on 27 Jun .Net/.Net Advanced IT Courses/Java

Arun Mysore

Professional Trainer

Hello Kirit, The application which were devloped about 2 decades back was mostly coded in java and so you will see so many of the application (in several company and outside) written in java. .Net(collectively C#) on the other hand is a new entrant in the ring and there have been several devlopment... read more

Hello Kirit,

The application which were devloped about 2 decades back was mostly coded in java and so you will see so many of the application (in several company and outside) written in java. .Net(collectively C#) on the other hand is a new entrant in the ring and there have been several devlopment on that too..

A good programmer needs strong logics, algorithm building and problem solving ability. The languages (java or anything else) gives you the syntax to code what you have thought. Of course each programming langauge has its own pro n cons (depends on what you are looking in the language). As mentioned above there are great frameworks designed in java. Java might give you an edge but a career is what you make out of it.

Cheers!

Thanks,
Arun

read less
Answers 21 Comments
Dislike Bookmark

Lesson Posted on 29 Jun .Net/C# .NET

What are various validator in ASP.NET 2.0 and features common in all validation control in ASP.NET

Suprio D.

Having training experience in dot-net Platform(3.5 LinQ,and wcf framework,webservices,MVC 4).. Applications),trained...

Control to validate an error message. Are common feature in all the controls.Various validators are requiredfeild validator ,compare validator ,regular expression validator,custom validator,range validator and validation summary.1. Required field validator asks for the missing field in server side controls... read more

Control to validate an error message. Are common feature in all the controls.

Various validators are requiredfeild validator ,compare validator ,regular expression validator,custom validator,range validator  and validation summary.

1. Required field validator asks for the missing field in server side controls like textboxes dropdowlistot list box or checkboxlist and tells to populate in the form of error message.

2. Compare validator asks for two textboxes or familiar controls to have the exact match of the data types ore expressions.

3. Regular expression validator asks for correct format of email passwords and phone numbers or website address.

4. The custom validator does the same what regular expression validator does additionally it can customize its own features of validation by language coding means.

5.Validation summary. Display list of error messages in the form of bullet list on the top of the registration page etc.

6. Range validator checks whether the data types entered is falling in the correct ranges. Example values between two integer or dates or strings or float currencies etc..

read less
Comments
Dislike Bookmark

Looking for .Net Training

Find best .Net Training in your locality on UrbanPro.

FIND NOW

Lesson Posted on 30 Jun .Net/ADO.NET

advantages of stored procedure in ado.net

Suprio D.

Having training experience in dot-net Platform(3.5 LinQ,and wcf framework,webservices,MVC 4).. Applications),trained...

The benefits of using stored procedures in SQL Server rather than application code stored locally on client computers include. 1. They allow faster execution: overall request-response traffic from client-server communication is much more optimised. 2. They can reduce network... read more
The benefits of using stored procedures in SQL Server rather than application code stored locally on client computers include.
 
                
1. They allow faster execution:
overall request-response traffic from client-server communication is much more optimised.
 
2. They can reduce network traffic.
What overall traffic for server responses return for the client request is reduced due to the mechanism of stored procedures. If less traffic the application runs much faster.
 
3. They can be used as a security mechanism.
By means of stored procedures, important database features like table name and its column names field remain unopen in the server side coding in ado.net .hence acts like a security mechanism. Hackers even if they invade into the code they cannot come across the database features. Database features are protected.
                 
read less
Comments
Dislike Bookmark

Lesson Posted on 28 Jun .Net/ASP.NET

why need for Angular js for higher versions of Asp.net framework.

Suprio D.

Having training experience in dot-net Platform(3.5 LinQ,and wcf framework,webservices,MVC 4).. Applications),trained...

1. Optimization of performance in receiving messages between client and server. 2. Optimised display features. Explanation 1. Earlier versions of Asp.net had lack of performance of message transfer between client-server communication as server response time was lagging behind .this problem was... read more

1. Optimization of performance in receiving messages between client and server.

2. Optimised display features.

 

Explanation

 

1. Earlier versions of Asp.net had lack of performance of message transfer between client-server communication as server response time was lagging behind .this problem was rectified by the concept of angular js.  a new version of HTML framework. where WEB API was the server side.

 

2. HTML display features had optimised level in Angular JS both in terms of fastest and accuracy in message transferring performance and display characteristics in the WEB BROWSERS. WHICH EARLIER VERSIONS OF HTML LACKED.

read less
Comments
Dislike Bookmark

Looking for .Net Training

Find best .Net Training in your locality on UrbanPro.

FIND NOW

About UrbanPro

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

Overview

Questions 925

Lessons 59

Total Shares  

+ Follow 29,342 Followers

Related Topics

Top Contributors

Connect with Expert Tutors & Institutes for .Net

x

Ask a Question

Please enter your Question

Please select a Tag

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 25 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 6.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