Hi,
after clicking of button need to chek whether relevant control present in in Rquery or not
if not delete that control from database(If i have added before)
Ex:
SELECT dbo.emp.name, dbo.edata.oid, dbo.edata.qty, dbo.edata.Rate, dbo.edata.MDate FROM dbo.edata INNER JOIN dbo.emp ON dbo.edata.id = dbo.emp.id where emp.id = {Empname} and edata.MDate >= {FDate} and emp.id = {Empname1} and edata.MDate <= {TDate}
in above query i have 4 controls
EmpName ,Fdate Empname1 and Tdate
after creating of controls these can be saved to database
like below
RId RSId CType Cname FromTable DisplayCname Valuecname Date
1 1 dropdown EmpName emp name id null
1 2 datepicker FDate null null null Today
1 3 dropdown EmpName1 emp name id null
1 4 datepicker TDate null null null Yesday
Later i have updated my query like below
in below query i have added one new control Gender and Removed 2 controls from that query
SELECT dbo.emp.name, dbo.edata.oid, dbo.edata.qty, dbo.edata.Rate, dbo.edata.MDate FROM dbo.edata INNER JOIN dbo.emp ON dbo.edata.id = dbo.emp.id where emp.id = {Empname} and edata.MDate >= {FDate} and Gender={Gender}
After clciking of edit button i need to remove EmpName1 and TDate from database since these controls are present in query
and add one control Gender since i have added new
RId RSId CType Cname FromTable DisplayCname Valuecname Date
1 1 dropdown EmpName emp name id null
1 2 datepicker FDate null null null Today
1 5 Gender
Could you please help me