[Solved] : Question 15758

why i cant store values in database but my code is correct pls help me ?????
why i cant store values in database but my code is correct when i executing my program that time it showing th value but when i open database that time there is no value shown in database pls somebody help me ??????????????

my stored procedure is

ALTER PROCEDURE registrtn
(
@empname varchar(150),
@desgination varchar(150),
@emailid varchar(150),
@phone varchar(150),
@skype varchar(150),
@address varchar(150),
@shifttime varchar(150),
@panel varchar(150)
)
As
begin
INSERT INTO registrationn VALUES(@empname,@desgination,@emailid,@phone,@skype,@address,@shifttime,@panel)
select SCOPE_IDENTITY() as empid
end

my c# code is
private void button1_submit_Click(object sender, EventArgs e)
{

if (conn.State == ConnectionState.Closed)
{
conn.Open();
}

//using (SqlCommand cmdd = new SqlCommand(query , cono))


Expert Answer


Answer to : Question 15758

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?