Please Advise

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nebula53
    New Member
    • Aug 2010
    • 32

    Please Advise

    I created one page Evaluation application with C #

    The final score code is

    Code:
    decimal finalres = res1T10 + res2T10 + res3T10 + res4T10 ;
            int FinalToRemove = PtoRemove1T10 + PtoRemove2T10 + PtoRemove3T10 + PtoRemove4T10 ;
            if (finalres >= 1 && finalres <= 20)
            {
                lastScoreT10 = 5;
            }
            if (finalres >= 21 && finalres <= 40)
            {
                lastScoreT10 = 4;
            }
            if (finalres >= 41 && finalres <= 60)
            {
                lastScoreT10 = 3;
            }
            if (finalres >= 61 && finalres <= 80)
            {
                lastScoreT10 = 2;
            }
            if (finalres >= 81 && finalres <= 100)
            {
                lastScoreT10 = 1;
            }
            if (finalres == 0)
            {
                lastScoreT10 = 6;
    I need to change the (lastScoreT10 = 6) to text (lastScoreT10 = Enter Evaluation)

    How can I do that.
  • Marknut
    New Member
    • Apr 2010
    • 42

    #2
    You can run javascript to do this:

    var result = prompt("Questio n", "Default text"); document.getEle mentById("Hidde nInputBox").val ue = result;

    VB has a function InputBox() that will prompt the user to enter a single value, then click OK. Is there a parallel functionality in ASP.NET, that will get the browser to pop up some kind of input ...

    Comment

    Working...