Click here to Skip to main content
15,915,044 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcApplication1.Models;
using System.Data;
using System.Data.SqlClient;

namespace MvcApplication1.Controllers
{
   
    public class registrationController : Controller
    {
        LoginEntities db = new LoginEntities();
        public ActionResult login()
        {
            return View();
        }
   [HttpGet]
        public ActionResult registration(MvcApplication1.Models.tbl_registration obj)
        {
       //     List<login> lgn = new List<login>();
       //     login log = new login();
       //     var regno = log.regno;
       //     var name = log.password;
       //var para=new SqlParameter{ParameterName="@regno", Value=regno};
       //var para1=new SqlParameter{ParameterName="@name", Value=name};

       //SqlConnection con=new SqlConnection
       
         

            return View();
        }
           //List<registration> reg = new List<registration>();
           // registration regist = new registration();
           // regist.regno = "";
           // regist.name = "";
           // regist.mobile = 0;
           // regist.gender = 0;
           // regist.country = 0;
    

    }
}
Posted
Updated 28-Nov-14 1:58am
v2

There are articles in CodeProject about Web Grid, so you could use them as starting point:
WebGrid in ASP.NET MVC4[^]
WebGrid in ASP.NET MVC – 6 important tips[^]
 
Share this answer
 
v2
W3Schools Tutorials[^]
Creating a simple web grid in mvc[^]
These are also few good links along with the links provided by Raul.
I hope these helps you succeed in creating the web grid.
Thanks.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900