ADO.NET
in dept table have two columns deptid,deptname and in emp table have eid,ename,deptid but when i was inserting the record in front end it have deptname only based on deptname i am getting the deptid and insert the record into emp table
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Feb 19, 2013, 10:50 PM
your quesion is not too much clear....
correct me! from frend end you have dept name, emp name and you want to add record in emp Master.
so first of all get dept id from deptMaster table from dept name
select deptId from deptName = @deptName.
now insert record in empMaster.
hope this will help you.