[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 655
  • Last Modified:

having a textbox required if a particular radio button is selected

Hi, I have a VB script that I am using.  Basically,  if the user selects a particular radio button, I need to make a textbox a required field.  Currently, it's not working that way.  The textbox is currently required regardless of the radio button selected.  Any suggestions?  Thanks!
CODE BEHIND:
 
<SCRIPT LANGUAGE="VBScript"> 
//Give users the option to enter school information
         
  Protected Sub rbl1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rbl1.SelectedIndexChanged
     
  If rblAns.SelectedValue = "status_guest" Then
      RequiredFieldValidator4.enabled = True
  else
      RequiredFieldValidator4.enabled = False
  End If
 
End Sub
 
 
 </script>
 
RADIO BUTTONS:
   Status:*<br /><asp:RadioButtonList id="status" runat="server">
 
                                <asp:ListItem id="status_undergrad" runat="server" Value="undergraduate" />
                                <asp:ListItem id="status_grad" runat="server" Value="graduate" />
                                <asp:ListItem id="status_fs" runat="server" Value="faculty or staff" />
                                 <asp:ListItem id="status_guest" runat="server" Value="guest user (non)" /></asp:RadioButtonList>   
 
                                                                                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="status"
                            ErrorMessage="Status" runat="Server" Text="*Status Required"></asp:RequiredFieldValidator><br />
                                                                                                                If you are a guest user, <br /> please tell us what school are you from:<asp:TextBox ID="school" runat="server"></asp:TextBox>
 <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="school"
                            ErrorMessage="School Name" runat="Server" Text="*School Name Required"></asp:RequiredFieldValidator>
           
        <br />

Open in new window

0
jianxin9
Asked:
jianxin9
  • 8
  • 5
1 Solution
 
NazoUKCommented:
The selected value at the moment will be "guest user (non)"
if you want to have different values and display text use something like:

<asp:ListItem value="status_guest">guest user (non)</asp:ListItem>
0
 
jianxin9Author Commented:
Hi, thanks for posting.  

When the user selects this:
      <asp:ListItem id="status_guest" runat="server" Value="guest user (non)" /></asp:RadioButtonList>  
 I want the textbox to be required, but only required if they select this radio button.  If any of the other radio buttons is selected, I do not want the textbox to be required.  Currently, the textbox is required regardless of the radio button selected.  
0
 
NazoUKCommented:
I'm saying the problem is your line:

If rblAns.SelectedValue = "status_guest" Then

The selectedvalue will never be "status_guest" which is why your code doesn't work. You need to either modify this line to match the values you have in your dropdown list or modify the list like I showed you.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jianxin9Author Commented:
Thanks for posting.  Okay, I am trying this and now I am getting a runtime error.  What am I doing wrong?
 Status:*<br /><asp:RadioButtonList id="status" runat="server">
 
                                <asp:ListItem id="status_undergrad" runat="server"  />undergraduate
                                <asp:ListItem id="status_grad" runat="server"/>graduate
                                <asp:ListItem id="status_fs" runat="server" />faculty or staff
                                 <asp:ListItem id="status_guest" runat="server" />guest user (non)</asp:RadioButtonList>   
 
                                                                                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="status"
                            ErrorMessage="Status" runat="Server" Text="*Status Required"></asp:RequiredFieldValidator><br />
                                                                                                                If you are a guest user, <br /> please tell us what school are you from:<asp:TextBox ID="school" runat="server"></asp:TextBox>
 <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="school"
                            ErrorMessage="School Name" runat="Server" Text="*School Name Required"></asp:RequiredFieldValidator>
           
        <br />

Open in new window

0
 
NazoUKCommented:
What's the error?
0
 
jianxin9Author Commented:
thanks for posting.  this is the error i am getting even though i do have    <customErrors mode="Off"/>.

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
0
 
jianxin9Author Commented:
Also, I tried the following code (have the value match the list item id) instead and the error goes away but it still isn't working.  Thanks!
<SCRIPT LANGUAGE="VBScript"> 
//Give users the option to enter school information
         
  Protected Sub rbl1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rbl1.SelectedIndexChanged
     
  If rblAns.SelectedValue = "guest" Then
      RequiredFieldValidator4.enabled = True
  else
      RequiredFieldValidator4.enabled = False
  End If
 
End Sub
 
 
 </script>
																	
      Status:*<br /><asp:RadioButtonList id="status" runat="server">
 
                               <asp:ListItem id="undergraduate" runat="server" Value="undergraduate" />
                                <asp:ListItem id="graduate" runat="server" Value="graduate" />
                                <asp:ListItem id="fs" runat="server" Value="fs" />
                                 <asp:ListItem id="guest" runat="server" Value="guest" /></asp:RadioButtonList>   
 
                                                                                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="status"
                            ErrorMessage="Status" runat="Server" Text="*Status Required"></asp:RequiredFieldValidator><br />
                                                                                                                If you are a guest user, <br /> please tell us what school are you from:<asp:TextBox ID="school" runat="server"></asp:TextBox>
 <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="school"
                            ErrorMessage="School Name" runat="Server" Text="*School Name Required"></asp:RequiredFieldValidator>
           

Open in new window

0
 
NazoUKCommented:
Actually looking at it more closely there are lots of problems with your code:
Firstly, you have marked your script with <SCRIPT LANGUAGE="VBScript"> This is not an asp.net script but a client side vbscript and will not do what you want it to. You need to make the script as <script runat="server"> to have it run as an asp.net server side script.
Secondly, you have the method marked with Handles rbl1.SelectedIndexChanged what is rbl1?
Thirdly you are trying to find the value of rblAns but your dropdownlist has an id of "status"
0
 
jianxin9Author Commented:
Thanks again for posting--I suspected that was part of the problem.  Is this what I should be trying?  When I do I am getting that same runtime error again.  Thanks!
<script runat="server">
//Give users the option to enter school information
         
  Protected Sub status1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles status1.SelectedIndexChanged
     
  If status.SelectedValue = "guest" Then
      RequiredFieldValidator4.enabled = True
  else
      RequiredFieldValidator4.enabled = False
  End If
 
End Sub
 
 
 </script>
 
 
      Status:*<br /><asp:RadioButtonList id="status" runat="server">
 
                               <asp:ListItem id="undergraduate" runat="server" Value="undergraduate" />
                                <asp:ListItem id="graduate" runat="server" Value="graduate" />
                                <asp:ListItem id="fs" runat="server" Value="fs" />
                                 <asp:ListItem id="guest" runat="server" Value="guest" onclick="ToggleTextBox();"/></asp:RadioButtonList>   
 
                                                                                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="status"
                            ErrorMessage="Status" runat="Server" Text="*Status Required"></asp:RequiredFieldValidator><br />
                                                                                                                If you are a guest user, <br /> please tell us what school are you from:<asp:TextBox ID="school" runat="server"></asp:TextBox>
 <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="school"
                            ErrorMessage="School Name" runat="Server" Text="*School Name Required"></asp:RequiredFieldValidator>
           
        <br />
  

Open in new window

0
 
NazoUKCommented:
You need to change Handles status1.SelectedIndexChanged to Handles status.SelectedIndexChanged

Also to get this to work you need to add AutoPostBack="true" and CausesValidation="false" to your radioButtonList declaration.

You can also remove the runat="server" and id="..." from each of your listitems as they aren't necessary.
0
 
jianxin9Author Commented:
Thanks I made those changes and I am still getting that same runtime error.  It just seems I can't get this to work.  I've tried VB and C#.  Is there anything I am missing?  


<script runat="server">
//Give users the option to enter school information
         
  Protected Sub status1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles status.SelectedIndexChanged
     
  If status.SelectedValue = "guest" Then
      RequiredFieldValidator4.enabled = True
  else
      RequiredFieldValidator4.enabled = False
  End If
 
End Sub
 
 
 </script>
 
   Status:*<br /><asp:RadioButtonList id="status" runat="server" AutoPostBack="true" and CausesValidation="false">
 
                               <asp:ListItem Value="undergraduate" />
                                <asp:ListItem Value="graduate" />
                                <asp:ListItem Value="fs" />
                                 <asp:ListItem Value="guest" "/></asp:RadioButtonList>   
 
                                                                                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="status"
                            ErrorMessage="Status" runat="Server" Text="*Status Required"></asp:RequiredFieldValidator><br />
                                                                                                                If you are a guest user, <br /> please tell us what school are you from:<asp:TextBox ID="school" runat="server"></asp:TextBox>
 <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="school"
                            ErrorMessage="School Name" runat="Server" Text="*School Name Required"></asp:RequiredFieldValidator>
           
        <br />
  

Open in new window

0
 
jianxin9Author Commented:
I am going to attach all of my code also in case something might stand out--I am just stumped on how to get this to work.
<%@ Page Language="c#" Debug="true"%>
 
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
<%@ Import Namespace="System.Net.Mail" %>
<%@ Import Namespace="System.Net" %>
 
<script runat="server" language="C#">
		 
 
 
  void Page_Load()
  {
      if (Page.IsPostBack)
      {
          questionsPanel.Visible = false;
          Message.Visible = true;  
          int correct = 0;
          if (q1.SelectedIndex == 2) correct++;
          if (q2.SelectedIndex == 4) correct++;
          if (q3.SelectedIndex == 2) correct++;
          if (q4.SelectedIndex == 0) correct++;
          if (q5.SelectedIndex == 5) correct++;
          if (q6.SelectedIndex == 1) correct++;
          if (q7.SelectedIndex == 2) correct++;
 
          LoadConn(correct);
      }
      else
      {
          questionsPanel.Visible = true;
          Message.Visible = false;  
      }
  }
 
private void LoadConn(int score)
{
    int percent;
    percent = (score*100)/7;  
  
    // Create the objects 
    OleDbConnection conn;
    OleDbCommand comm;
    
    // Instance the connection open it
    conn = new OleDbConnection("Provider = Microsoft.ACE.OLEDB.12.0; Data Source ="+ Server.MapPath("assessments.accdb")+";User Id=; Jet OLEDB:Database Password=;");
    conn.Open();
    
    // Create the insert SQL 
    string sSQL = "";
		string qname = "plagiarism"; 
    sSQL = "Insert into posttest_table(fname,lname,username,coursenum,emailId,emailId2,status,school,qname,answered,score,q1,q2,q3,q4,q5,q6,q7) values('" + fname.Text + "','" + lname.Text +"','" + portal_id.Text +"','"+course_id.Text+"','"+emailId.Text+"','"+emailId2.Text+"','"+(status.SelectedIndex+1)+"','"+ school.Text +"','"+(qname)+"',"+score+","+percent+","+(q1.SelectedIndex+1)+","+(q2.SelectedIndex+1)+","+(q3.SelectedIndex+1)+","+(q4.SelectedIndex+1)+","+(q5.SelectedIndex+1)+","+(q6.SelectedIndex+1)+","+(q7.SelectedIndex+1)+");";
   
    //  Response.Write(sSQL + "<br />");
    //  Response.End();
    //  return;
    
    // Create a command object from the connection
    comm = conn.CreateCommand ();
    comm.CommandText = sSQL;
    comm.CommandType = CommandType.Text;
 
    // Try the insert 
    try
    {
        comm.ExecuteNonQuery();
    }
    catch (Exception ex)
    {
        Response.Write("Error During DB Update: " + ex.ToString());
    }
    
    
   
    conn.Close();
    // Inserting data into the database end
     
    // Create the email body text
/* String bodyInfo = fname.Text+" "+lname.Text+" has taken the exam.\n <br />"+fname.Text  +" has scored: "+percent+" out of 100 and gotten "+score+" out of 7 questions correct.\n<br /><br />"+fname.Text  +"'s options were: \n<br /> Question 1. Plagiarism is the act of: <br />The correct answer is: using someone else's work and not giving them credit (Option 3)<br /> You Answered:  Option "+(q1.SelectedIndex+1)+"\n <br /><br />Question 2.  Which of the following is copyrighted infringement? <br />The correct answer is: all of the above (Option 5) <br />You Answered: Option "+(q2.SelectedIndex+1)+"\n <br /><br />Question 3.  Accidental plagiarism is: <br />The correct answer is: always unacceptable (Option 3) <br />You Answered: Option "+(q3.SelectedIndex+1)+"\n <br /><br />Question 4. When citing my resources it is important that I: <br />The correct answer is: use a standard citation format assigned by your professor (Option 1) <br />You Answered: Option "+(q4.SelectedIndex+1)+"\n <br /><br />Question 5. RefWorks can help you: <br />The correct answer is: a, c, d (Option 6) <br />You Answered: Option "+(q5.SelectedIndex+1)+"\n<br /><br /> Question 6. Which of the following best describes plagiarism?  <br />The correct answer is: It's a serious offense and can result in severe penalties (Option 2) <br />You Answered: Option "+(q6.SelectedIndex+1)+"\n<br /><br /> Question 7. When do you have to cite your resources? <br /> The correct answer is: when what you are writing about is someone else's idea (Option 3) <br /> You Answered: Option "+(q7.SelectedIndex+1);*/
 
 String bodyInfo = fname.Text+" "+lname.Text+" is a/an "+status.Text+", and has taken the exam for the course "+course_id.Text+".\n <br />"+fname.Text+" has scored: "+percent+" out of 100 and gotten "+score+" out of 7 questions correct.\n<br /><br />"+fname.Text  +"'s options were: \n<br /> Question 1. Plagiarism is the act of: <br />The correct answer is: using someone else's work and not giving them credit (Option c)<br /> You Answered:  Option "+Convert.ToChar(q1.SelectedIndex+97)+"\n <br /><br />Question 2.  Which of the following is copyrighted infringement? <br />The correct answer is: all of the above (Option e) <br />You Answered: Option "+Convert.ToChar(q2.SelectedIndex+97)+"\n <br /><br />Question 3.  Accidental plagiarism is: <br />The correct answer is: always unacceptable (Option c) <br />You Answered: Option "+Convert.ToChar(q3.SelectedIndex+97)+"\n <br /><br />Question 4. When citing my resources it is important that I: <br />The correct answer is: use a standard citation format assigned by your professor (Option a) <br />You Answered: Option "+Convert.ToChar(q4.SelectedIndex+97)+"\n <br /><br />Question 5. RefWorks can help you: <br />The correct answer is: a, c, d (Option f) <br />You Answered: Option "+Convert.ToChar(q5.SelectedIndex+97)+"\n<br /><br /> Question 6. Which of the following best describes plagiarism?  <br />The correct answer is: It's a serious offense and can result in severe penalties (Option b) <br />You Answered: Option "+Convert.ToChar(q6.SelectedIndex+97)+"\n<br /><br /> Question 7. When do you have to cite your resources? <br /> The correct answer is: when what you are writing about is someone else's idea (Option c) <br /> You Answered: Option "+Convert.ToChar(q7.SelectedIndex+97);
 
 
    // Create SMTP client
    SmtpClient client = new SmtpClient("");
        
    // Create SMTP message
    MailMessage message = new MailMessage();
 
    // Set message properties 
    message.From = new MailAddress ("");
    message.To.Add("");
    message.CC.Add(emailId.Text);
   if (!string.IsNullOrEmpty(emailId2.Text))
    {
       message.CC.Add(emailId2.Text);
    }
    message.Body = bodyInfo;
    message.Subject = "Doing Research: Plagiarism Quiz Results";
    message.IsBodyHtml = true;
   
    try
        {
 
            // Send EMail
            client.Send(message);
        }
        catch (Exception ex)
        {
            // Do Nothing  
        }
				
 
    // Send the user to the Results page
    Response.Redirect("results.aspx?fname="+fname.Text+"&lname="+lname.Text+"&score="+percent+"&q1="+(q1.SelectedIndex)+"&q2="+(q2.SelectedIndex)+"&q3="+(q3.SelectedIndex)+"&q4="+(q4.SelectedIndex)+"&q5="+(q5.SelectedIndex)+"&q6="+(q6.SelectedIndex)+"&q7="+(q7.SelectedIndex));
 
}
 
 
 
 
 </script>
 
   
<script runat="server">
//Give users the option to enter school information
         
  Protected Sub status1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles status.SelectedIndexChanged
     
  If status.SelectedValue = "guest" Then
      RequiredFieldValidator4.enabled = True
  else
      RequiredFieldValidator4.enabled = False
  End If
 
End Sub
 
 
 </script>
 
   
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Doing Research: Plagiarism Quiz</title>
    <meta name="Description" content="Texas Woman's University, with campuses in Denton, Dallas, and Houston, offers bachelor's, master's, and doctoral degrees to its students in the health sciences, the liberal arts, the fine arts, the sciences, and business." />
    <meta name="Keywords" content="texas woman's university, TWU, web guidelines, webspinners" />
    <link href="http://www.twu.edu/library/css/screen.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="http://www.twu.edu/library/css/print.css" rel="stylesheet" type="text/css" media="print" />
    <link href="http://www.twu.edu/library/css/all2_tab.css" rel="stylesheet" type="text/css" media="screen" />
    <script type="text/javascript" src="http://www.twu.edu/library/js/TAB_Function_Lib.js"></script>
 
 
 
 
 
 
 
    <style type="text/css">
        #Layer1 {
	        position:absolute;
	        width:186px;
	        height:18px;
	        z-index:3;
	        left: 407px;
	        top: 85px;
        }
        #Layer2 {
	        position:absolute;
	        width:421px;
	        height:30px;
	        z-index:4;
	        left: 603px;
	        top:78px;
        }
        .style1 {
	        font-size: 10px;
x	        color: #FFFFFF;
        }
        .style2 {font-size: 10px}
    </style>
</head>
 
 <body onUnload="TAB_GLOBAL_UNINITIALIZE(Array(Example));">
 
    </div>
<!-- InstanceBeginEditable name="content" -->
     <h2>Doing Research: Plagiarism Final</h2><img style="position:absolute; TOP:270px; LEFT:650px; " src="http://www.twu.edu/library/image/info.png" alt="twu libraries"/>
 
 <div class="heading">Please Enter Your Information</div>
<Fieldset>
<legend>Please provide the following. Items marked with * are required.</legend>
<form id="Form1" name="ctl00" method="post" action="default.aspx" runat="server">
                    <asp:label id="Message" runat="server" />
 
                        <asp:Panel id = "questionsPanel" runat ="server">
                        <asp:Label ID="Errors" runat="server" />
                        First Name:*<br />
                        <asp:TextBox ID="fname" runat="Server" /><br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="fname"
                            ErrorMessage="First Name" runat="server" Text="*First Name Required"></asp:RequiredFieldValidator>
                        <br />
                        Last Name:*<br />
                        <asp:TextBox ID="lname" runat="Server" /><br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="lname"
                            ErrorMessage="Last Name" runat="server" Text="*Last Name Required"></asp:RequiredFieldValidator>
                        <br />
																				
      Status:*<br /><asp:RadioButtonList id="status" runat="server" AutoPostBack="true" and CausesValidation="false">
 
                               <asp:ListItem Value="undergraduate" />
                                <asp:ListItem Value="graduate" />
                                <asp:ListItem Value="fs" />
                                 <asp:ListItem Value="guest" "/></asp:RadioButtonList>   
 
                                                                                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="status"
                            ErrorMessage="Status" runat="Server" Text="*Status Required"></asp:RequiredFieldValidator><br />
                                                                                                                If you are a guest user, <br /> please tell us what school are you from:<asp:TextBox ID="school" runat="server"></asp:TextBox>
 <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="school"
                            ErrorMessage="School Name" runat="Server" Text="*School Name Required"></asp:RequiredFieldValidator>
           
        <br />
  
 
 
                        Portal Username: (optional)<br />
                        <asp:TextBox ID="portal_id" runat="Server" />
                        <br />
                        <br />
												Course Name, Number and Section: (optional-ex. ENG-1023.15)<br />
                        <asp:TextBox ID="course_id" runat="Server" />
                        <br />
                        <br />
                        Your Email Address:* (a copy of your results will be sent to this address)<br />
                        <asp:TextBox ID="emailId" runat="Server" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="emailId"
                            ErrorMessage="Email" runat="Server" Text="*Email Address Is Required"></asp:RequiredFieldValidator><br />
                        <br />
                        Your Professor's Email Address: (optional-send your results to your professor)<br />
                        <asp:TextBox ID="emailId2" runat="Server" />
                        <br />
                        <p>
                            Please choose the best answer.</p>
                        <p>
                            1. Plagiarism is the act of:
                            <br />
                            <asp:RadioButtonList ID="q1" runat="server">
                                <asp:ListItem id="q1a" runat="server" Value="a. using someone else's work and citing it" />
                                <asp:ListItem id="q1b" runat="server" Value="b. using copyrighted materials for your paper" />
                                <asp:ListItem id="q1c" runat="server" Value="c. using someone else's work and not giving them credit" />
                                <asp:ListItem id="q1d" runat="server" Value="d. paraphrasing" />
                            </asp:RadioButtonList>
                        </p>
                        <p>
                            2. Which of the following is copyrighted infringement?
                            <br />
                            <asp:RadioButtonList ID="q2" runat="server">
                                <asp:ListItem id="q2a" runat="server" Value="a. photocopying a college textbook" />
                                <asp:ListItem id="q2b" runat="server" Value="b. burning a CD that you did not own" />
                                <asp:ListItem id="q2c" runat="server" Value="c. downloading music or movies that you did not pay for" />
                                <asp:ListItem id="q2d" runat="server" Value="d. buying and submitting papers that you did not write" />
                                <asp:ListItem id="q2e" runat="server" Value="e. all of the above" />
                            </asp:RadioButtonList>
                        </p>
                        <p>
                            3. Accidental plagiarism is:
                            <br />
                            <asp:RadioButtonList ID="q3" runat="server">
                                <asp:ListItem id="q3a" runat="server" Value="a. acceptable one time, as long as it was only an accident" />
                                <asp:ListItem id="q3b" runat="server" Value="b. okay if you paraphrased or changed the text a bit" />
                                <asp:ListItem id="q3c" runat="server" Value="c. always unacceptable" />
                            </asp:RadioButtonList>
                        </p>
                        <p>
                            4. When citing my resources it is important that I:
                            <br />
                            <asp:RadioButtonList ID="q4" runat="server">
                                <asp:ListItem id="q4a" runat="server" Value="a. use a standard citation format assigned by your professor" />
                                <asp:ListItem id="q4b" runat="server" Value="b. include only the title and year" />
                                <asp:ListItem id="q4c" runat="server" Value="c. use footnotes, in-text citations, and italics for every citation" />
                                <asp:ListItem id="q4d" runat="server" Value="d. all of the above" />
                            </asp:RadioButtonList>
                        </p>
                        <p>
                            5. RefWorks can help you:
                            <br />
                            <asp:RadioButtonList ID="q5" runat="server">
                                <asp:ListItem id="q5a" runat="server" Value="a. organize your research" />
                                <asp:ListItem id="q5b" runat="server" Value="b. only when you are using the MLA citation style" />
                                <asp:ListItem id="q5c" runat="server" Value="c. import references from many different data sources" />
                                <asp:ListItem id="q5d" runat="server" Value="d. create bibliographies using several citation styles" />
                                <asp:ListItem id="q5e" runat="server" Value="e. all of the above" />
                                <asp:ListItem id="q5f" runat="server" Value="f. a, c, d" />
                            </asp:RadioButtonList>
                        </p>
                        <p>
                            6. Which of the following best describes plagiarism?
                            <br />
                            <asp:RadioButtonList ID="q6" runat="server">
                                <asp:ListItem id="q6a" runat="server" Value="a. A temporary fix until you have time to re-do the work" />
                                <asp:ListItem id="q6b" runat="server" Value="b. It's a serious offense and can result in severe penalties" />
                                <asp:ListItem id="q6c" runat="server" Value="c. It's easy to commit and not easy to detect" />
                                <asp:ListItem id="q6d" runat="server" Value="d. a and b" />
                            </asp:RadioButtonList>
                        </p>
                        <p>
                            7. When do you have to cite your resources?
                            <br />
                            <asp:RadioButtonList ID="q7" runat="server">
                                <asp:ListItem id="q7a" runat="server" Value="a. when what you are writing about is your own experience" />
                                <asp:ListItem id="q7b" runat="server" Value="b. when what you are writing about is common knowledge" />
                                <asp:ListItem id="q7c" runat="server" Value="c. when what you are writing about is someone else's idea" />
                            </asp:RadioButtonList>
                        </p>
                     
												
  <asp:Button ID="b1" Text="Submit" runat="server" />
                        <asp:ValidationSummary ID="ValidationSummary1" ShowMessageBox="true" ShowSummary="false"
                            HeaderText="You must enter a value in the following fields:" EnableClientScript="true"
                            runat="server" />
                     </asp:Panel>
                   </form>
 <!-- InstanceEndEditable --></td>
  </tr>
  <tr>
    <td id="footer"></td>
  </tr>
</table>
 
 
</body>
<!-- InstanceEnd -->
</html>

Open in new window

0
 
jianxin9Author Commented:
thanks for the help!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 8
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now