Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Phantom Code in my Application

Status
Not open for further replies.

LonnieJohnson

Programmer
Apr 16, 2001
2,628
US
I am not sure if this should go to ASP.net forum or here. But...

I have an asp.net 2.0 application that is giving me a weird error message when one of the pages loads. It tells me that 'theForm' is undefined.

The strange part is that I have no objects called 'theForm'. I have searched the entire application for this string of chars and cannot find it in code behind, modules or html. I even search hidden text.

What is even stranger is that if I load the page and then right click on the page and choose view source I see some java script references to 'theForm'.

This app has some code (vb and js) that I have imported from other apps or people. But I cannot find this reference. And now I cannot run anything on this page because of this error.

If anyone can help or point me in the right direction I would be truly greatful.


ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
it is impossible for you to receive that error without "theForm" appearing somewhere in your javascript. however, without your actual javascript code or a link to your page, we can't be much help.



*cLFlaVA
----------------------------
[tt]"quote goes here"[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Thanks for such a quick response.

Is there somewhere or someway that I am not searching correctly?

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
If you allow banner ads to be inserted from other sources (like many free web hosting services do, as well as ad exchanges), you could well have a page with erroneous JS in it that you didn't put there.

Lee
 
Yes cLFlaVA I do have external js files.

This is an app that I am building that resides on a corporate network server. I don't have any way to give you access to the website as it is.

I could post the page's html or code behind form for you somewhere if that would help but there are two other js files that have functions that this page reads. Other pages are fine. This just started happening too after I put the references to the external js files in my page. But I cannot find this reference in these two js modules.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
The only place I see it is when I view source. This is what I find...

Code:
<script type="text/javascript">
<!--
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>

I have no clue where that is coming from. I feel so stupid right now.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Let me guess: You're using ASP.NET and this page's extension is .aspx. The code is generated by IIS and is related to <asp:##> tag types, names, and values.

Lee
 
Okay, my mistake. I see you posted that in your first 2 sentences in the original question. I got so caught up in the rest I skipped that part. Anyway, the JS is written by the server, and there's a problem with the server-side part that causes the error you're getting.

Lee
 
Do you have a form named "form1"? If there's an error with theForm it's because there is no form that variable is referencing.

Lee
 
The page in question's ID is equal to form1

Code:
<form id="form1" runat="server">

Looks like all my form ID's equal form1

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Do you have more than one form on any page named form1? If so, then Cory's statement applies.

I noticed that the form id is form1, but there isn't a name, which is what
Code:
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
is checking. No name, no theForm.

Lee
 
So try this instead (assuming you can access the javascript):
Code:
var theForm = document.getElementById('form1');
Alternatively, add a name attribute to the form:
Code:
<form name="form1" id="form1" ... >
Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Ok. I gave all my forms a unique name. The same as the file name. And I still get the message about theForm is undefined. Except now, when I veiw source the code has the form name now. Where the heck is "theForm" coming from????

Code:
var theForm = document.forms['AddNewLog'];
if (!theForm) {
    theForm = document.form1;
}

Now I am seeing that there is another message. There is a "Previous" button on the error box that I was not paying attention to. It tells me that there is a syntax error at Char 1 Line 13.

Line 13 of what???

Thanks again for both of you guys looking. I really appreciate it. This is my first ASP.Net app and it is due to go live in a week. Now I can't get the stupid form to load.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Here ya go. I wanted to but it was so huge I didn't know if that would be cool.

Code:
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; 
&quot;[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;[/URL]

&lt;html xmlns=&quot;[URL unfurl="true"]http://www.w3.org/1999/xhtml&quot;[/URL] &gt;
&lt;head&gt;&lt;title&gt;
	KVC: New Log
&lt;/title&gt;
&lt;!----&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; 
/&gt;


&lt;/head&gt;
&lt;body&gt;
    &lt;form name=&quot;AddNewLog&quot; method=&quot;post&quot; 
action=&quot;AddNewLog.aspx&quot; id=&quot;AddNewLog&quot;&gt;
&lt;div&gt;
&lt;input type=&quot;hidden&quot; name=&quot;__EVENTTARGET&quot; 
id=&quot;__EVENTTARGET&quot; value=&quot;&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;__EVENTARGUMENT&quot; 
id=&quot;__EVENTARGUMENT&quot; value=&quot;&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;__LASTFOCUS&quot; 
id=&quot;__LASTFOCUS&quot; value=&quot;&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;__VIEWSTATE&quot; 
id=&quot;__VIEWSTATE&quot; value=&quot;/wEPDwUKMTQ1NDM5NDgxOA9....dnZ2dnZ2dn
 
Here is the code...

Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="AddNewLog.aspx.vb" Inherits="AddNewLog" MaintainScrollPositionOnPostback="true"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]

<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] >
<head runat="server">
    <title>KVC: New Log</title>
<!---->
<script language="javascript" type="text/javascript" src="common/functions.js" />
<script language="javascript" type="text/javascript" src="spell/spell.js" />

</head>
<body>
    <form id="AddNewLog" runat="server">
    <div>
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="2" style="border-top-width: thin; border-left-width: thin; border-left-color: #000000;
                    background-image: url(images/bckGrndSlice3.png); border-bottom-width: thin; border-bottom-color: #000000;
                    vertical-align: top; border-top-color: #000000; height: 18px; border-right-width: thin;
                    border-right-color: #000000">
                    -</td>
            </tr>
            <tr>
                <td style="border-top-width: thin; border-left-width: thin; border-left-color: #000000;
                    border-bottom-width: thin; border-bottom-color: #000000; vertical-align: top;
                    width: 100px; border-top-color: #000000; border-right-width: thin; border-right-color: #000000">
                    &nbsp;<table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width: 100px">
                                <img alt="logo" id="IMG1" src="images/KVC.jpg" style="width: 93px;
                                    height: 83px" /></td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                                <table id="Table2" border="0" cellpadding="0" cellspacing="0" 
                                    style="border-top-width: thin; border-left-width: thin; border-left-color: blue;
                                    border-bottom-width: thin; border-bottom-color: blue; width: 93px; border-top-color: blue;
                                    height: 505px; border-right-width: thin; border-right-color: blue">
                                    <tr>
                                        <td rowspan="5" style="vertical-align: top; width: 100px; height: 505px">
                                            &nbsp;&nbsp;
                                            <asp:Label ID="lblMenu" runat="server" Font-Size="10pt"></asp:Label></td>
                                    </tr>
                                    <tr>
                                    </tr>
                                    <tr>
                                    </tr>
                                    <tr>
                                    </tr>
                                    <tr>
                                    </tr>
                                    <tr>
                                        <td rowspan="1" style="vertical-align: top; width: 100px; height: 505px">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="width: 100px">
        <table border="0" cellpadding="0" cellspacing="0" style="vertical-align: top; width: 897px;
            height: 213px" id="TABLE1" >
            <tr>
                <td style="width: 41px; border-right: thin solid; border-top: thin solid; border-left: thin solid; border-bottom: thin solid; height: 332px; text-align: center;">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 887px; border-right: thin groove; border-top: thin groove; border-left: thin groove; border-bottom: thin groove; height: 187px; background-color: #ccccff; text-align: center;">
                        <tr>
                            <td colspan="4" style="direction: ltr; height: 34px; text-align: center; border-top-width: thin; border-left-width: thin; border-bottom-width: thin; border-right-width: thin;">
                                <table border="1" cellpadding="1" cellspacing="1" style="width: 504px; border-right: thin solid; border-top: thin solid; border-left: thin solid; border-bottom: thin solid;">
                                    <tr>
                                        <td align="center" style="vertical-align: top; width: 100px; height: 4px; text-align: center">
                                            <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="9pt" ForeColor="Black"
                                                Height="16px" Text="New or Used" Width="71px"></asp:Label></td>
                                        <td align="center" style="vertical-align: top; width: 66px; height: 4px; text-align: left">
                                            <asp:Label ID="lblNewSavedlog" runat="server" Font-Size="9pt" ForeColor="Black"
                                                Height="16px" Text="Select the last and first name for the child you want to enter a new log."
                                                Width="292px" Font-Bold="True"></asp:Label></td>
                                        <td align="center" style="vertical-align: top; width: 93px; height: 4px; text-align: center">
                                            <asp:Label ID="Label2" runat="server" Text="Log Type" Font-Bold="True" Font-Size="9pt"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100px; height: 13px; text-align: left; vertical-align: top;" align="center">
                                            <table style="height: 53px">
                                                <tr>
                                                    <td style="width: 100px">
                                                        <asp:Button ID="btnNewLog" runat="server" BorderStyle="Inset" Font-Size="9pt" Height="25px"
                                                            OnClick="btnNewLog_Click" Style="text-align: center" Text="New" Width="100px" BackColor="#C0C0FF" /></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 100px">
                                                        <asp:Button ID="btnSaved" runat="server" BorderStyle="Outset" Font-Size="9pt" Height="25px"
                                                            OnClick="btnSaved_Click" Text="Saved" Width="100px" BackColor="#C0C0FF" /></td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td style="width: 66px; height: 13px; text-align: left; vertical-align: top;" align="center">
                                            <table border="0" cellpadding="0" cellspacing="0" style="height: 82px">
                                                <tr>
                                                    <td style="width: 100px; text-align: center">
                                            <asp:DropDownList ID="cbLastName" runat="server" AutoPostBack="True" Font-Size="8pt"
                                                OnSelectedIndexChanged="cbLastName_SelectedIndexChanged" Width="212px">
                                                <asp:ListItem>Select Last Name</asp:ListItem>
                                            </asp:DropDownList></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 100px; text-align: center">
                                                        <asp:DropDownList ID="cbFirstName"
                                                    runat="server" AutoPostBack="True" CausesValidation="False" Font-Size="8pt" OnSelectedIndexChanged="cbFirstName_SelectedIndexChanged"
                                                    Width="212px">
                                                </asp:DropDownList></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 100px">
                                                        <asp:ListBox ID="lstTempLogs" runat="server" Font-Size="9pt"
                                                Height="78px" Visible="False" Width="296px"></asp:ListBox></td>
                                                </tr>
                                            </table>
                                            <asp:Button ID="btnLoadTemp" runat="server" Font-Underline="True"
                                                    Text="Load Temp Log" Visible="False" Width="164px" BackColor="#C0C0FF" /></td>
                                        <td style="width: 93px; height: 13px; vertical-align: top; text-align: center;" align="center">
                                            <asp:ListBox ID="lstLogType" runat="server" Height="86px" Width="133px" Font-Size="8pt">
                                                <asp:ListItem>CASE ACTIVITY</asp:ListItem>
                                                <asp:ListItem>VISITATION</asp:ListItem>
                                            </asp:ListBox></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="4" style="border-top-width: thin; border-left-width: thin;
                                border-bottom-width: thin; direction: ltr; height: 95px; text-align: center; border-right-width: thin">
                                <table border="0" cellpadding="0" cellspacing="0" style="width: 426px; height: 72px; border-right: thin solid; border-top: thin solid; border-left: thin solid; border-bottom: thin solid; text-align: center;">
                                    <tr>
                                        <td colspan="2" style="height: 19px; text-align: center;">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="height: 19px">
                                            <asp:Label ID="lblError" runat="server" BackColor="#FF8080" ForeColor="White" Height="1px"
                                                Visible="False" Width="439px"></asp:Label>
                                            <asp:Label ID="lblUserName" runat="server"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="height: 19px">
                                <asp:Label ID="Label3" runat="server" Text="Select the Siblings below included in this activity." Width="329px"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="height: 19px">
                                            <asp:ListBox ID="lstSelectSiblings" runat="server" SelectionMode="Multiple"
                                    Width="375px" Height="96px" Font-Size="9pt"></asp:ListBox></td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: center;" colspan="2">
                                <asp:Button ID="btnSelAll" runat="server" BackColor="#C0C0FF" BorderColor="White" Height="24px"
                                    Style="font-weight: bold; font-size: 8pt" Text="Select All Siblings" Width="153px" Font-Bold="True" Font-Names="Arial" Font-Size="8pt" /><asp:Button ID="btnAttach" runat="server" BackColor="#C0C0FF" BorderColor="White" Text="Add Selected Siblings" Width="137px" Font-Bold="True" Font-Names="Arial" Font-Size="8pt" Height="24px" /></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    &nbsp;
                </td>
            </tr>
        </table>
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 766px; border-right: thin solid; border-top: thin solid; border-left: thin solid; border-bottom: thin solid; height: 134px;" id="TABLE3">
                        <tr>
                            <td colspan="6" style="height: 17px; width: 799px;">
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td style="width: 135px; height: 19px; text-align: right;" align="center">
                                            Case #</td>
                                        <td style="width: 73px; height: 19px" align="center">
                                            <asp:TextBox ID="txtCaseNum" runat="server" Height="20px" ReadOnly="True" Width="94px"></asp:TextBox></td>
                                        <td style="width: 97px; height: 19px; text-align: right;" align="center">
                                            Last Name:</td>
                                        <td style="width: 172px; height: 19px; text-align: left;" align="center">
                                            <asp:TextBox ID="txtLastName" runat="server" Height="20px" ReadOnly="True" Width="135px"></asp:TextBox></td>
                                        <td style="width: 177px; height: 19px; text-align: right;" align="center">
                                            First Name:</td>
                                        <td style="width: 86px; height: 19px" align="center">
                                            <asp:TextBox ID="txtFirstName" runat="server" Height="20px" ReadOnly="True" Width="135px"></asp:TextBox></td>
                                    </tr>
                                </table>
                            </td>
                            <td colspan="1" style="height: 17px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="height: 19px; width: 799px;">
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td colspan="3" style="height: 19px">
                                            Date of Contact</td>
                                        <td style="width: 1400px; height: 19px">
                                        </td>
                                        <td colspan="2" style="height: 19px">
                                            Contact
                                            Time</td>
                                        <td style="width: 100px; height: 19px">
                                        </td>
                                        <td colspan="2" style="height: 19px; width: 84px;">
                                            Hours/Mins</td>
                                        <td style="width: 100px; height: 19px">
                                            &nbsp;</td>
                                        <td style="width: 100px; height: 19px">
                                            <asp:Label ID="Label4" runat="server" Text="Worker"></asp:Label></td>
                                        <td style="width: 100px; height: 19px">
                                        </td>
                                        <td style="width: 100px; height: 19px">
                                            Supervisor</td>
                                        <td style="width: 100px; height: 19px">
                                        </td>
                                        <td style="width: 100px; height: 19px">
                                            Level</td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" style="height: 19px">
                                            <asp:DropDownList ID="cbContactMonth" runat="server">
                                                <asp:ListItem>January</asp:ListItem>
                                                <asp:ListItem>February</asp:ListItem>
                                                <asp:ListItem>March</asp:ListItem>
                                                <asp:ListItem>April</asp:ListItem>
                                                <asp:ListItem>May</asp:ListItem>
                                                <asp:ListItem>June</asp:ListItem>
                                                <asp:ListItem>July</asp:ListItem>
                                                <asp:ListItem>August</asp:ListItem>
                                                <asp:ListItem>September</asp:ListItem>
                                                <asp:ListItem>October</asp:ListItem>
                                                <asp:ListItem>November</asp:ListItem>
                                                <asp:ListItem>December</asp:ListItem>
                                            </asp:DropDownList><asp:DropDownList ID="cbContactDay" runat="server" Height="22px"
                                                Style="text-align: right" Width="46px">
                                            </asp:DropDownList><asp:DropDownList ID="cbContactYear" runat="server" Height="22px"
                                                Style="text-align: right" Width="53px">
                                                <asp:ListItem>05</asp:ListItem>
                                                <asp:ListItem>06</asp:ListItem>
                                            </asp:DropDownList></td>
                                        <td style="width: 1400px; height: 19px">
                                            &nbsp;
                                        </td>
                                        <td colspan="2" style="height: 19px">
                                            <asp:DropDownList ID="cbContactHour" runat="server" Height="22px">
                                                <asp:ListItem>--</asp:ListItem>
                                                <asp:ListItem>00</asp:ListItem>
                                                <asp:ListItem>01</asp:ListItem>
                                                <asp:ListItem>02</asp:ListItem>
                                                <asp:ListItem>03</asp:ListItem>
                                                <asp:ListItem>04</asp:ListItem>
                                                <asp:ListItem>05</asp:ListItem>
                                                <asp:ListItem>06</asp:ListItem>
                                                <asp:ListItem>07</asp:ListItem>
                                                <asp:ListItem>08</asp:ListItem>
                                                <asp:ListItem>09</asp:ListItem>
                                                <asp:ListItem>10</asp:ListItem>
                                                <asp:ListItem>11</asp:ListItem>
                                                <asp:ListItem>12</asp:ListItem>
                                                <asp:ListItem>13</asp:ListItem>
                                                <asp:ListItem>14</asp:ListItem>
                                                <asp:ListItem>15</asp:ListItem>
                                                <asp:ListItem>16</asp:ListItem>
                                                <asp:ListItem>17</asp:ListItem>
                                                <asp:ListItem>18</asp:ListItem>
                                                <asp:ListItem>19</asp:ListItem>
                                                <asp:ListItem>20</asp:ListItem>
                                                <asp:ListItem>21</asp:ListItem>
                                                <asp:ListItem>22</asp:ListItem>
                                                <asp:ListItem>23</asp:ListItem>
                                            </asp:DropDownList><asp:DropDownList ID="cbContactMinute" runat="server" Height="22px">
                                                <asp:ListItem>--</asp:ListItem>
                                                <asp:ListItem>00</asp:ListItem>
                                                <asp:ListItem>01</asp:ListItem>
                                                <asp:ListItem>02</asp:ListItem>
                                                <asp:ListItem>03</asp:ListItem>
                                                <asp:ListItem>04</asp:ListItem>
                                                <asp:ListItem>05</asp:ListItem>
                                                <asp:ListItem>06</asp:ListItem>
                                                <asp:ListItem>07</asp:ListItem>
                                                <asp:ListItem>08</asp:ListItem>
                                                <asp:ListItem>09</asp:ListItem>
                                                <asp:ListItem>10</asp:ListItem>
                                                <asp:ListItem>11</asp:ListItem>
                                                <asp:ListItem>12</asp:ListItem>
                                                <asp:ListItem>13</asp:ListItem>
                                                <asp:ListItem>14</asp:ListItem>
                                                <asp:ListItem>15</asp:ListItem>
                                                <asp:ListItem>16</asp:ListItem>
                                                <asp:ListItem>17</asp:ListItem>
                                                <asp:ListItem>18</asp:ListItem>
                                                <asp:ListItem>19</asp:ListItem>
                                                <asp:ListItem>20</asp:ListItem>
                                                <asp:ListItem>21</asp:ListItem>
                                                <asp:ListItem>22</asp:ListItem>
                                                <asp:ListItem>23</asp:ListItem>
                                                <asp:ListItem>24</asp:ListItem>
                                                <asp:ListItem>25</asp:ListItem>
                                                <asp:ListItem>26</asp:ListItem>
                                                <asp:ListItem>27</asp:ListItem>
                                                <asp:ListItem>28</asp:ListItem>
                                                <asp:ListItem>29</asp:ListItem>
                                                <asp:ListItem>30</asp:ListItem>
                                                <asp:ListItem>31</asp:ListItem>
                                                <asp:ListItem>32</asp:ListItem>
                                                <asp:ListItem>33</asp:ListItem>
                                                <asp:ListItem>34</asp:ListItem>
                                                <asp:ListItem>35</asp:ListItem>
                                                <asp:ListItem>36</asp:ListItem>
                                                <asp:ListItem>37</asp:ListItem>
                                                <asp:ListItem>38</asp:ListItem>
                                                <asp:ListItem>39</asp:ListItem>
                                                <asp:ListItem>40</asp:ListItem>
                                                <asp:ListItem>41</asp:ListItem>
                                                <asp:ListItem>42</asp:ListItem>
                                                <asp:ListItem>43</asp:ListItem>
                                                <asp:ListItem>44</asp:ListItem>
                                                <asp:ListItem>45</asp:ListItem>
                                                <asp:ListItem>46</asp:ListItem>
                                                <asp:ListItem>47</asp:ListItem>
                                                <asp:ListItem>48</asp:ListItem>
                                                <asp:ListItem>49</asp:ListItem>
                                                <asp:ListItem>50</asp:ListItem>
                                                <asp:ListItem>51</asp:ListItem>
                                                <asp:ListItem>52</asp:ListItem>
                                                <asp:ListItem>53</asp:ListItem>
                                                <asp:ListItem Value="54"></asp:ListItem>
                                                <asp:ListItem Value="55"></asp:ListItem>
                                                <asp:ListItem>56</asp:ListItem>
                                                <asp:ListItem>57</asp:ListItem>
                                                <asp:ListItem>58</asp:ListItem>
                                                <asp:ListItem>59</asp:ListItem>
                                            </asp:DropDownList></td>
                                        <td style="width: 100px; height: 19px">
                                            &nbsp;
                                        </td>
                                        <td colspan="2" style="height: 19px; width: 84px;">
                                            <asp:DropDownList ID="cbHours" runat="server" Height="22px">
                                                <asp:ListItem>00</asp:ListItem>
                                                <asp:ListItem>01</asp:ListItem>
                                                <asp:ListItem>02</asp:ListItem>
                                                <asp:ListItem>03</asp:ListItem>
                                                <asp:ListItem>04</asp:ListItem>
                                                <asp:ListItem>05</asp:ListItem>
                                                <asp:ListItem>06</asp:ListItem>
                                                <asp:ListItem>07</asp:ListItem>
                                                <asp:ListItem>08</asp:ListItem>
                                            </asp:DropDownList><asp:DropDownList ID="cbMinutes" runat="server" Height="22px">
                                                <asp:ListItem>00</asp:ListItem>
                                                <asp:ListItem>15</asp:ListItem>
                                                <asp:ListItem>30</asp:ListItem>
                                                <asp:ListItem>45</asp:ListItem>
                                            </asp:DropDownList></td>
                                        <td style="width: 100px; height: 19px">
                                        </td>
                                        <td style="width: 100px; height: 19px">
                                            <asp:DropDownList ID="cbCaseManager" runat="server" AutoPostBack="True" Width="229px">
                                            </asp:DropDownList></td>
                                        <td style="width: 100px; height: 19px">
                                        </td>
                                        <td style="width: 100px; height: 19px">
                                            <asp:TextBox ID="txtSupervisor" runat="server" ReadOnly="True" Width="171px"></asp:TextBox></td>
                                        <td style="width: 100px; height: 19px">
                                        </td>
                                        <td style="width: 100px; height: 19px">
                                            <asp:TextBox ID="txtLevel" runat="server" Height="15px" Width="102px"></asp:TextBox></td>
                                    </tr>
                                </table>
                            </td>
                            <td colspan="1" style="height: 19px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="height: 11px; width: 799px;">
                                <table border="0" cellpadding="0" cellspacing="0" style="width: 886px">
                                    <tr>
                                        <td style="height: 24px; text-align: left" colspan="2">
                                            Procedure Code</td>
                                        <td colspan="1" style="width: 49px; height: 24px; text-align: center">
                                        </td>
                                        <td colspan="1" style="height: 24px; text-align: center">
                                        </td>
                                        <td style="width: 129px; height: 24px; text-align: left">
                                            Type Of Service</td>
                                        <td style="width: 255px; height: 24px; text-align: left">
                                            Place of Service</td>
                                        <td style="width: 43541px; height: 24px; text-align: left">
                                            Supervised Visit Reason</td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left" colspan="2">
                                            <asp:DropDownList ID="cbProcCode" runat="server" AutoPostBack="True" Width="270px">
                                            </asp:DropDownList></td>
                                        <td colspan="1" style="width: 49px; text-align: left">
                                        </td>
                                        <td colspan="1" style="text-align: left">
                                        </td>
                                        <td style="width: 129px; text-align: center">
                                            <asp:DropDownList ID="cbTypeOfService" runat="server" Enabled="False" Height="22px"
                                                Width="153px" AutoPostBack="True">
                                                <asp:ListItem>Please Select</asp:ListItem>
                                                <asp:ListItem>CASE PLAN</asp:ListItem>
                                                <asp:ListItem>CLIENT SUPPORT</asp:ListItem>
                                                <asp:ListItem>CORRESPONDENCE</asp:ListItem>
                                                <asp:ListItem>COURT;DOCTOR APPT</asp:ListItem>
                                                <asp:ListItem>FILING/PAPERWORK</asp:ListItem>
                                                <asp:ListItem>PARENT CONTACT</asp:ListItem>
                                                <asp:ListItem>PHONE CONTACT</asp:ListItem>
                                                <asp:ListItem>PLACEMENT SUPPORT</asp:ListItem>
                                                <asp:ListItem>SCHOOL</asp:ListItem>
                                                <asp:ListItem>SUPERVISED VISIT</asp:ListItem>
                                                <asp:ListItem>TRANSPORTATION</asp:ListItem>
                                                <asp:ListItem>UNSUPERVISED VISIT</asp:ListItem>
                                            </asp:DropDownList></td>
                                        <td style="width: 255px; text-align: left">
                                            <asp:DropDownList ID="cbPOS" runat="server" Height="22px" Width="157px" AutoPostBack="True">
                                            </asp:DropDownList></td>
                                        <td style="width: 43541px; text-align: left">
                                            <asp:DropDownList ID="cbSupVisitReason" runat="server" Enabled="False">
                                                <asp:ListItem></asp:ListItem>
                                                <asp:ListItem>SAFETY</asp:ListItem>
                                                <asp:ListItem>HOMELESS</asp:ListItem>
                                                <asp:ListItem>NO UTILITIES</asp:ListItem>
                                                <asp:ListItem>PARENTS REQUEST</asp:ListItem>
                                                <asp:ListItem>PARENTS LIVE OUT OF STATE</asp:ListItem>
                                            </asp:DropDownList></td>
                                    </tr>
                                    <tr>
                                        <td colspan="7" style="height: 27px; text-align: left">
                                            Address of Service:<asp:TextBox ID="txtContactAddress" runat="server" Width="522px" Height="19px"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td colspan="7" style="height: 19px; background-color: #ccccff; text-align: left">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="7" style="background-color: #ccccff; text-align: left; height: 19px;">
                                            <strong style="background-color: #ccccff">
                                            Additional Proccodes:</strong></td>
                                    </tr>
                                    <tr>
                                        <td colspan="7" style="background-color: #ccccff; text-align: left; height: 19px;">
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td style="width: 100px; height: 19px;">
                                                        Hours</td>
                                                    <td style="width: 100px; height: 19px;">
                                                        Mins</td>
                                                    <td style="width: 100px; height: 19px;">
                                                        Proccode</td>
                                                    <td style="width: 100px; height: 19px;">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 100px">
                                                        <asp:DropDownList ID="cbHoursAdd" runat="server" Height="22px">
                                                            <asp:ListItem>00</asp:ListItem>
                                                            <asp:ListItem>01</asp:ListItem>
                                                            <asp:ListItem>02</asp:ListItem>
                                                            <asp:ListItem>03</asp:ListItem>
                                                            <asp:ListItem>04</asp:ListItem>
                                                            <asp:ListItem>05</asp:ListItem>
                                                            <asp:ListItem>06</asp:ListItem>
                                                            <asp:ListItem>07</asp:ListItem>
                                                            <asp:ListItem>08</asp:ListItem>
                                                        </asp:DropDownList></td>
                                                    <td style="width: 100px">
                                                        <asp:DropDownList ID="cbMinutesAdd" runat="server" Height="22px">
                                                            <asp:ListItem>00</asp:ListItem>
                                                            <asp:ListItem>15</asp:ListItem>
                                                            <asp:ListItem>30</asp:ListItem>
                                                            <asp:ListItem>45</asp:ListItem>
                                                        </asp:DropDownList></td>
                                                    <td style="width: 100px">
                                                        <asp:DropDownList ID="cbProcCodeAdd" runat="server" AutoPostBack="True" Width="270px">
                                                        </asp:DropDownList></td>
                                                    <td style="width: 100px">
                                                        <asp:Button ID="btnAddProcCodes" runat="server" Text="<== Add This Code To The List" BackColor="#C0C0FF" Visible="False" Width="210px" /></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="7" style="background-color: #ccccff; text-align: left">
                                            &nbsp;
                                            <asp:GridView ID="gvAdditionalCodes" runat="server" AutoGenerateDeleteButton="True" Height="77px">
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td colspan="1" style="height: 11px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="width: 799px; height: 19px">
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td style="vertical-align: bottom; width: 100px; height: 8px">
                                            Person(s) Contacted</td>
                                        <td style="vertical-align: bottom; width: 133px; height: 8px; text-align: center">
                                            &nbsp;</td>
                                        <td style="vertical-align: bottom; width: 100px; height: 8px; text-align: center">
                                            Face to Face</td>
                                        <td style="vertical-align: bottom; width: 100px; height: 8px; text-align: center">
                                            Phone In</td>
                                        <td style="vertical-align: bottom; width: 100px; height: 8px; text-align: center">
                                            Phone Out</td>
                                        <td style="vertical-align: bottom; width: 100px; height: 8px; text-align: center">
                                            EMail</td>
                                        <td style="vertical-align: bottom; width: 100px; height: 8px; text-align: center">
                                            Encounter Types</td>
                                    </tr>
                                    <tr>
                                        <td style="width: 41px; height: 99px">
                                            <asp:TextBox ID="txtPersonsContacted" runat="server" Height="85px" TextMode="MultiLine"
                                                Width="269px"></asp:TextBox></td>
                                        <td style="vertical-align: top; width: 133px; height: 99px; text-align: center">
                                        </td>
                                        <td style="vertical-align: top; width: 100px; height: 99px; text-align: center">
                                            <asp:DropDownList ID="cbFaceToFace" runat="server">
                                                <asp:ListItem> </asp:ListItem>
                                                <asp:ListItem>Y</asp:ListItem>
                                                <asp:ListItem>N</asp:ListItem>
                                            </asp:DropDownList></td>
                                        <td style="vertical-align: top; width: 100px; height: 99px; text-align: center">
                                            <asp:CheckBox ID="chkPhoneIn" runat="server" Font-Size="7pt" Width="67px" /></td>
                                        <td style="vertical-align: top; width: 100px; height: 99px; text-align: center">
                                            <asp:CheckBox ID="chkPhoneOut" runat="server" Font-Size="7pt" Height="20px" Width="59px" /></td>
                                        <td style="vertical-align: top; width: 100px; height: 99px; text-align: center">
                                            <asp:CheckBox ID="chkEMail" runat="server" Font-Size="7pt" Height="20px" Width="58px" /></td>
                                        <td style="width: 100px; height: 99px; text-align: left">
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td style="width: 65px">
                                                        <asp:CheckBox ID="chkParent" runat="server" Style="font-size: 7pt" Text="Parent"
                                                            Width="61px" /></td>
                                                    <td style="width: 100px">
                                                        <asp:CheckBox ID="chkFosterParent" runat="server" Style="font-size: 7pt" Text="Foster Parent"
                                                            Width="73px" /></td>
                                                    <td style="width: 100px">
                                                        <asp:CheckBox ID="chkTherapist" runat="server" Style="font-size: 7pt" Text="Therapist/MH"
                                                            Width="56px" /></td>
                                                    <td style="width: 100px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 65px">
                                                        <asp:CheckBox ID="chkChild" runat="server" Style="font-size: 7pt" Text="Child" Width="61px" /></td>
                                                    <td style="width: 100px">
                                                        <asp:CheckBox ID="chkResidential" runat="server" Style="font-size: 7pt" Text="Residential"
                                                            Width="73px" /></td>
                                                    <td style="width: 100px">
                                                        <asp:CheckBox ID="chkCourt" runat="server" Style="font-size: 7pt" Text="Court" Width="20px" /></td>
                                                    <td style="width: 100px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 65px; height: 20px">
                                                        <asp:CheckBox ID="chkParentChildVisit" runat="server" Style="font-size: 7pt" Text="Parent/Child"
                                                            Width="71px" /></td>
                                                    <td style="width: 100px; height: 20px">
                                                        <asp:CheckBox ID="chkRelative" runat="server" Style="font-size: 7pt" Text="Relative"
                                                            Width="73px" /></td>
                                                    <td style="width: 100px; height: 20px">
                                                        <asp:CheckBox ID="chkSRS" runat="server" Style="font-size: 7pt" Text="SRS" Width="19px" /></td>
                                                    <td style="width: 100px; height: 20px">
                                                        <asp:CheckBox ID="chkFSC" runat="server" Style="font-size: 7pt" Text="FSC" Width="39px" /></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 65px">
                                                        <asp:CheckBox ID="chkSiblingVisit" runat="server" Style="font-size: 7pt" Text="Sibling Visit"
                                                            Width="73px" /></td>
                                                    <td style="width: 100px">
                                                        <asp:CheckBox ID="chkSchool" runat="server" Style="font-size: 7pt" Text="School"
                                                            Width="73px" /></td>
                                                    <td style="width: 100px">
                                                        <asp:CheckBox ID="chkMedical" runat="server" Style="font-size: 7pt" Text="Medical"
                                                            Width="27px" /></td>
                                                    <td style="width: 100px">
                                                        <asp:CheckBox ID="chkOtherEncounter" runat="server" Style="font-size: 7pt" Text="Other"
                                                            Width="22px" /></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td colspan="1" style="height: 19px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="width: 799px; height: 19px">
                            </td>
                            <td colspan="1" style="height: 19px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="width: 799px; height: 19px">
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td style="width: 100px">
                                            Crisis Contact?</td>
                                        <td style="width: 100px">
                                            <asp:DropDownList ID="cbCrisisContact" runat="server" AutoPostBack="True">
                                                <asp:ListItem>Please Select</asp:ListItem>
                                                <asp:ListItem>Yes</asp:ListItem>
                                                <asp:ListItem>No</asp:ListItem>
                                            </asp:DropDownList></td>
                                        <td style="width: 100px">
                                            <asp:CheckBox ID="chkCrisisResponse" runat="server" Enabled="False" Font-Size="7pt"
                                                ForeColor="Black" Style="font-size: 9pt" Text="Response within 1 hour?" TextAlign="Left"
                                                Width="172px" /></td>
                                        <td colspan="2">
                                            <asp:CheckBox ID="chkAbuseNeglect" runat="server" Enabled="False" Font-Size="7pt"
                                                Style="font-size: 9pt" Text="Abuse/Neglect Reported?" TextAlign="Left" Width="179px" /></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100px; height: 19px">
                                            Move Initiated</td>
                                        <td style="width: 100px; height: 19px">
                                            <asp:DropDownList ID="cbMoveInitiated" runat="server" AutoPostBack="True">
                                                <asp:ListItem>Please Select</asp:ListItem>
                                                <asp:ListItem>Yes</asp:ListItem>
                                                <asp:ListItem>No</asp:ListItem>
                                            </asp:DropDownList></td>
                                        <td style="width: 100px; height: 19px">
                                            <asp:CheckBox ID="chkPlannedMove" runat="server" Enabled="False" Font-Size="7pt"
                                                Style="font-size: 9pt" Text="Planned Move?" TextAlign="Left" Width="112px" /></td>
                                        <td style="width: 100px; height: 19px">
                                            <asp:CheckBox ID="chkEmergencyMove" runat="server" Enabled="False" Font-Size="7pt"
                                                Style="font-size: 9pt" Text="Emergency Move?" TextAlign="Left" Width="155px" /></td>
                                        <td style="width: 100px; height: 19px">
                                            <asp:CheckBox ID="chkReportSRS" runat="server" Enabled="False" Font-Size="7pt" Style="font-size: 9pt"
                                                Text="Reported to SRS/48 hours?" TextAlign="Left" Width="186px" /></td>
                                    </tr>
                                </table>
                            </td>
                            <td colspan="1" style="height: 19px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="width: 799px; height: 19px">
                            </td>
                            <td colspan="1" style="height: 19px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="width: 799px; height: 19px">
                                <asp:TextBox ID="txtCaseNotes" runat="server" BackColor="White" BorderColor="#0000C0"
                                    ForeColor="Black" Height="175px" TextMode="MultiLine" Width="870px"></asp:TextBox></td>
                            <td colspan="1" style="height: 19px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="width: 799px; height: 19px">
                            </td>
                            <td colspan="1" style="height: 19px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="width: 799px; height: 19px; text-align: center;">
                                <table border="0" cellpadding="0" cellspacing="0" style="width: 800px; text-align: center;">
                                    <tr>
                                        <td style="width: 100px; height: 36px; text-align: center; vertical-align: middle;" align="center">
                                            <asp:Button ID="btnSubmit" runat="server" BackColor="#9999FF" Font-Bold="True" Font-Size="11pt"
                                                ForeColor="White" Height="36px" Text="Submit" Width="118px" /></td>
                                        <td style="width: 100px; height: 36px; text-align: center; vertical-align: middle;" align="center">
                                            <asp:Button ID="btnHold" runat="server" BackColor="#9999FF" Font-Bold="True" Font-Size="11pt"
                                                ForeColor="White" Height="36px" Style="font-weight: bold; font-size: 9pt" Text="Put On Hold"
                                                Width="118px" /></td>
                                        <td align="center" style="vertical-align: middle; width: 100px; height: 36px; text-align: center">
                                            <asp:Button ID="btnClear" runat="server" BackColor="#9999FF" Font-Bold="True" Font-Size="11pt"
                                                ForeColor="White" Height="36px" Text="Clear Form" Width="118px" /></td>
                                        <td style="width: 100px; height: 36px; vertical-align: middle; text-align: left;" align="center">
                                        <asp:Button ID="btnSpell" runat="server" BackColor="#9999FF" Font-Bold="True" Font-Size="11pt"
                                                ForeColor="White" Height="36px" Text="Spell Check" Width="118px" /></td>
                                    </tr>
                                </table>
                            </td>
                            <td colspan="1" style="height: 19px">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top