60 384
Assignments Done
98,1%
Successfully Done
In April 2018

Answer to Question #15758 in C# for kamal dhillon

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's answer
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions