473,473 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to show same text as hyperlink to other new tab page?

How to show same text as hyperlink to other new tab page?

Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head runat="server">
  7.     <title></title>
  8. </head>
  9. <body>
  10.     <form id="form1" runat="server">
  11.     <div>
  12.  
  13.         <a href="Default.aspx">Show My Name in other window by clicking on me</a></div>
  14.     </form>
  15. </body>
  16. </html>
Oct 31 '10 #1
2 2331
like if you want to click on this hyperlink the content of this hyperlink(Show My Name in other window by clicking on me) will displayed in the other page
Oct 31 '10 #2
jeffstl
432 Recognized Expert Contributor
Not sure I should answer this. There are plenty of ways to do this, if I understand what your saying correctly.

First you simply set the target properly of your <a href> with

Expand|Select|Wrap|Line Numbers
  1. <a href="Default.aspx?title=WhateverYouWant" target"_blank">
Next, well you can either use session variables or just pass a query string if you want to dynamically change the new windows title. Once you have your desired title, put it in a

Expand|Select|Wrap|Line Numbers
  1. <asp:Literal>
control that you place in your <title></title> on the next page.

Then just make sure you set your literal during the Page_Load event.

Expand|Select|Wrap|Line Numbers
  1. MyLiteralControl.Text = Request.QueryString("title")
Nov 19 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: BigOne | last post by:
I'm looking for a script that embeds the text typed on a hidden(and protected) page in to a other page that can be viewed for visitors this text must stay till the owner sets a new text this is...
1
by: Marcin Okraszewski | last post by:
Hi, I would like to include one page inside an other page, almost like a IFRAME does it. The problem is that I would like the included part to occupy as much space as it needs, so it would be...
4
by: melvynadam | last post by:
If I open a new page with very little text on it such as a bugmenot results page is there a way to select some of the text there and assign it to variables? Selecting all and copying to the...
1
by: Tor Inge Rislaa | last post by:
Toolbar doesn't show text I have a toolbar on top of my form. The .text property is set for each button, but it is visible only in design mode. When I run my application the text is invisible....
3
by: William LaMartin | last post by:
All of a sudden code that had been working at my websites to set the focus to a particular text box on page load now produces an error. The code is: 'put the focus on the first text box Dim...
3
by: velu | last post by:
How to Pass Panel visibility property to other page? I have a scenario here. I have created a user control that has a button and panel visible set to false. When I click the button if the...
7
by: tomari | last post by:
hi all, can u please tell me what is the code to select a value from a dropdownlist ..and then passs this value to the other page .... along with it i have to take some details from the database...
1
by: pankajprakash | last post by:
Hi, i want to show the page numbers in gridview control's with a text such as Page : 1 2 3 4 I just have to show the "Page" text before the number, what should i do.
2
by: upendrajpr | last post by:
Dear friend , As i authenticate my some other page with editdelete.php ----------------------- session_start(); if ((isset($_SESSION)) && ($_SESSION == "Y")) { ?>
1
by: unseendesigns | last post by:
I'm somewhat new to javascript...but I am curious if there is a code out there where: I can show part of a page and the rest of it is hidden. Then have two buttons. 1. Click here to continue...
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
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...
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
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,...
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: 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 ...

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.