Hi All In this blog you will get to know some of the problems i have faced during my day to day work. and the solutiosn that i have used for those problems.
Showing posts with label Nipam Budhabhatti. Show all posts
Showing posts with label Nipam Budhabhatti. Show all posts
Monday, April 11, 2011
Count with xpath
Labels:
Baroda,
Count with xpath,
Join,
Kutch,
Nipam,
Nipam Budhabhatti,
Pune,
XPATH
Tuesday, March 29, 2011
Left outer join in Linq C#
Left join Linq
from a in aa join a in xx on a.d equals x.y into DefaultOrEmptyXDetails from a in DefaultOrEmptyXDetails.DefaultIfEmpty() select new a)
Labels:
Join,
Linq,
Nipam,
Nipam Budhabhatti,
Pune,
Software Developer
Wednesday, March 23, 2011
Updating multiple rows from trigger byy inserted table
Hi All
Many times we are facing that we need to change the value of Column1 of Table2 when Table1 updates.
This below is given solution by- Nipam Budhabhatti
So we need trigger.
We can either select value in some variable.
but it has problem that we cannt update all rows.
so this is the solution
by implementing it we are sure that all records in Table2 are updated after updating table1.
CREATE TRIGGER [TrgName] ON Table1
FOR UPDATE
AS
UPDATE Table2
SET
Column1 = INSERTED.Column2
FROM INSERTED
WHERE
Column3 = Column4
Nipam Budhabhatti
Many times we are facing that we need to change the value of Column1 of Table2 when Table1 updates.
This below is given solution by- Nipam Budhabhatti
So we need trigger.
We can either select value in some variable.
but it has problem that we cannt update all rows.
so this is the solution
by implementing it we are sure that all records in Table2 are updated after updating table1.
CREATE TRIGGER [TrgName] ON Table1
FOR UPDATE
AS
UPDATE Table2
SET
Column1 = INSERTED.Column2
FROM INSERTED
WHERE
Column3 = Column4
Nipam Budhabhatti
Friday, March 11, 2011
textbox default button
javascript:
function clickButton(e, buttonid){
var evt = e ? e : window.event;
var bt = document.getElementById(buttonid);
if (bt){
if (evt.keyCode == 13){
bt.click();
return false;
}
}
}
TextBox1.Attributes.Add("onkeypress", "return clickButton(event,'" + Button1.ClientID + "')");
function clickButton(e, buttonid){
var evt = e ? e : window.event;
var bt = document.getElementById(buttonid);
if (bt){
if (evt.keyCode == 13){
bt.click();
return false;
}
}
}
TextBox1.Attributes.Add("onkeypress", "return clickButton(event,'" + Button1.ClientID + "')");
Thursday, March 10, 2011
Explicit implement interfacess
Hi All
when we are explicitly implementing interface like..
if we have 2 interfaces which has same method; one class implements both,
then in derivced class we can not use public as access modifier to those implemented methods.
2 solve this i think we can create one wrapper method.
that method checks the type od object and according to type it will execute the method from those implemented.
I think this will help us to understand the working of interface little more.
when we are explicitly implementing interface like..
if we have 2 interfaces which has same method; one class implements both,
then in derivced class we can not use public as access modifier to those implemented methods.
2 solve this i think we can create one wrapper method.
that method checks the type od object and according to type it will execute the method from those implemented.
I think this will help us to understand the working of interface little more.
Subscribe to:
Posts (Atom)

