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= "~/ServiceReferral s/HCSOS.master" AutoEventWireup ="false" CodeFile="HCSOS Details.aspx.vb " Inherits="HomeC areSOS" %>) then Inculding my js files like
<asp:Content ID="HCSoS" ContentPlaceHol derID="HCSOSDet ails" 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 ContentPlaceHol der <asp:Content ID="HCSoS" ContentPlaceHol derID="HCSOSDet ails" 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" ContentPlaceHol derID="HCSOSDet ails" 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="fullWidt h">
<tr>
<td colspan="6" valign="top">
<igmisc:WebGrou pBox ID="wgbRecordDe tails" runat="server" Text="Record Details"
Width="99%">
<Template>
<table border="0" cellpadding="1" cellspacing="1" class="fullWidt h">
<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="Display OnlyTextbox"
Width="56px"></asp:TextBox>
</td>
<td style="width: 5%; white-space: nowrap">
<asp:Label ID="lblClientNa me" runat="server" Text="Client Name:"></asp:Label></td>
<td style="width: 20%">
<asp:TextBox ID="txtClientNa me" runat="server" ReadOnly="True" SkinID="Display OnlyTextbox"></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="Display OnlyTextbox"
Width="56px"></asp:TextBox>
</td>
<td style="width: 5%; white-space: nowrap">
<asp:Label ID="lblReferral ID" runat="server" Text="Referral ID:"></asp:Label></td>
<td style="width: 15%">
<asp:TextBox ID="txtReferral ID" runat="server" ReadOnly="True" SkinID="Display OnlyTextbox"
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:WebGroup Box>
</td>
</tr>
</table>
function ClearScreen()
{
//alert("Anil Test")
var d = document.all;
var e = "";
d.txtClientId.v alue= e;
}
btnCancel.Attri butes.Add("onCl ick", "ClearScreen(); return false;")
Please provide help on this. how to resolve
Thanks
Anil Kumar Dwivedi