Powered by Blogger.

Working with enterprise library for data access in asp.net Part-3

To work with enterprise library you have to download required from this URL. Here we will use Enterprise Library 5.0 version. We need to give reference in Bin folder to the following dlls: Microsoft.Practices.EnterpriseLibrary.Common.dll Microsoft.Practices.EnterpriseLibrary.Configuration.Design.dll

Asp.Net MVC4 sample application

we will make a sample application using Asp.Net MVC4. Open Visual Studio 2010, then go to File -> New Project. This will open the New Project dialog box. From there make sure .Net Framework 4 is selected. Then select the Visual C# -> Web templates list. From the web template lists, Select ASP.NET MVC 4 Web Application and give a name.

Object Oriented Programming (OOP) concepts in .Net

Mainly there are 3 things in OOPs concept. 1- Inheritance 2- Abstraction 3- Polimorphism Inheritance is one of the key feature of oops concept and C# supports inheritance. Inheritance is a process of deriving the new class from already existing class. It allows you to reuse existing code.

Tutorial on MVVM with WPF

MVVM is nothing but Model view and viewModel.This is the best architecture for WPF. VIEW: A View is defined in XAML and should not have any logic in the code-behind. It binds to the view-model by only using data binding. The View contains the visual controls that will be shown to the user.This is the UI.

WCF tutorial and example in C#.Net

We will discuss how to create a WCF service and how we can consume the WCF service. Open Visual Studio 2010, then go to File -> New -> Project. Then from the New Project dialog box, From the Installed Templates Select WCF from the left hand site, And then Choose WCF Service Library and Give a proper name and Click on OK.

Monday, November 6, 2017

How to call button click event on press enter key in asp.net?

In this asp.net blog we will discuss how we can set default submit button on enter key in asp.net web application. If I will give an real world example, here I have a textbox and a search button. I want to make the search button as default button, so that when user put something in the search textbox and press enter then the button click code should execute.

In some other cases you might noticed that, in most of the modern web sites, there will be a search textbox but there will be no button. User just needs to press enter. Here we will see how we can achieve both the things in asp.net web sites.

Example With Button:
In this case let us take a asp.net button, textbox and one label and it looks like below:

<asp:Label ID="lblResult" runat="server" Text=""></asp:Label><br />
                <asp:TextBox ID="txtSearch" runat="server" Height="30px" Width="280px"></asp:TextBox><br />

                <asp:Button ID="btnSearch" runat="server" Text="Search" Style="display: none" OnClick="btnSearch_Click" />

Now to set the default button here as btnSearch. take an asp.net panel control and set the DefaultButton as btnSearch and the full code looks like below:

<asp:Panel runat="server" DefaultButton="btnSearch">
                <asp:Label ID="lblResult" runat="server" Text=""></asp:Label><br />
                <asp:TextBox ID="txtSearch" runat="server" Height="30px" Width="280px"></asp:TextBox><br />
                <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
            </asp:Panel>

Now when I run the asp.net web site and write something in the search textbox and press enter, it will execute the button click code and will display like below.
asp.net submit button enter key

Example Without Button:
In the other case when we do not need to show the button, we can just use Style="display: none" to hide the button. So the full code will looks like below:

 <asp:Panel runat="server" DefaultButton="btnSearch">
                <asp:Label ID="lblResult" runat="server" Text=""></asp:Label><br />
                <asp:TextBox ID="txtSearch" runat="server" Height="30px" Width="280px"></asp:TextBox><br />
                <asp:Button ID="btnSearch" runat="server" Text="Search" Style="display: none" OnClick="btnSearch_Click" />
            </asp:Panel>

call button click event on press enter key in asp net

Also you can read some asp.net articles:

- Download Programming ASP.NET MVC 5 book pdf free

- How to to show or hide textbox based on checkbox using jQuery in asp.net?

Hope this asp.net article may be will helpful.

Wednesday, November 1, 2017

Download Programming ASP.NET MVC 5 book pdf free

If you want to learn Asp.Net MVC 5 then you can download the Programming ASP.NET MVC 5 book pdf free. This book contains Practical Implementation for beginners.

Also you can download:
- Download asp.net MVC book pdf free

- Download ASP.NET is a web application framework book pdf free
Download Programming ASP.NET MVC 5 book pdf free

1- Getting Started with ASP.NET MVC 5

    1.1 Adding a Controller
    1.2 Adding a View
    1.3 Adding a Model

2- Working with Database

    2.1 Creating Connection String
    2.2 CRUD Operations
    2.3 Working with LocalDB

3- Editing Application

    3.1 Introduction of Code First Migration and Adding new field
    3.2 Searching Panel
    3.3 View Editing
    3.4 Working with Validation

4- Working with External Authentication

    4.1 Configure the Login Options
    4.2 Google and Facebook Authentication
    4.3 Twitter Authentication

5- Entity Framework Database First Approach

    5.1 Working with Existing Database
    5.2 Associating Database with Application
    5.3 Application Modification and Validation

6- IIS Hosting and Publishing of Application

7- Introduction of ASP.NET SignalR

You can download Programming ASP.NET MVC 5 from below link.


Download

Download asp.net MVC book pdf free

If you want to learn asp.net mvc step by step then there is a asp.net mvc free pdf book available from TutorialsPoint.com. This book provides a hands-on approach to the subject with step-by-step program examples that will assist you to learn asp.net mvc.

Also you can download: ASP.NET is a web application framework book pdf free

Here is the content of the book and the download link is available below:

Download asp.net MVC book pdf free
- Asp.Net MVC overview
- Asp.Net MVC - MVC Pattern
- Asp.net MVC - Environment Setup
- Asp.Net MVC - Getting Started
- Asp.Net MVC - Life Cycel
- Asp.Net MVC - Routing
- Asp.Net MVC - Controllers
- Asp.Net MVC - Actions
- Asp.Net MVC - Filters
- Asp.Net MVC - Selectors
- Asp.Net MVC - Views
- Asp.Net MVC - Data Model
- Asp.Net MVC - Helpers
- Asp.Net MVC - Model Binding
- Asp.Net MVC - Databases
- Asp.Net MVC - Validation
- Asp.Net MVC - Security
- Asp.Net MVC - Caching
- Asp.Net MVC - Razor
- Asp.Net MVC - DataAnnotations
- Asp.Net MVC - Nuget Package Management
- Asp.Net MVC - Web API
- Asp.Net MVC - Scaffolding
- Asp.Net MVC - Bootstrap
- Asp.Net MVC - Unit Testing
- Asp.Net MVC - Deployment
- Asp.Net MVC - Self-Hosting

Download from below lnk

Here.

Download ASP.NET is a web application framework book pdf free

If you are a beginners to asp.net and want to learn asp.net step by step then you can read from a asp.net pdf book provided by TutorialsPoint.com.

They have explained clearly step by step and covered almost all the topics of asp.net with C#.Net.

Below are the topics covered in the asp.net book:
- Introduction
- Environment Setup
- Life Cycle
- First Example
- Event Handling
- Server Side
- Server Controls
- HTML Server
- Client Side
- Basic Controls
- Directives
- Managing State
- Validators
- Database Access
- Ado.Net
- File Uploading
- Ad Rotators
- Calendars
- Multi Views
- Panel Controls
- Ajax Controls
- Data Sources
- Data Binding
- Custom Controls
- Personalization
- Error Handling
- Debugging
- Linq
- Security
- Data Caching
- Web Services
- Multithreading
- Configuration
- Deployment

Download from Here.