iT3d.
06-01-2012, 08:22 PM
Recently, the IT guy at work quit. Since the company can't afford to hire anyone else right now and I'm the one that knows the most about computers after him, I've been delegated to redo the website so we can quit using his code.
The problem with that is I barely know basic HTML. :confused:
So I have this ASP.net "Scam Exam" that is meant to drum up business for us, and when it was embedded in the IT guy's page it worked fine. Had a few grammatical errors, but the overall functionality made it sufficient.
Well now, i need this to work in the template that I downloaded to use for the site and ran into an issue - the tempalte is only HTML, and I don't know enough about ASP.net to rework it.
So I need help taking the following code and making it work as radio buttons that will be answered and load feedback (without shifting the page) when the submit button is pressed.
Please help!
<script runat="server">
Sub submit(Sender As Object, e As EventArgs)
If coldyes.Checked Then
Label1.Text = "A company may not sell private placement securities or commodities through general solicitation." & "<br />" & "<br />"
ElseIf coldno.Checked Then
Label1.Text = ""
End If
If predyes.Checked Then
Label2.Text = "By telling you something may be a 'sure thing' or that it 'can't miss' a company may have used predatory sales tactics, which is not legally accepted." & "<br />" & "<br />"
ElseIf predno.Checked Then
Label2.Text = ""
End If
If misrepyes.Checked Then
Label3.Text = "By promising, or even suggesting large returns, the company may have misrepresented material facts, which is against regulations for securities and commodities." & "<br />" & "<br />"
ElseIf misrepno.Checked Then
Label3.Text = ""
End If
If jvyes.Checked Then
Label4.Text = "As setup, most joint venture investments do not operate as true joint ventures and instead are simply labeled as such to skirt securities issues. We have yet to see a legitimate joint venture in private placement securities." & "<br />" & "<br />"
ElseIf jvno.Checked Then
Label4.Text = ""
End If
If contactyes.Checked Then
Label5.Text = "We have many clients who were unable to obtain any information from the companies in which they invested after they had turned over their money." & "<br />" & "<br />"
ElseIf contactno.Checked Then
Label5.Text = ""
Label6.Text = ""
End If
If contactyes.Checked And excuseyes.Checked Then
Label6.Text = "Were the company operating legitimately, there would be no trouble assisting you with answering your questions or other issues." & "<br />" & "<br />"
ElseIf excuseno.Checked Then
Label6.Text = ""
ElseIf excusena.Checked Then
Label6.Text = ""
End If
If coldyes.Checked Or predyes.Checked Or misrepyes.Checked Or jvyes.Checked Or contactyes.Checked Then
Label7.Text = "Therefore, it would appear you may have fallen victim to a scam and should seek assistance. Should you find yourself in our services, please proceed to the <a href='Contact.aspx'>Contact Page</a> and contact us by phone, email, or the provided form for more information.."
Else
Label7.Text = "Even though you answered 'No' to everything, there could still exist a possibility you've fallen victim to an investment scam. Please proceed to the <a href='Contact.aspx'>Contact Page</a> and contact us by phone, email, or the provided form for more information."
End If
End Sub
</script>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>
Colt Ledger & Associates' Scam Exam
</h2>
<table width="100%" border="0" cellpadding="5" cellspacing="5" align="left">
<tr valign="top"><td width="50%">
Have you invested with a company that initially contacted you via a "cold call?" <br />
<asp:RadioButton ID="coldyes" Text="Yes" GroupName="coldcall" runat="server" />
<asp:RadioButton ID="coldno" Text="No" GroupName="coldcall" runat="server" />
</td>
<td width="50%" rowspan="7">
<asp:Label style="color:Red" id="Label1" runat="server"/>
<asp:Label style="color:Red" id="Label2" runat="server"/>
<asp:Label style="color:Red" id="Label3" runat="server"/>
<asp:Label style="color:Red" id="Label4" runat="server"/>
<asp:Label style="color:Red" id="Label5" runat="server"/>
<asp:Label style="color:Red" id="Label6" runat="server"/>
<asp:Label style="color:Red" id="Label7" runat="server"/>
</td></tr>
<tr valign="top"><td>
When you were asked to invest, were you told this was a "sure thing" or that they "can't miss?" <br />
<asp:RadioButton ID="predyes" Text="Yes" GroupName="predatory" runat="server" />
<asp:RadioButton ID="predno" Text="No" GroupName="predatory" runat="server" />
</td>
</tr>
<tr valign="top"><td>
Were you promised, even by suggestion, that there would be large returns over a short period of time? <br />
<asp:RadioButton ID="misrepyes" Text="Yes" GroupName="misrepresentation" runat="server" />
<asp:RadioButton ID="misrepno" Text="No" GroupName="misrepresentation" runat="server" />
</td>
</tr>
<tr valign="top"><td>
Was your investment part of a Joint Venture? <br />
<asp:RadioButton ID="jvyes" Text="Yes" GroupName="jointventure" runat="server" />
<asp:RadioButton ID="jvno" Text="No" GroupName="jointventure" runat="server" />
</td>
</tr>
<tr valign="top"><td>
After making your investment, was it hard to reach/contact the company in which you made the investment? <br />
<asp:RadioButton ID="contactyes" Text="Yes" GroupName="contact" runat="server" />
<asp:RadioButton ID="contactno" Text="No" GroupName="contact" runat="server" />
</td>
</tr>
<tr valign="top"><td>
If you were able to reach the company, did you receive excuse, after excuse, after excuse as to why your investment wasn't bringing any results?<br />
<asp:RadioButton ID="excuseyes" Text="Yes" GroupName="excuse" runat="server" />
<asp:RadioButton ID="excuseno" Text="No" GroupName="excuse" runat="server" /> <asp:RadioButton ID="excusena" Text="N/A" GroupName="excuse" runat="server" />
</td>
</tr>
<tr valign="top"><td>
<asp:Button ID="bScam" Text="Submit" OnClick="submit" runat="server" />
</td>
</tr>
</table>
</asp:Content>
The problem with that is I barely know basic HTML. :confused:
So I have this ASP.net "Scam Exam" that is meant to drum up business for us, and when it was embedded in the IT guy's page it worked fine. Had a few grammatical errors, but the overall functionality made it sufficient.
Well now, i need this to work in the template that I downloaded to use for the site and ran into an issue - the tempalte is only HTML, and I don't know enough about ASP.net to rework it.
So I need help taking the following code and making it work as radio buttons that will be answered and load feedback (without shifting the page) when the submit button is pressed.
Please help!
<script runat="server">
Sub submit(Sender As Object, e As EventArgs)
If coldyes.Checked Then
Label1.Text = "A company may not sell private placement securities or commodities through general solicitation." & "<br />" & "<br />"
ElseIf coldno.Checked Then
Label1.Text = ""
End If
If predyes.Checked Then
Label2.Text = "By telling you something may be a 'sure thing' or that it 'can't miss' a company may have used predatory sales tactics, which is not legally accepted." & "<br />" & "<br />"
ElseIf predno.Checked Then
Label2.Text = ""
End If
If misrepyes.Checked Then
Label3.Text = "By promising, or even suggesting large returns, the company may have misrepresented material facts, which is against regulations for securities and commodities." & "<br />" & "<br />"
ElseIf misrepno.Checked Then
Label3.Text = ""
End If
If jvyes.Checked Then
Label4.Text = "As setup, most joint venture investments do not operate as true joint ventures and instead are simply labeled as such to skirt securities issues. We have yet to see a legitimate joint venture in private placement securities." & "<br />" & "<br />"
ElseIf jvno.Checked Then
Label4.Text = ""
End If
If contactyes.Checked Then
Label5.Text = "We have many clients who were unable to obtain any information from the companies in which they invested after they had turned over their money." & "<br />" & "<br />"
ElseIf contactno.Checked Then
Label5.Text = ""
Label6.Text = ""
End If
If contactyes.Checked And excuseyes.Checked Then
Label6.Text = "Were the company operating legitimately, there would be no trouble assisting you with answering your questions or other issues." & "<br />" & "<br />"
ElseIf excuseno.Checked Then
Label6.Text = ""
ElseIf excusena.Checked Then
Label6.Text = ""
End If
If coldyes.Checked Or predyes.Checked Or misrepyes.Checked Or jvyes.Checked Or contactyes.Checked Then
Label7.Text = "Therefore, it would appear you may have fallen victim to a scam and should seek assistance. Should you find yourself in our services, please proceed to the <a href='Contact.aspx'>Contact Page</a> and contact us by phone, email, or the provided form for more information.."
Else
Label7.Text = "Even though you answered 'No' to everything, there could still exist a possibility you've fallen victim to an investment scam. Please proceed to the <a href='Contact.aspx'>Contact Page</a> and contact us by phone, email, or the provided form for more information."
End If
End Sub
</script>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>
Colt Ledger & Associates' Scam Exam
</h2>
<table width="100%" border="0" cellpadding="5" cellspacing="5" align="left">
<tr valign="top"><td width="50%">
Have you invested with a company that initially contacted you via a "cold call?" <br />
<asp:RadioButton ID="coldyes" Text="Yes" GroupName="coldcall" runat="server" />
<asp:RadioButton ID="coldno" Text="No" GroupName="coldcall" runat="server" />
</td>
<td width="50%" rowspan="7">
<asp:Label style="color:Red" id="Label1" runat="server"/>
<asp:Label style="color:Red" id="Label2" runat="server"/>
<asp:Label style="color:Red" id="Label3" runat="server"/>
<asp:Label style="color:Red" id="Label4" runat="server"/>
<asp:Label style="color:Red" id="Label5" runat="server"/>
<asp:Label style="color:Red" id="Label6" runat="server"/>
<asp:Label style="color:Red" id="Label7" runat="server"/>
</td></tr>
<tr valign="top"><td>
When you were asked to invest, were you told this was a "sure thing" or that they "can't miss?" <br />
<asp:RadioButton ID="predyes" Text="Yes" GroupName="predatory" runat="server" />
<asp:RadioButton ID="predno" Text="No" GroupName="predatory" runat="server" />
</td>
</tr>
<tr valign="top"><td>
Were you promised, even by suggestion, that there would be large returns over a short period of time? <br />
<asp:RadioButton ID="misrepyes" Text="Yes" GroupName="misrepresentation" runat="server" />
<asp:RadioButton ID="misrepno" Text="No" GroupName="misrepresentation" runat="server" />
</td>
</tr>
<tr valign="top"><td>
Was your investment part of a Joint Venture? <br />
<asp:RadioButton ID="jvyes" Text="Yes" GroupName="jointventure" runat="server" />
<asp:RadioButton ID="jvno" Text="No" GroupName="jointventure" runat="server" />
</td>
</tr>
<tr valign="top"><td>
After making your investment, was it hard to reach/contact the company in which you made the investment? <br />
<asp:RadioButton ID="contactyes" Text="Yes" GroupName="contact" runat="server" />
<asp:RadioButton ID="contactno" Text="No" GroupName="contact" runat="server" />
</td>
</tr>
<tr valign="top"><td>
If you were able to reach the company, did you receive excuse, after excuse, after excuse as to why your investment wasn't bringing any results?<br />
<asp:RadioButton ID="excuseyes" Text="Yes" GroupName="excuse" runat="server" />
<asp:RadioButton ID="excuseno" Text="No" GroupName="excuse" runat="server" /> <asp:RadioButton ID="excusena" Text="N/A" GroupName="excuse" runat="server" />
</td>
</tr>
<tr valign="top"><td>
<asp:Button ID="bScam" Text="Submit" OnClick="submit" runat="server" />
</td>
</tr>
</table>
</asp:Content>