Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 19th, 2006, 11:06 PM
Authorized User
 
Join Date: Dec 2006
Location: , , .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help with web server control and design

Hello all:

 I would appreciate some feedback.

 I have this simple server control, which is primarly used as a a footer for all the pages on our site, however, we would like to use it with our classic asp pages. We have had it working since day one, but now, we just noticed that the year is not dynamic (on div tag):



<script language="vbscript" runat="server" type="text/javascript">

Protected Sub CurrentYear_Load(ByVal sender As Object, ByVal e As System.EventArgs)

CurrentYear.InnerText = "© Pacific West Association of REALTORS® 2005 - " & Date.Now.Year & ". All Rights Reserved"

End Sub

</script>

<style type="text/css">

<!--

.footer:Link{font-size: 10px; color:#FFFFFF; text-decoration:none}

.footer:Visited{text-decoration:none; font-size: 10px; color:#FFFFFF}

.footer:Hover{text-decoration:underline; color:#FFFFFF}

.footer:Active{text-decoration:none; color:#FFFFFF}

-->

</style>

<table width="780" border="0" cellpadding="2" cellspacing="0" bgcolor="#5C6F8D">

<tr align="center">

<td>

<a class="footer" href="#" onclick="window.open('/homepage/LicenseAgreement.aspx','_blank','menubar=no,locati on=no,toolbar=no,status=no,scrollbars=yes,resizabl e=yes,width=800,height=560,top=10,left=10'); return false">End User License Agreement</a>

<img src="/template/footerimages/dots.jpg" width="7" height="9" hspace="15" alt="">

<a class="footer" href="#" onclick="window.open('/homepage/PrivacyNotice.aspx','_blank','menubar=no,location= no,toolbar=no,status=no,scrollbars=yes,resizable=y es,width=790,height=560,top=10,left=10'); return false">PWR Privacy Notice</a>

&nbsp;&nbsp;&nbsp;&nbsp;

</td>

</tr>

<tr>

<td width="756" height="30" align="center">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;

<div class="copyright" id="CurrentYear" runat="server" onload="CurrentYear_Load"></div>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;

</td>

</tr>

</table>

The problem now is that when we open an asp page, we receive this error 500: So, I take it we can't mix VB language within the classic asp, because it can't parse that language out on the server?

Microsoft VBScript compilation error '800a03ea'

Syntax error

/template/genericfooter.ascx, line 2

Protected Sub CurrentYear_Load(ByVal sender As Object, ByVal e As System.EventArgs)
The reason for this is to avoid having to footer pages, which would complicate things.

Thanks!



Reply With Quote
  #2 (permalink)  
Old December 20th, 2006, 11:59 AM
Authorized User
 
Join Date: Dec 2006
Location: , , .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Never mind, this is becoming a tedious task, so for now, I am implenmenting an include file that outputs in class asp. Oh well.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial to an web server control simsen ASP.NET 2.0 Professional 0 January 15th, 2008 04:29 AM
Design patterns for web design ceadge HTML Code Clinic 0 June 19th, 2006 11:26 AM
Image web server control keyvanjan ASP.NET 1.0 and 1.1 Professional 10 January 14th, 2006 02:04 PM
IE web control design problem zouky VS.NET 2002/2003 1 September 26th, 2004 07:31 PM
HyperLink web server control style acko ASP.NET 1.0 and 1.1 Basics 2 November 14th, 2003 02:55 PM



All times are GMT -4. The time now is 02:56 AM.


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