15,910,877 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 Member 9599975 (Top 10 by date)
Member 9599975
23-Mar-15 17:25pm
View
Does it make a difference. Maybe it good practice to swap them over.
Member 9599975
23-Mar-15 17:22pm
View
I have used
protected void Addition_Click(object sender, EventArgs e)
{
int num1 = Convert.ToInt32(number1.Text);
int num2 = Convert.ToInt32(number2.Text);
answer.Text = (num1 + num2).ToString();
}
protected void Subtraction_Click(object sender, EventArgs e)
{
int num1 = Convert.ToInt32(number1.Text);
int num2 = Convert.ToInt32(number2.Text);
answer.Text = (num1 - num2).ToString();
}
I was just wondering if I could avoid duplicating
int num1 = Convert.ToInt32(number1.Text);
int num2 = Convert.ToInt32(number2.Text);
I know it is a simple application. But im learning and thought I could make it more efficient thats all
Member 9599975
23-Mar-15 17:08pm
View
I just wanted to be efficient when using the textbox values by either putting them in a class and storing them as a variable maybe and then using them in the click event by either adding or subtracting the values and placing them in a label. It seems this may not be possible.
However I know how to call the textbox values serperately for each event.
Member 9599975
14-Mar-13 14:33pm
View
I set an ID to the list item and then used .visible = false.
Member 9599975
14-Mar-13 14:03pm
View
How can i do this server side. I need it to happen when the session is null.
Member 9599975
14-Mar-13 9:17am
View
Sorry I have sorted it
Member 9599975
28-Feb-13 15:30pm
View
I have added the code to my page but it does not work.
Member 9599975
8-Feb-13 17:03pm
View
Thanks but this still hasn't worked.
Member 9599975
8-Feb-13 12:04pm
View
Hi when i press checkout on the form it correctly directs me to paypal but to an empty basket.
I would expect "add to cart" to send the details of the cart item selected but doesnt.
Member 9599975
5-Feb-13 9:32am
View
That didn't work. "Input string was not in a correct format. "
The £ sign needs to be removed from the label text.
I found a solution to that problem create another label without the currency but made it not visible and referenced that label instead.
Show More