Click here to Skip to main content
15,895,142 members
Articles / Web Development / HTML

Handling Related Data in Multiple DataGrids with Code Behind and JavaScript

Rate me:
Please Sign up or sign in to vote.
3.50/5 (3 votes)
3 Nov 2006 25.1K   194   19  
An article on handling data persistency on multiple DataGrids with JavaScript an code-behind.
CREATE procedure dbo.usp_UpdateVisitedBreakdown( 
@caserefno varchar(50),
@CatID int, 
@AreaID int, 
@desc varchar(200), 
@risk int ,
@comments varchar(1000)
) 

as 
if @risk<0 
set @risk=@risk*-1
if @CatID <>0 and @AreaID<>0 
begin
 if exists (select * from BreakDown_Visited where lower(CatID) = lower(@CatID) and  lower(AreaID) = lower(@AreaID) and CaseRefNo=@caserefno ) 
         begin 
                update 
                        BreakDown_Visited
                set 
  CaseRefNo=@caserefno,
                        CatID = @CatID ,
                        AreaID = @AreaID ,
                        ID = @desc ,
                        risk = @risk ,
  comments=@comments
                where 
                        CatID= @CatID and AreaID=@AreaID
          end 
  else 
          begin 
                 insert into BreakDown_Visited(CaseRefNo,CatID,AreaID,ID,risk,comments) values(@caserefno,@CatID,@AreaID,@desc ,@risk,@comments) 
                 
                end 
end
GO

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions