473,408 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

simple asp migration to asp.net question

Simple question, so simple answer I hope. I am trying to upgrade my asp
skills to asp.net so please bear with me for a few moments. I want to create
a simple custom control that returns a string value, but not a web control.
In the asp that I know this works

default.asp code:
<%@language="vbscript">
<!--#include file="functions.asp"-->
<%
if not (functionb) then
response.write "The value of the function called functiona is " &
functiona
else
response.write "Try again later."
end if
%>

functions.asp code:
<%
function functiona
functiona = "My name is Pete"
end functiona

function functionb
if cint(year(date)) = 2004 then
functionb = true
else
functionb = false
end if

%>

How can I do the above in asp.net using a custom control? I know that I can
register the control and use a web control to do this but this is just an
example. I have a lot of classic asp code that uses include files where the
include files have functions that return different types of data and I don't
always want to display the value of those functions.

Nov 19 '05 #1
0 857

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Keith R | last post by:
I have VB6, and eventually plan to upgrade to dotnet. I will soon start writing an application that will be mostly local (client?) but will interface with a server a few times, to authenticate...
7
by: Dave | last post by:
We are trying to migrate a MS SQL server app to DB2 8.1 Linux platform. Our database has got about 300+tables with total size - 150 GB We are using MS SQL's BCP utility to extract data from...
1
by: Keith D. Zimmerman | last post by:
Greetings, I am a team lead on a medium sized C++ project. We have roughly 400k c++ lines of code, and our project is ongoing - it was first released in 1997 and will continue to be used for...
14
by: gator | last post by:
I am thinking of migrating our MFC application to .NET using C++/CLI. My question is does a migration from MFC applications and ATL to WinForms make sense, given that XAML is likely to be the...
0
by: smith | last post by:
I think that this must have been asked a lot of times but googling isn't showing anything new or specific to potentials of ASP.Net2. I'm working for a relatively large eCommerce site, with tech...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
5
by: Alberto Salvati | last post by:
Hi, List. My company has a VERY BIG product base on db2 udb v7.x. We want to di an upgrade to v9, but.... current db has a lot of procedure (cobol..!). Therefore, we've planned to rewrite this...
10
by: lonsharim | last post by:
Hi all, We have been approached by a company that have large 2 tier ASP based website using SQL Server as the backend. These systems have been in place for well over a decade with a small...
3
Frinavale
by: Frinavale | last post by:
I have been researching the best approach to migrating a VB6 application into a VB.NET application. There is a lot of information out there but most of it recommends that you "train in the migration...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.