S
sck10
Hello,
I have a table with some controls in it, but it is not rapped in a form. I
also have a button for reseting the page. When I click the button, the page
resets, but I get the following error: "Done, but with errors on the page".
I am trying to figure out a way to use JavaScript in my master page that can
be used for all my content pages. Any help with this would be appreciated.
Thanks, sck10
<%@ Page Language="VB" StylesheetTheme="Default"
MasterPageFile="~/template/mpColumn02.master" CodeFile="ipm_survey.aspx.vb"
Inherits="ipm_survey" title="Untitled Page" Trace="false" %><asp:Content
ID="Content1" ContentPlaceHolderID="cphMainContent" Runat="Server">
<table width="95%" class="tblOutline">
<caption>IPM Survey Questions</caption>
<tr><td style="height:10px" colspan="5"> </td></tr>
<!-- Question HRID -->
<tr visible="false">
<td style="width:4%; text-align:right;"><asp:Label ID="lblHRID"
Runat="server" /></td>
<td style="text-align:left;" colspan="4"><asp:TextBox id="txtHRID"
Columns="15" runat="server" />
<span class="RedM">(optional)</span></td>
</tr>
<!-- Question Region -->
<tr>
<td style="width:4%; text-align:right;"><asp:Label ID="lblRegion"
Runat="server" /></td>
<td style="text-align:left;" colspan="4"><asp
ropDownList
ID="ddlRegionType" runat="server" /></td>
</tr>
<td style="width:100px; text-align:center;"><a href="#"
onclick="reset();return false"
onmouseover="status='Reset';return true" onmouseout="status=''">
<img src="../../images/icons/b_clear_bold.gif" style="border-style:none;"
alt="Reset" /></a></td>
</table
Script from the Master Page
----------------------------------------------------
<script language="Javascript" type="text/Javascript">
<!--
document.myform.reset();
//-->
</script>
I have a table with some controls in it, but it is not rapped in a form. I
also have a button for reseting the page. When I click the button, the page
resets, but I get the following error: "Done, but with errors on the page".
I am trying to figure out a way to use JavaScript in my master page that can
be used for all my content pages. Any help with this would be appreciated.
Thanks, sck10
<%@ Page Language="VB" StylesheetTheme="Default"
MasterPageFile="~/template/mpColumn02.master" CodeFile="ipm_survey.aspx.vb"
Inherits="ipm_survey" title="Untitled Page" Trace="false" %><asp:Content
ID="Content1" ContentPlaceHolderID="cphMainContent" Runat="Server">
<table width="95%" class="tblOutline">
<caption>IPM Survey Questions</caption>
<tr><td style="height:10px" colspan="5"> </td></tr>
<!-- Question HRID -->
<tr visible="false">
<td style="width:4%; text-align:right;"><asp:Label ID="lblHRID"
Runat="server" /></td>
<td style="text-align:left;" colspan="4"><asp:TextBox id="txtHRID"
Columns="15" runat="server" />
<span class="RedM">(optional)</span></td>
</tr>
<!-- Question Region -->
<tr>
<td style="width:4%; text-align:right;"><asp:Label ID="lblRegion"
Runat="server" /></td>
<td style="text-align:left;" colspan="4"><asp
ID="ddlRegionType" runat="server" /></td>
</tr>
<td style="width:100px; text-align:center;"><a href="#"
onclick="reset();return false"
onmouseover="status='Reset';return true" onmouseout="status=''">
<img src="../../images/icons/b_clear_bold.gif" style="border-style:none;"
alt="Reset" /></a></td>
</table
Script from the Master Page
----------------------------------------------------
<script language="Javascript" type="text/Javascript">
<!--
document.myform.reset();
//-->
</script>