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