473,472 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do you dynamically build <a href> in a reponse.write statement

Hi,
I have the following piece of code:If RS.EOF or RS.BOF Then
Session("Authenticated") = False

Response.Write "Sorry, your userid or password did not match"
Response.Write "<BR>"
Response.Write " or you have not registerd yet, please register"
Response.Write <a href="default.asp">Clik here
Response.End
Here, I need to build the line (Response.Write <a href="default.asp">Clik
here)
dynamically, so that the html output from asp page
gives us <a href="default.asp">Clik here
Thanks for any help or advise in advance
Jul 22 '05 #1
7 5438
Are you looking for

Response.Write "<a href=""default.asp"">Clik here</a>"

?

--
Ben Strackany
www.developmentnow.com

<a href="http://www.developmentnow.com">dn</a>
"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
Hi,
I have the following piece of code:If RS.EOF or RS.BOF Then
Session("Authenticated") = False

Response.Write "Sorry, your userid or password did not match"
Response.Write "<BR>"
Response.Write " or you have not registerd yet, please register"
Response.Write <a href="default.asp">Clik here
Response.End
Here, I need to build the line (Response.Write <a href="default.asp">Clik here)
dynamically, so that the html output from asp page
gives us <a href="default.asp">Clik here
Thanks for any help or advise in advance

Jul 22 '05 #2
"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
Hi,
I have the following piece of code:If RS.EOF or RS.BOF Then
Session("Authenticated") = False

Response.Write "Sorry, your userid or password did not match"
Response.Write "<BR>"
Response.Write " or you have not registerd yet, please register"
Response.Write <a href="default.asp">Clik here
Response.EndResponse.Write <a href="default.asp">Clik here
Here, I need to build the line (Response.Write <a href="default.asp">Clik here)
dynamically, so that the html output from asp page
gives us <a href="default.asp">Clik here
Thanks for any help or advise in advance


Response.Write "<a href='default.asp'>Clik here
or
Response.Write "<a href=""default.asp"">Clik here
Jul 22 '05 #3
Thanks Ben, that was exactly I was looking for. I did not express myself
well, I guess. Regards

"Ben Strackany" wrote:
Are you looking for

Response.Write "<a href=""default.asp"">Clik here</a>"

?

--
Ben Strackany
www.developmentnow.com

<a href="http://www.developmentnow.com">dn</a>
"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
Hi,
I have the following piece of code:If RS.EOF or RS.BOF Then
Session("Authenticated") = False

Response.Write "Sorry, your userid or password did not match"
Response.Write "<BR>"
Response.Write " or you have not registerd yet, please register"
Response.Write <a href="default.asp">Clik here
Response.End
Here, I need to build the line (Response.Write <a

href="default.asp">Clik
here)
dynamically, so that the html output from asp page
gives us <a href="default.asp">Clik here
Thanks for any help or advise in advance


Jul 22 '05 #4
Hello Tom,
I was wondering what is the concept behind both the staetment being correct.
Thanks. Regards

"Tom Kaminski [MVP]" wrote:
"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
Hi,
I have the following piece of code:If RS.EOF or RS.BOF Then
Session("Authenticated") = False

Response.Write "Sorry, your userid or password did not match"
Response.Write "<BR>"
Response.Write " or you have not registerd yet, please register"
Response.Write <a href="default.asp">Clik here
Response.EndResponse.Write <a href="default.asp">Clik here
Here, I need to build the line (Response.Write <a

href="default.asp">Clik
here)
dynamically, so that the html output from asp page
gives us <a href="default.asp">Clik here
Thanks for any help or advise in advance


Response.Write "<a href='default.asp'>Clik here
or
Response.Write "<a href=""default.asp"">Clik here

Jul 22 '05 #5
"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:E1**********************************@microsof t.com...
Hello Tom,
I was wondering what is the concept behind both the staetment being

correct.

The concept is the browser will accept a quote or a double quote.
Jul 22 '05 #6
If you're in favor of following X-HTML standards and the standards that are
most likely to be adopted as time moves on, you should use " instead of '
for your tag attributes. In today's world, it really doesn't matter for
functionality's sake, but " is or will be the accepted strict standard, most
likely.

Ray at work

"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:E1**********************************@microsof t.com...
Hello Tom,
I was wondering what is the concept behind both the staetment being
correct.
Thanks. Regards

"Tom Kaminski [MVP]" wrote:
"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
> Hi,
> I have the following piece of code:If RS.EOF or RS.BOF Then
> Session("Authenticated") = False
>
> Response.Write "Sorry, your userid or password did not match"
> Response.Write "<BR>"
> Response.Write " or you have not registerd yet, please register"
> Response.Write <a href="default.asp">Clik here
> Response.EndResponse.Write <a href="default.asp">Clik here
> Here, I need to build the line (Response.Write <a

href="default.asp">Clik
> here)
> dynamically, so that the html output from asp page
> gives us <a href="default.asp">Clik here
> Thanks for any help or advise in advance


Response.Write "<a href='default.asp'>Clik here
or
Response.Write "<a href=""default.asp"">Clik here

Jul 22 '05 #7

"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
Hi,
I have the following piece of code:If RS.EOF or RS.BOF Then
Session("Authenticated") = False

Response.Write "Sorry, your userid or password did not match"
Response.Write "<BR>"
Response.Write " or you have not registerd yet, please register"
Response.Write <a href="default.asp">Clik here
Response.End
Here, I need to build the line (Response.Write <a
href="default.asp">Clik
here)
dynamically, so that the html output from asp page
gives us <a href="default.asp">Clik here
Thanks for any help or advise in advance


Double up on your double quotes: response.write "<a
href=""default,asp"">lick here</a>"

P
Jul 22 '05 #8

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

Similar topics

2
by: Gregor Horvath | last post by:
Hi, Before I reinvent the wheel I`d like to ask if someone has done this before since I did not find an advice at Google. The goal is to create a dynamic Tree View in HTML. Say I have a...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
6
by: snacktime | last post by:
I've searched and searched and have not found a solution to suppress the margin on form or href tags so that there is no space before or after the tag. The only way I have found to do this is to...
2
by: Axel Dahmen | last post by:
HI, I want to dynamically add controls to a web page from within a common base class. Unfortunately, ASP.NET fails with "System.Web.HttpException: The Controls collection cannot be modified...
2
by: Magnus Blomberg | last post by:
Hello! I am trying to write a simple aspx page with You are logged on as <% getuser(); %> in the body text. In my code-behind I write (for test: public String getuser() { String s =...
3
by: ajaspersonal | last post by:
"i want to change font_style (hyper link<a href...>text</a>) normal to italics.when load a page" this is my problem but that label included in one 'USERCONTROL' This user controls may...
7
by: malineau | last post by:
I would like to be able to open a link utilising a variable as the destination. Something like <a href=variablename><\a> where variablename specifies a page address within the website. But I can't...
1
by: John | last post by:
Hi var poster="<html><head..... etc .... </html>"; var animal='dog'; The string contains images and text that changes. Originally I wanted to do something like print "<a href=" +...
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
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...
1
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
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,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.