window.onload Vs Document Ready

0 comments
Launching Code on Document Ready

To ensure that their code runs after the browser finishes loading the document, many JavaScript programmers wrap their code in an onload function:


Connection Pooling

0 comments
When we want a front-end to communicate with backend, we need to establish connection between them.
For this:
 1. Database server has to create a socket and wait for the request to come.
2. Client will have to create a socket in its own process.
3. Client using its socket has to submit a request to server socket.
4. Sever socket should receive the request on existing client and shift’s the client to another new socket which has to be created freshly. This is done so that server main socket is free to receive request from another client(s).

Difference between IEnumerable and IQueryable

0 comments
In LINQ   to query data from database and collections, we use IEnumerable and IQueryable for data manipulation. IEnumerable is inherited by IQueryable, hence it has all the features of it and except this, it has its own features. Both have their own importance to query data and data manipulation.

Dropdown List values binding from controller

0 comments

Model Code

Public class StudentModel
{
public string Title { get; set; }
public int TitleId { get; set; }

}

ASP.NET MVC Performance Tips

0 comments

In this we will discuss about how can we increase the performance of website that using ASP.NET MVC.

1.   Remove Unused view engines

protected void Application_Start() 
{ 
    ViewEngines.Engines.Clear(); 
    ViewEngines.Engines.Add(new RazorViewEngine()); 
}

2. Deploying Production Code in Release Mode

Make sure your production application always runs in release mode in the web.config
<compilation debug=”false”></compilation>

<configuration> <system.web> <deployment retail=”true”></deployment> </system.web> </configuration>

PayPal Credit Card Integration in ASP.NET MVC

0 comments
In this post we will learn how to implement a PayPal credit card processing in your website.
You can create a developer account here https://developer.paypal.com/

Prerequisite

  1. PayPal API Credentials.
  2. API Signature.
paypal sandbox credentials
paypal sandbox credentials

Calling Stored procedures with Datacontext in MVC

0 comments

We can call stored procedures in the entity data model using below code we can pass parameters

and get the results

Datacontext entity framework truncate table

0 comments

We can truncate table in the Datacontext entity framework by the below code

   var objCtx = ((System.Data.Entity.Infrastructure.IObjectContextAdapter)objentity).ObjectContext;
                    objCtx.ExecuteStoreCommand("TRUNCATE TABLE [Table]");



Authorize.Net Credit card processing Integration Sample code

0 comments

You can create test account by clicking the below link
https://developer.authorize.net/sandbox/

You will get login information to the registered account.

For test account Login URL click the below link
https://test.authorize.net/

Place the code in the submit button click and also you can pass the data from the textbox entered details

Autorize .Net Echeck Integation Sample Code

1 comments

You can create test account by clicking the below link
https://developer.authorize.net/sandbox/

You will get login information to the registered account.

For test account Login URL click the below link
https://test.authorize.net/

For User guide click the below link
http://www.authorize.net/files/echecknetuserguide.pdf
Place the code in the submit button click and also you can pass the data from the textbox entered details

Vikram Chandra Theme by BloggerThemes & NewWPThemes Sponsored by iBlogtoBlog