Sunday 27 December 2015

How to register with cascading drop down in mvc4

Hello Friends,
                                Now I am going to describe  how to create a Register form with Cascading Dropdown list and Login form using  MVC4 in C#. Follow the steps.
Step-1
First create a website File->New->Project->select Web from left side-> ASP.NET MVC 4 Web Application->Provide Name(Suppose mvcregistration_dropdown)->click on ->OK->Than Select a template->Internet Application->OK.

Step-2
create four tables,three tables(country,state,city) for dropdown bind and anather table(suppose- userinfo) for save like this: 
country :

state
 
city
 
userinfo

Wednesday 16 December 2015

CRUD operations,login and registration con



Hellow Friends,
                                Now I am going to describe  how to create your Simple Register form, Login form and How to make CRUD Operation which is very interesting concept  in asp.net using C# with mvc4 platform .It is very intresting concept in mvc.So Please Follow the steps.
Step-1
First create a table in your sql server database(suppose table name is userinfo) like this:
Step-2
Create a store procedure which name is sp_insertpro:

create Procedure sp_insertpro
(
@name varchar(50)=null,
@emailid varchar(50)=null,
@password varchar(50)=null,
@age varchar(50)=null,
@address varchar(50)=null
)
AS
Begin
set nocount on

begin
      Insert Into userinfo(Name,emailid,password,Address) values(@name,@emailid,@password, @address)
end
End

Tuesday 15 December 2015

Reverse a string using recursion


 Hellow Friends,
                                Now I am going to describe  how to reverse a string with using  recursion function.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace recersfunction
{
    class recursionstring
    {
   public void reversestring(string str)
  {
    if(str.Length > 0) 
      reversestring(str.Substring(1, str.Length-1));
    else 
     return;
  }
}

Friday 11 December 2015

CRUD operation ,login and registration in asp.net using c# with mvc4 platform



Hellow Friends,
                                Now I am going to describe  how to create your Simple Register form, Login form and How to make CRUD Operation which is very interesting concept  in asp.net using C# with mvc4 platform .It is very intresting concept in mvc.So Please Follow the steps.
Step-1
First create a table in your sql server database(suppose table name is userinfo) like this:

Step-2
Create a store procedure which name is sp_insertpro:

create Procedure sp_insertpro
(
@userid int,
@name varchar(50)=null,
@emailid varchar(50)=null,
@password varchar(50)=null,

@age varchar(50)=null,
@address varchar(50)=null
)
AS
Begin
set nocount on

begin
      Insert Into userinfo(Name,emailid,password,Address) values(@name,@emailid,@password, @address)
end
End

Tuesday 8 December 2015

CRUD Operation in Asp.net in C# using store procedure in 6 steps:-



Hello Friends,
                      In this Chapter we will discuss about CRUD operations of  asp.net in c# using store procedure.

Step-1
Create a table like below (suppose table name is emp):
Step-2
Write the following code to create a store procedure for CRUD operation:
CREATE PROCEDURE dbo.gridoperate
       @qtype varchar(10),
       @id int=null,
       @name varchar(50)=null,
       @ads varchar(50)=null
AS
begin
SET NOCOUNT ON
--select
if (@qtype ='select')
begin
select id,name,ads from emp
end
--insert
if(@qtype ='insert')
begin
insert into emp(name,ads)values(@name,@ads)
end
--update
if(@qtype ='update')
begin
update emp set name=@name,ads=@ads where id=@id
end
--delete
if(@qtype ='delete')
begin
delete from emp where id=@id
end
end