473,387 Members | 1,423 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,387 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
4 7100
drhowarddrfine
7,435 Expert 4TB
Yes and no. If you make each hyperlink contain a value in the link address then your server side software can read that, such as <a href="http://www.mysite.com/1">. Otherwise, no, hyperlinks can't be used for that, in which case you could use a form submit in its place.
Feb 24 '08 #2
Yes and no. If you make each hyperlink contain a value in the link address then your server side software can read that, such as <a href="http://www.mysite.com/1">. Otherwise, no, hyperlinks can't be used for that, in which case you could use a form submit in its place.
can u give an example about how to contain value in the hyperlink
Feb 24 '08 #3
below is the code for passing a parameter in hyperlink
<a href="volmonrep.jsp?value=year" target="MAINBODY1">JAN</a>
how can i pass 1 more parameter in the same link...
Feb 24 '08 #4
drhowarddrfine
7,435 Expert 4TB
By adding on to the first paramter, "...?value=year&value=month etc.
This is as I said in the other post, using a server side language. I will merge these two threads as soon as I remember how to do it.
Feb 24 '08 #5

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: SJ | last post by:
I want to pass a value in the NavigateURL property of the asp.HYPERLINK tag. right now i'm using something like this : asp:hyperlink id="Details" ImageUrl="images/btn.gif"...
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...
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...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...

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.