15,896,730 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by sahar11 (Top 15 by date)
sahar11
10-Jul-15 15:35pm
View
hiThank you very much.
I can not use Excel. This is just a small part of my project.
sahar11
29-Oct-14 1:38am
View
HiThanks a lot.This was helpful solution. My problem solved.
Best regards,
sahar11
28-Oct-14 1:32am
View
Excuse me for my english languege.
I want send and recive message via my form and save these messages in a table in sql. I want notificate to user when a message send for his.
How can I understand (ontime) that a message save in my table?
sahar11
23-Sep-14 11:18am
View
HiNo, I want have two button named up and down. when user click on up button, move up selected row of radgridview and when click on down button move down selected row of radgridview.
(swap two rows)
thanks,
sahar11
23-Sep-14 11:14am
View
Hiabout winforms.
thanks
sahar11
6-Sep-14 2:35am
View
I want link to an old project that write by foxpro
sahar11
25-Jul-14 7:15am
View
I close it,then open and create new project. but I get the same problem.
for reset setting: toole menu -> import and export setting -> reset all setting
sahar11
24-Jul-14 2:48am
View
I close it and then restart but ot fixed the problem
even I resest all setting of visual studio, but no thing change.
sahar11
24-Jul-14 1:43am
View
shut down VS means that close it or by other way???
sahar11
24-Jul-14 1:05am
View
I use Visual Studio(winform application). I add some component to toolbox. I use this component in my projects and dont re_install it.
sahar11
19-Jul-14 14:51pm
View
Hi Hard_Rockz, thanks a lot for your attention.
I see your recommended article, and try to use this solution for my work but I have still problem whit rollback.
can I request of you to see my code and let me know my mistake.
I have a class for connect to database(access layer) and a function in this class (docommand) to execute my query. I create an instance of this class named al and then this code:
using (TransactionScope tr = new TransactionScope())
{
try
{
al.docommand("insert into st values (110,'ali',12,'red')");
al.docommand("insert into st values (111,'anna',12,'red')");
al.docommand("insert into st values (111,'sara',12,'red')");
tr.Complete();
tr.Dispose();
MessageBox.Show("Successful");
}
catch (TransactionException ex)
{
MessageBox.Show(ex.ToString());
}
catch
{
MessageBox.Show("error");
}
}
tertiary insert has an error and dont execute, but no rollback happen and two first insert has been executed and add data to my table(st).
I am sorry if my English Language is very bad.
sahar11
19-Jul-14 8:30am
View
I write this code in my project, but when happened error in procedure3, other procedures (1 and 2) executed and rollback do not happen. please see my code and help me.thanks
private void button1_Click(object sender, EventArgs e)
{
using (TransactionScope tr=new TransactionScope())
{
try
{
docommand("exec proc1"); // execute procedure1
docommand("exec proc2"); // execute procedure2
docommand("exec proc3"); // execute procedure3
tr.Complete();
tr.Dispose();
MessageBox.Show("Successful");
}
catch(TransactionException ex)
{
tr.Dispose();
MessageBox.Show(ex.ToString());
}
catch (Exception ex1)
{
MessageBox.Show(ex1.Message);
}
}
}
sahar11
13-Feb-14 13:55pm
View
Thanks for your attention, but this link don't work. I can not open this page.
sahar11
1-Nov-13 11:43am
View
I add lock & unlock.
and set sessionstate mode to InProc in the Web.config file.
but the result no change!
Session_End event is raised when close a browser?
sahar11
5-Sep-13 19:59pm
View
I add color name in combo at run time
what code I write Instead Of the one in question???
Show More