Click here to Skip to main content
15,918,742 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Scroll Bar Position Pin
Ajeet mittal29-May-08 20:28
Ajeet mittal29-May-08 20:28 
GeneralRe: Scroll Bar Position Pin
Sandeep Akhare29-May-08 21:38
Sandeep Akhare29-May-08 21:38 
GeneralRe: Scroll Bar Position Pin
Ajeet mittal29-May-08 22:02
Ajeet mittal29-May-08 22:02 
GeneralRe: Scroll Bar Position Pin
Sandeep Akhare29-May-08 22:23
Sandeep Akhare29-May-08 22:23 
GeneralRe: Scroll Bar Position Pin
Ajeet mittal29-May-08 22:34
Ajeet mittal29-May-08 22:34 
GeneralRe: Scroll Bar Position Pin
Sandeep Akhare29-May-08 23:19
Sandeep Akhare29-May-08 23:19 
GeneralRe: Scroll Bar Position Pin
Ajeet mittal29-May-08 23:29
Ajeet mittal29-May-08 23:29 
QuestionIs my TRIGGER correct?? Pin
Karan_TN29-May-08 19:23
Karan_TN29-May-08 19:23 
Currently i m using sql server 2000. when i directly modify the values inside the database the following TRIGGER fires correctly. But when pass values from front end (ASP.NET with C#, .net 2005, 2.0 framework) "update tbl_ORA_TBOps set Percentage_Compliant=((@comp/@tot_ex)*100) where AutoID=@id" this alone not working.. what problem.....? plz..

CREATE TRIGGER [calc] ON dbo.tbl_ORA_TBOps
AFTER INSERT, UPDATE
AS

begin
update tbl_ORA_TBOps set Total=(Compliant+Non_Compliant+InProgress+InputNotReceived+NA)
update tbl_ORA_TBOps set Total_Excl_NA=Total-NA
end

begin

declare @tot numeric
declare @na numeric
declare @tot_ex numeric
declare @comp numeric
declare @id numeric

select @tot=(Select total from inserted)
select @na=(Select NA from inserted)
select @tot_ex=(Select Total_Excl_NA from inserted)
select @comp=(Select Compliant from inserted)
select @id=(Select AutoID from inserted)

if (@tot=@na)
begin
update tbl_ORA_TBOps set Percentage_Compliant=100 where AutoID=@id
end

else

if (@tot_ex=0)
begin
update tbl_ORA_TBOps set Percentage_Compliant=0 where AutoID=@id
end

else

begin
update tbl_ORA_TBOps set Percentage_Compliant=((@comp/@tot_ex)*100) where AutoID=@id
end

end

in the above trigger, i m getting incorrect Percentage_Compliant value. how to solve this (i m very beginner to TRIGGERS). is the IF...ELSE loop correct? HELP ME! - KARAN
QuestionUse style sheet with webusercontrol Pin
S.Aijaz29-May-08 19:13
S.Aijaz29-May-08 19:13 
AnswerRe: Use style sheet with webusercontrol Pin
Vasudevan Deepak Kumar29-May-08 19:21
Vasudevan Deepak Kumar29-May-08 19:21 
GeneralRe: Use style sheet with webusercontrol Pin
S.Aijaz29-May-08 19:25
S.Aijaz29-May-08 19:25 
GeneralRe: Use style sheet with webusercontrol Pin
Vasudevan Deepak Kumar29-May-08 19:28
Vasudevan Deepak Kumar29-May-08 19:28 
GeneralRe: Use style sheet with webusercontrol Pin
S.Aijaz29-May-08 19:35
S.Aijaz29-May-08 19:35 
Questionhow to process String?????? Pin
phuhoa29-May-08 19:04
phuhoa29-May-08 19:04 
Answer[Duplicate Post. Ignore] Re: how to process String?????? Pin
Vasudevan Deepak Kumar29-May-08 19:06
Vasudevan Deepak Kumar29-May-08 19:06 
Questionhow to process String??? Pin
phuhoa29-May-08 18:57
phuhoa29-May-08 18:57 
AnswerRe: how to process String??? Pin
Vasudevan Deepak Kumar29-May-08 19:00
Vasudevan Deepak Kumar29-May-08 19:00 
QuestionUpdating Gridview on one page from a different page. Pin
Jacob Dixon29-May-08 15:21
Jacob Dixon29-May-08 15:21 
AnswerRe: Updating Gridview on one page from a different page. Pin
N a v a n e e t h29-May-08 15:42
N a v a n e e t h29-May-08 15:42 
GeneralRe: Updating Gridview on one page from a different page. Pin
Jacob Dixon29-May-08 15:53
Jacob Dixon29-May-08 15:53 
GeneralRe: Updating Gridview on one page from a different page. Pin
Jacob Dixon29-May-08 15:56
Jacob Dixon29-May-08 15:56 
GeneralRe: Updating Gridview on one page from a different page. Pin
N a v a n e e t h29-May-08 15:58
N a v a n e e t h29-May-08 15:58 
GeneralRe: Updating Gridview on one page from a different page. Pin
Jacob Dixon29-May-08 16:07
Jacob Dixon29-May-08 16:07 
GeneralRe: Updating Gridview on one page from a different page. Pin
Jacob Dixon29-May-08 16:14
Jacob Dixon29-May-08 16:14 
GeneralRe: Updating Gridview on one page from a different page. Pin
N a v a n e e t h29-May-08 16:29
N a v a n e e t h29-May-08 16:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.