Click here to Skip to main content
15,902,635 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Using ViewBag values set in a Controller for conditional logic in the controller's View Pin
Kornfeld Eliyahu Peter23-Jun-14 3:23
professionalKornfeld Eliyahu Peter23-Jun-14 3:23 
GeneralRe: Using ViewBag values set in a Controller for conditional logic in the controller's View Pin
Stephen Holdorf23-Jun-14 6:13
Stephen Holdorf23-Jun-14 6:13 
AnswerRe: Using ViewBag values set in a Controller for conditional logic in the controller's View Pin
Kornfeld Eliyahu Peter23-Jun-14 6:16
professionalKornfeld Eliyahu Peter23-Jun-14 6:16 
GeneralRe: Using ViewBag values set in a Controller for conditional logic in the controller's View Pin
Stephen Holdorf23-Jun-14 7:08
Stephen Holdorf23-Jun-14 7:08 
AnswerRe: Using ViewBag values set in a Controller for conditional logic in the controller's View Pin
Kornfeld Eliyahu Peter23-Jun-14 7:11
professionalKornfeld Eliyahu Peter23-Jun-14 7:11 
QuestionFormatting problem with Expandalbe .NET Gridview Pin
estreb22-Jun-14 4:21
estreb22-Jun-14 4:21 
AnswerRe: Formatting problem with Expandalbe .NET Gridview Pin
Kornfeld Eliyahu Peter23-Jun-14 2:13
professionalKornfeld Eliyahu Peter23-Jun-14 2:13 
Questionasp.net Pin
Priyabl22-Jun-14 0:08
Priyabl22-Jun-14 0:08 
You are using a ASP.NET and ADO.NET to create an accounting application for your company.
You are writing code to run a set of stored procedures that perform posting operations in a
database at the end of each month. You use an OleDbConnection object to connect to the
database. You use an OleDbConnection object to connect to the database. You use an
OleDbCommand object to run the stored procedures. If an error occurs during execution of any
of the stored procedures, you want to roll back any data changes that were posted. You want the
changes to be committed only if all of the posting operations succeed. You write code to catch an
OleDbException object if an error occurs during the execution of a stored procedure. What else
should you do?

1. Call the Begin Trasaction method of the OleDbConnection object before running the stored
procedure. If an error occurs, use the OleDbConnection object to roll back the changes.

2. Call the BeginTransaction method of the OleDbConnection object before running the stored
procedures. If an error occurs, use the OleDbException object to roll back the changes.

3. Use the BeginTransaction method of the OleDbConnection object to create an
OleDbTransaction object. Assign the OleDbTransaction object to the Transaction property of
your OleDbCommand object. If an error occurs, use the OleDbTransaction object to roll back
the changes.

4. Use the BeginTransaction method of the OleDbConnection object to create an OleDbTransaction object. Pass a reference to the OleDbTransaction object to each stored procedure. Use error handling inside the stored procedures to roll back the changes
priya

AnswerRe: asp.net Pin
Kornfeld Eliyahu Peter22-Jun-14 0:20
professionalKornfeld Eliyahu Peter22-Jun-14 0:20 
GeneralRe: asp.net Pin
Priyabl22-Jun-14 0:29
Priyabl22-Jun-14 0:29 
AnswerRe: asp.net Pin
Kornfeld Eliyahu Peter22-Jun-14 0:31
professionalKornfeld Eliyahu Peter22-Jun-14 0:31 
GeneralRe: asp.net Pin
Priyabl22-Jun-14 0:37
Priyabl22-Jun-14 0:37 
Questiontextbox does not begin with the number Pin
Member 1032497421-Jun-14 21:06
Member 1032497421-Jun-14 21:06 
AnswerRe: textbox does not begin with the number Pin
Richard Deeming23-Jun-14 2:26
mveRichard Deeming23-Jun-14 2:26 
GeneralRe: textbox does not begin with the number Pin
Member 1032497423-Jun-14 7:24
Member 1032497423-Jun-14 7:24 
GeneralRe: textbox does not begin with the number Pin
Richard Deeming23-Jun-14 11:19
mveRichard Deeming23-Jun-14 11:19 
AnswerRe: textbox does not begin with the number Pin
Sibeesh KV29-Sep-14 1:53
professionalSibeesh KV29-Sep-14 1:53 
QuestionRe: How to get values from dynamically created controls Pin
Member 1089879721-Jun-14 19:12
Member 1089879721-Jun-14 19:12 
QuestionCheckboxlist combobox in Asp.net Pin
Elham M21-Jun-14 18:10
Elham M21-Jun-14 18:10 
AnswerRe: Checkboxlist combobox in Asp.net Pin
thatraja21-Jun-14 18:27
professionalthatraja21-Jun-14 18:27 
GeneralRe: Checkboxlist combobox in Asp.net Pin
Elham M28-Jun-14 21:25
Elham M28-Jun-14 21:25 
QuestionRemoving a Sub Page_Load()? Pin
Member 876166721-Jun-14 15:05
Member 876166721-Jun-14 15:05 
AnswerRe: Removing a Sub Page_Load()? Pin
jkirkerx23-Jun-14 10:39
professionaljkirkerx23-Jun-14 10:39 
AnswerRe: Removing a Sub Page_Load()? Pin
Member 876166723-Jun-14 11:16
Member 876166723-Jun-14 11:16 
GeneralRe: Removing a Sub Page_Load()? Pin
jkirkerx23-Jun-14 11:40
professionaljkirkerx23-Jun-14 11:40 

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.