Hi All,
Here I need help to all of u, I am using ASP.NET 2.0 and Third party Infragistic Controls. I Have included master page in my page (<%@ Page Language="VB" MasterPageFile="~/ServiceReferrals/HCSOS.master" AutoEventWireup="false" CodeFile="HCSOSDetails.aspx.vb" Inherits="HomeCareSOS" %>) then Inculding my js files like
<asp:Content ID="HCSoS" ContentPlaceHolderID="HCSOSDetails" runat="server">
<script type="text/javascript" src="../JSUtils/GridUtils.js"></script>
<script type="text/javascript" src="../JSUtils/StringUtils.js"></script>
<script type="text/javascript" src="../JSUtils/PageCommon.js"></script>
<script type="text/javascript" src="Includes/HCSOSDetails.js"></script>
here master page provide ContentPlaceHolder <asp:Content ID="HCSoS" ContentPlaceHolderID="HCSOSDetails" runat="server"> to add my page contents
after that I have taken asp.net2.0 text boxes and other controls within a asp pannel.
When I clear these controls value with java script then this produce object not found error
I am using following code
UI source code ----
<asp:Content ID="HCSoS" ContentPlaceHolderID="HCSOSDetails" runat="server">
<script type="text/javascript" src="../JSUtils/GridUtils.js"></script>
<script type="text/javascript" src="../JSUtils/StringUtils.js"></script>
<script type="text/javascript" src="../JSUtils/PageCommon.js"></script>
<script type="text/javascript" src="Includes/HCSOSDetails.js"></script>
<table class="fullWidth">
<tr>
<td colspan="6" valign="top">
<igmisc:WebGroupBox ID="wgbRecordDetails" runat="server" Text="Record Details"
Width="99%">
<Template>
<table border="0" cellpadding="1" cellspacing="1" class="fullWidth">
<tr>
<td style="width: 5%; white-space: nowrap">
<asp:Label ID="lblClientId" runat="server" Text="Client Id:"></asp:Label></td>
<td style="width: 13%">
<asp:TextBox ID="txtClientId" runat="server" ReadOnly="True" SkinID="DisplayOnlyTextbox"
Width="56px"></asp:TextBox>
</td>
<td style="width: 5%; white-space: nowrap">
<asp:Label ID="lblClientName" runat="server" Text="Client Name:"></asp:Label></td>
<td style="width: 20%">
<asp:TextBox ID="txtClientName" runat="server" ReadOnly="True" SkinID="DisplayOnlyTextbox"></asp:TextBox>
</td>
<td style="width: 3%; white-space: nowrap">
<asp:Label ID="lblSPId" runat="server" Text="Service Placement Id:"></asp:Label></td>
<td style="width: 17%">
<asp:TextBox ID="txtSPId" runat="server" ReadOnly="True" SkinID="DisplayOnlyTextbox"
Width="56px"></asp:TextBox>
</td>
<td style="width: 5%; white-space: nowrap">
<asp:Label ID="lblReferralID" runat="server" Text="Referral ID:"></asp:Label></td>
<td style="width: 15%">
<asp:TextBox ID="txtReferralID" runat="server" ReadOnly="True" SkinID="DisplayOnlyTextbox"
Width="72px"></asp:TextBox></td>
</tr>
<tr style="display: none">
<td style="width: 5%; white-space: nowrap">
</td>
<td style="width: 13%">
</td>
<td style="width: 5%; white-space: nowrap">
</td>
<td style="width: 20%">
</td>
<td style="width: 3%; white-space: nowrap">
</td>
<td style="width: 17%">
</td>
<td style="width: 5%; white-space: nowrap">
</td>
<td style="width: 15%">
</td>
</tr>
</table>
</Template>
</igmisc:WebGroupBox>
</td>
</tr>
</table>
function ClearScreen()
{
//alert("Anil Test")
var d = document.all;
var e = "";
d.txtClientId.value= e;
}
btnCancel.Attributes.Add("onClick", "ClearScreen();return false;")
Please provide help on this. how to resolve
Thanks
Anil Kumar Dwivedi