T
Tony Girgenti
Hello.
I'm developing and testing a web application using VS.NET 2003, VB, .NET
Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2
computer. I'm using a web form.
I'm trying create a function in javascript to compare dates between calendar
selected dates(that's not really my problem yet).
I can't get the html to recognize the function that i have created. When i
run the program, it gives the error
Compiler Error Message: BC30456: 'btnGAT_onClick' is not a member of
'ASP.WebForm1_aspx'
Source Error:
Line 77: Font-Size="X-Large" ForeColor="OrangeRed">Coyne Truck Web
Services</asp:label><asp:image id="Image1" style="Z-INDEX: 105; LEFT: 16px;
POSITION: absolute; TOP: 16px" runat="server"
Line 78: Height="72px"
ImageUrl="file:///C:\Inetpub\wwwroot\CoyneTruckWebServices\images\cc_logo.gif"></asp:image>
Line 79: <asp:button id="btnGetArchivedTrips" onclick="btnGAT_onClick();"
style="Z-INDEX: 104; LEFT: 168px; POSITION: absolute; TOP: 152px"
Line 80: accessKey="G" runat="server" Width="128px" BorderStyle="Solid"
ForeColor="OrangeRed" BackColor="White"
Line 81: Text="Get Archived Trips"></asp:button>
Here is my html:
<script id=clientEventHandlersJS language=javascript>
<!--
function document_onclick() {
}
//-->
</script>
<script language=javascript for=document event=onclick>
<!--
function btnGAT_onClick() {
var startDate = calendar1.selected.date
var endDate = calendar2.selected.date
}
return document_onclick()
//-->
</script>
I have this line in the Page_load event:
Me.btnGetArchivedTrips.Attributes.Add("onclick", "return btnGAT_onClick()")
Why is it not finding that function ?
Any help would be gratefully appreciated.
Thanks,
Tony
I'm developing and testing a web application using VS.NET 2003, VB, .NET
Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2
computer. I'm using a web form.
I'm trying create a function in javascript to compare dates between calendar
selected dates(that's not really my problem yet).
I can't get the html to recognize the function that i have created. When i
run the program, it gives the error
Compiler Error Message: BC30456: 'btnGAT_onClick' is not a member of
'ASP.WebForm1_aspx'
Source Error:
Line 77: Font-Size="X-Large" ForeColor="OrangeRed">Coyne Truck Web
Services</asp:label><asp:image id="Image1" style="Z-INDEX: 105; LEFT: 16px;
POSITION: absolute; TOP: 16px" runat="server"
Line 78: Height="72px"
ImageUrl="file:///C:\Inetpub\wwwroot\CoyneTruckWebServices\images\cc_logo.gif"></asp:image>
Line 79: <asp:button id="btnGetArchivedTrips" onclick="btnGAT_onClick();"
style="Z-INDEX: 104; LEFT: 168px; POSITION: absolute; TOP: 152px"
Line 80: accessKey="G" runat="server" Width="128px" BorderStyle="Solid"
ForeColor="OrangeRed" BackColor="White"
Line 81: Text="Get Archived Trips"></asp:button>
Here is my html:
<script id=clientEventHandlersJS language=javascript>
<!--
function document_onclick() {
}
//-->
</script>
<script language=javascript for=document event=onclick>
<!--
function btnGAT_onClick() {
var startDate = calendar1.selected.date
var endDate = calendar2.selected.date
}
return document_onclick()
//-->
</script>
I have this line in the Page_load event:
Me.btnGetArchivedTrips.Attributes.Add("onclick", "return btnGAT_onClick()")
Why is it not finding that function ?
Any help would be gratefully appreciated.
Thanks,
Tony