Click here to Skip to main content
16,006,440 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow do i store news articles? Pin
marvc19-Sep-07 23:46
marvc19-Sep-07 23:46 
Questionprevious page is error but still work.. Pin
hardyyanto9-Sep-07 23:39
hardyyanto9-Sep-07 23:39 
AnswerRe: previous page is error but still work.. Pin
John-ph10-Sep-07 0:37
John-ph10-Sep-07 0:37 
GeneralRe: previous page is error but still work.. Pin
hardyyanto10-Sep-07 5:03
hardyyanto10-Sep-07 5:03 
Questionexcel not working uniformly across machines with same os Pin
S Palip9-Sep-07 23:11
S Palip9-Sep-07 23:11 
Questionmake procedure to check balance > or < totalcost Pin
hardyyanto9-Sep-07 23:03
hardyyanto9-Sep-07 23:03 
AnswerRe: make procedure to check balance > or < totalcost Pin
John-ph10-Sep-07 1:27
John-ph10-Sep-07 1:27 
GeneralRe: make procedure to check balance > or < totalcost Pin
hardyyanto10-Sep-07 5:27
hardyyanto10-Sep-07 5:27 
thx for ur responding..
my store procedure like that:

ALTER PROCEDURE [bank].[dbo].[pay]
(
@no_bill INT,
@no_order int,
@totalcost money,
@message varchar(100) -- make it output parameter in your stored procedure
)
AS

BEGIN TRANSACTION

DECLARE @balance AS money



select @balance = balance
from bank.dbo.bill
where no_bill = @no_bill

select @totalcost = totalcost
from games.dbo.totalcost
where no_order = @no_order

if (@balance > @totalcost)
begin
set @balance = @balance - @totalcost

UPDATE bank.dbo.bill
SET
[balance] = @balance
WHERE [no_bill] = @no_bill

-- set @message = 'your have enough balance'
end
else
begin
set @message = 'sorry, your balance not enough'
end

COMMIT TRANSACTION

set nocount off

but it's not display message. it's must use output code to display it. but i don't about output code. can u add output code to my store procedure?pls...
thx
QuestionUnmatched records from DataTables Pin
jayarajmrj9-Sep-07 22:55
jayarajmrj9-Sep-07 22:55 
AnswerRe: Unmatched records from DataTables Pin
PrakashBhaskar10-Sep-07 0:54
PrakashBhaskar10-Sep-07 0:54 
AnswerRe: Unmatched records from DataTables Pin
John-ph10-Sep-07 1:03
John-ph10-Sep-07 1:03 
Question[Message Deleted] Pin
Sreekumar P P9-Sep-07 22:41
Sreekumar P P9-Sep-07 22:41 
AnswerRe: MOSS 2007 Workflow Pin
John-ph9-Sep-07 22:55
John-ph9-Sep-07 22:55 
AnswerRe: MOSS 2007 Workflow Pin
Pete O'Hanlon9-Sep-07 23:00
mvePete O'Hanlon9-Sep-07 23:00 
Questionget image properties with javascript [modified] Pin
morteza579-Sep-07 22:25
morteza579-Sep-07 22:25 
AnswerRe: get image properties with javascript Pin
morteza579-Sep-07 23:29
morteza579-Sep-07 23:29 
QuestionIFRAME through ASP.NET with C# Pin
.NET- India 9-Sep-07 21:59
.NET- India 9-Sep-07 21:59 
AnswerRe: IFRAME through ASP.NET with C# Pin
John-ph9-Sep-07 22:48
John-ph9-Sep-07 22:48 
QuestionHOw to display the button id Pin
Mri1a9-Sep-07 21:55
Mri1a9-Sep-07 21:55 
AnswerRe: HOw to display the button id Pin
John-ph9-Sep-07 22:10
John-ph9-Sep-07 22:10 
GeneralRe: HOw to display the button id Pin
Mri1a10-Sep-07 1:11
Mri1a10-Sep-07 1:11 
Questioncan we define the table and div property in the skin in asp.net Pin
Piyush Vardhan Singh9-Sep-07 20:49
Piyush Vardhan Singh9-Sep-07 20:49 
AnswerRe: can we define the table and div property in the skin in asp.net Pin
John-ph9-Sep-07 21:55
John-ph9-Sep-07 21:55 
GeneralRe: can we define the table and div property in the skin in asp.net Pin
Piyush Vardhan Singh9-Sep-07 22:07
Piyush Vardhan Singh9-Sep-07 22:07 
GeneralRe: can we define the table and div property in the skin in asp.net Pin
John-ph9-Sep-07 22:15
John-ph9-Sep-07 22:15 

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.