Click here to Skip to main content
16,016,712 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: I want to refresh only a control Pin
indian14323-Jan-07 3:35
indian14323-Jan-07 3:35 
GeneralRe: I want to refresh only a control Pin
Not Active23-Jan-07 3:48
mentorNot Active23-Jan-07 3:48 
GeneralRe: I want to refresh only a control Pin
indian14323-Jan-07 17:50
indian14323-Jan-07 17:50 
AnswerRe: I want to refresh only a control Pin
gauthee23-Jan-07 21:27
gauthee23-Jan-07 21:27 
GeneralRe: I want to refresh only a control Pin
indian14323-Jan-07 22:02
indian14323-Jan-07 22:02 
Questionhow to sign the cookie secure ? Pin
King Shez23-Jan-07 0:53
King Shez23-Jan-07 0:53 
QuestionOnRowCommand doesn't work properly with Sorting Pin
Omkar Ghaisas23-Jan-07 0:19
Omkar Ghaisas23-Jan-07 0:19 
Questionproblem in commit & roll back [modified] Pin
micydon22-Jan-07 23:58
micydon22-Jan-07 23:58 
Hi anybody pls help me its very urgent

I am facing a problem while doing commit & roll back in one of my pages. My problem is i have
to upload data from one database(accounts) to another say Gaccounts programmatically.
In my web.config i wrote 2 connections by name con(for database accounts), con1(for
Database-Gaccounts).
Then in my program i am using commit & roll back.

I have to check the code from ledger table (say 0003) with code in accounts table if it exist then i have to check whether that code exits in accounts table of gaccounts database. If it is not there I have to add more value in the code like (0003tvm) and then create a row in accounts table of gaccounts database with this new code. This much am not feeling any problem.

Now I have to update this new code back in accounts table of accounts database. .here the problem comes if roll back happens then also updating of this code take place
Creating complete error .I am giving database details in a class file. In this project I used 2 class files say objdb-representing accounts and objmdb-for gaccounts.

‘This is the code I am using for roll backing

Dim objCon1 As New oleDbConnection(ConfigurationSettings.AppSettings.Get("con1"))
Dim objCmd As New OleDbCommand
Dim objTran As OleDbTransaction
objCon1.Open()
objTran = objCon1.BeginTransaction
objCmd.Connection = objCon1
objCmd.Transaction = objTran

Try
****** I have given the code for updating as *******

'sSQL = " Update accounts set txtmastcode='" & snewcode& "'WHERE txtcode='" & objdr("txtcode") & "'"
ireturn=objdb.executenonquerry(ssql,objdb.opendb)


objTran.Commit()

Catch ex As Exception
objTran.Rollback()
MessageBox.Show("Transaction failed. Contact Administartor")
MessageBox.Show(ex.Message().ToString())
Finally
objCon1.Close()
objCmd.Dispose()
End Try

Please anybody help me , this is very urgent.


-- modified at 13:25 Wednesday 24th January, 2007
QuestionSetting Logical Path for ASP.NET [modified] Pin
anandhakumar22-Jan-07 23:34
anandhakumar22-Jan-07 23:34 
AnswerRe: Setting Logical Path for ASP.NET Pin
Declan Bright23-Jan-07 4:13
Declan Bright23-Jan-07 4:13 
GeneralRe: Setting Logical Path for ASP.NET Pin
anandhakumar23-Jan-07 18:50
anandhakumar23-Jan-07 18:50 
Questiontag Pin
Uma Kameswari22-Jan-07 22:52
Uma Kameswari22-Jan-07 22:52 
AnswerRe: tag Pin
Parwej Ahamad22-Jan-07 23:23
professionalParwej Ahamad22-Jan-07 23:23 
AnswerRe: tag Pin
RichardGrimmer23-Jan-07 1:24
RichardGrimmer23-Jan-07 1:24 
Questioncontext menu on webpage Pin
dalbhide bipin22-Jan-07 22:06
dalbhide bipin22-Jan-07 22:06 
AnswerRe: context menu on webpage Pin
Swapnil Piparia22-Jan-07 23:05
Swapnil Piparia22-Jan-07 23:05 
GeneralRe: context menu on webpage Pin
dalbhide bipin22-Jan-07 23:11
dalbhide bipin22-Jan-07 23:11 
GeneralRe: context menu on webpage Pin
Swapnil Piparia22-Jan-07 23:36
Swapnil Piparia22-Jan-07 23:36 
GeneralRe: context menu on webpage Pin
dalbhide bipin22-Jan-07 23:53
dalbhide bipin22-Jan-07 23:53 
GeneralRe: context menu on webpage Pin
Swapnil Piparia23-Jan-07 2:03
Swapnil Piparia23-Jan-07 2:03 
Questioni want to refresh the page of asp.net without blinking. Pin
sathyan_829422-Jan-07 21:57
sathyan_829422-Jan-07 21:57 
AnswerRe: i want to refresh the page of asp.net without blinking. Pin
Guffa22-Jan-07 22:25
Guffa22-Jan-07 22:25 
Questionwhat is the solution Pin
sathyan_829422-Jan-07 21:56
sathyan_829422-Jan-07 21:56 
AnswerRe: what is the solution Pin
kirthikirthi23-Jan-07 0:23
kirthikirthi23-Jan-07 0:23 
QuestionMissing an assembly reference Pin
nclauder22-Jan-07 21:48
nclauder22-Jan-07 21:48 

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.