473,382 Members | 1,745 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,382 software developers and data experts.

Passing parameter in Hyperlink

Hi
Can we pass a value through hyperlink.
My requirement is that suppose i have 3 hyperlinks 1 2 3
When I click on 1 or 2 or 3 another HTML page will get open having the information that "1 is clicked" if I click 1.
Feb 24 '08 #1
1 1418
rnd me
427 Expert 256MB
<a href="thepage.htm?click=1"> pass 1</a>

<a href="thepage.htm?click=2"> pass 2</a>

<a href="thepage.htm?click=3"> pass 3</a>

on thepage.htm :
Expand|Select|Wrap|Line Numbers
  1. //assuming you only need to pass the one piece of info:
  2. <script>
  3. alert(location.toString().split("=")[1])
  4.  
  5. <script>
Feb 24 '08 #2

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

Similar topics

0
by: Mo | last post by:
On one webpage I have a datagrid which is filled when the user selects some search criteria (e.g. surname or DoB) in different text fields and clicks on a button control. The datagrid also...
4
by: Gibs | last post by:
Hi I have two aspx pages in a frame and in the top page i am creating the controls dynamically and putting in a place holder. I have a hyperlink in this page to populate the data in the bottom...
0
by: Viktor Popov | last post by:
I am trying to do that in ASP.NET/C#: ds.Tables.DefaultView.RowFilter="EstateID= ' '"; In the HTML I use REPEATER and: <asp:HyperLink id="lnkGo" runat="server"...
4
by: Lan H. Nguyen | last post by:
I have this line of code in my .aspx page <asp:HyperLink ID="hrefView" CssClass="main" ForeColor="blue" Runat="server" NavigateUrl='<%# "View.aspx?id=" + ID.ToString()%>'>View...
1
by: Laura K | last post by:
I have a datagrid with a hyperlink field. It passes a parameter but I need it to pass three. I need two of the parameters to be querystrings that have already been passed to the page but I have...
4
by: Deckarep | last post by:
Hello fellow C# programmers, This question is more about general practice and convention so here goes: I got into a discussion with a co-worker who insisted that as a general practice all...
8
by: preeti13 | last post by:
I have a datagrid with a hyperlink field. It passes a parameter but I need it to pass two. I need two of the parameters to be querystrings but I have no idea how to add them the hyperlink column if...
4
by: abhishekbrave | last post by:
Hi Can we pass a value through hyperlink. My requirement is that suppose i have 3 hyperlinks 1 2 3 When I click on 1 or 2 or 3 another HTML page will get open having the information that "1 is...
0
by: =?Utf-8?B?Sk9SR0UgTUFMRE9OQURP?= | last post by:
I am new to ASP.NET 2.0 and I am developing a small application which originally consists of 2 pages. The first page displays a GridView Control loaded with data from a sqlDataSouce. Such a...
7
by: AmiMitra | last post by:
i am having problem with passing parameter through navigateUrl property of a hyperlink. in the page where i am using the hyperlink , i am getting the data thorugh commonutility. i want to pass this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.