473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Please Advise

I created one page Evaluation application with C #

The final score code is

Expand|Select|Wrap|Line Numbers
  1. decimal finalres = res1T10 + res2T10 + res3T10 + res4T10 ;
  2.         int FinalToRemove = PtoRemove1T10 + PtoRemove2T10 + PtoRemove3T10 + PtoRemove4T10 ;
  3.         if (finalres >= 1 && finalres <= 20)
  4.         {
  5.             lastScoreT10 = 5;
  6.         }
  7.         if (finalres >= 21 && finalres <= 40)
  8.         {
  9.             lastScoreT10 = 4;
  10.         }
  11.         if (finalres >= 41 && finalres <= 60)
  12.         {
  13.             lastScoreT10 = 3;
  14.         }
  15.         if (finalres >= 61 && finalres <= 80)
  16.         {
  17.             lastScoreT10 = 2;
  18.         }
  19.         if (finalres >= 81 && finalres <= 100)
  20.         {
  21.             lastScoreT10 = 1;
  22.         }
  23.         if (finalres == 0)
  24.         {
  25.             lastScoreT10 = 6;
I need to change the (lastScoreT10 = 6) to text (lastScoreT10 = Enter Evaluation)

How can I do that.
May 1 '11 #1
1 1172
Marknut
42
You can run javascript to do this:

var result = prompt("Question", "Default text"); document.getElementById("HiddenInputBox").value = result;

http://stackoverflow.com/questions/6...utbox-function
May 9 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Girish Agarwal | last post by:
--0-474210375-1058976151=:31789 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline Note: forwarded message attached. __________________________________
1
by: Question | last post by:
I am making a custom small menu which is most basic. Problem is that I can't make the first step work for some reason. I have an image to the left of where would be the layer positioned. This...
1
by: artifact | last post by:
Hello Can anyone tell me what is the best way to persist a complex object across postbacks in ASP.NET eg * I have a Person class with methods to edit the person's info * I navigate to my...
7
by: SQLDBA | last post by:
I am in the process of evaluating some SQL Performance Monitoring /DBA tool to purchase (For SQL Server 2000). I have the following list of software that I came across and have to finalize which...
1
by: Sergiy Klokov | last post by:
i need to put a water mark in my pdf... and pdf viewer ocx... not Adobe ... please advise something
4
by: GTi | last post by:
What is the best method for doing this: Connection class containing: - Connection handle - Connection name - connection properties - disconnection of connection Group class containing: -...
4
by: mike_li | last post by:
Passed DB2 UDB 701 test, how can I prepare for 704 test (Advanced DBA)? There is not as many info. on this test as on others. Thanks. Mike
0
by: hariprakash | last post by:
Hii Dudes, Iam Hariprakash. Today I was searching for DB2 DBA in google for exam 701. I got this link. This is very interesting and just now I joined this group. I took the exam 701 last tuesday...
0
by: User | last post by:
Hi everyone, Right now, one of our client have an in-house system which stores customer profiles / data. We are building an external web based system for them which also houses the same...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.