Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 15th, 2006, 05:26 PM
Registered User
 
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with this simple code( at my wits end)

hello all!
i am new to asp.net
and it had been going smoohtly until i ran this code:

<html>
<head>
<script language="VB" runat="server">
Sub Calendar_Change(Source As Object, E As EventArgs)
If Page.IsPostBack Then

lblMessage.Text = "You selected " &
ctlCalendar.SelectedDate.ToLongDateString()
End If
End Sub
</script>
</head>
<body>
<form id="frmCalendar" runat="server">
<asp:Label id="lblMessage" runat="server" />
<br/><br/>
<asp:Calendar id="ctlCalendar"
BackColor="white"
BorderWidth="3"
BorderStyle="Solid"
BorderColor="Black"
CellSpacing="2"
CellPadding="2"
ShowGridLines="True"
TitleStyle-BackColor="white"
TitleStyle-ForeColor="black"
DayHeaderStyle-ForeColor="white"
DayStyle-ForeColor="black"
SelectedDayStyle-BackColor="red"
OnSelectionChanged="Calendar_Change"
runat="server" />
</form>
</body>
</html>



it then gave me this error after running it:


Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30201: Expression expected.

Source Error:



Line 5: If Page.IsPostBack Then
Line 6:
Line 7: lblMessage.Text = "You selected " &
Line 8: ctlCalendar.SelectedDate.ToLongDateString()
Line 9: End If


Source File: c:\inetpub\wwwroot\netplay\asptest2.aspx Line: 7


 
Old February 16th, 2006, 03:43 AM
Registered User
 
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanx solved my dilemma






Similar Threads
Thread Thread Starter Forum Replies Last Post
Ms Access front End with Oracle 10g Back End rahul123 Oracle 1 July 9th, 2007 01:03 AM
Oracle back-end MS-Access 2003 client front-end Corey Access 2 February 16th, 2007 08:31 AM
Oracle Back End - MS Access Front End - Multi User ckaliveas Oracle 1 February 1st, 2007 06:00 AM
Very Simple code Tal1481 Beginning VB 6 9 January 29th, 2007 11:12 AM
Very Simple code Tal1481 Visual Basic 2005 Basics 1 January 25th, 2007 07:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.