TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Amy Turnbull
NA
40
0
Button Event
Sep 17 2007 10:33 AM
Anyone tell me why after pressing the CheckOut button it dont go to the CheckIn button after, this is my code, any questions let me know
string myConnectionString = (string) ConfigurationSettings.AppSettings["ConnectionString"];
// create connection
SqlConnection cnn = new SqlConnection(myConnectionString);
// create command
SqlCommand cmd = cnn.CreateCommand();
cmd.CommandType = CommandType.Text;
string CheckedOut = "0";
if (CheckedOut == "1")
{
cmd.CommandText = "select * from CheckedOut where CheckedOut = '1'";
CheckOut.Visible = false;
CheckIn.Visible = true;
Console.WriteLine("Please check IN your IR");
}
else
{
cmd.CommandText = "select * from CheckedOut where CheckedOut = '0'";
CheckIn.Visible = false;
CheckOut.Visible = true;
Console.WriteLine("Check OUT IR first");
}
}
Reply
Answers (
9
)
Opening a file from my application
Web Services: How to change http header of the request