473,799 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

a simple hyperlink

Hi all,

I would like to have a hyperlink control inside a table that just
uses the value of a string being passed from the previous page.

for example when navigating from the default page the string is
mypage.aspx?id= '23', I would like the hyperlink inside a table in
the mypage.aspx to grab the id to navigate to a third page. i.e.so that the
navigateurl property could read:

navigateurl=~/mysecond.aspx?i d='23'

How can I do that?

Thanks in advance,

Carlos.

Mar 8 '07 #1
1 1037
dim sID as string (global to page)

inside page_Load event
sID=request.que rystring("id")

then, inside the same event (might need it to be inside an if/then/postback
block) -
myHyperlink.nav igateURL="~/mysecond.aspx?i d=" & 'sID'

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"Carlos" <ch******@yahoo .comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Hi all,

I would like to have a hyperlink control inside a table that just
uses the value of a string being passed from the previous page.

for example when navigating from the default page the string is
mypage.aspx?id= '23', I would like the hyperlink inside a table in
the mypage.aspx to grab the id to navigate to a third page. i.e.so that
the
navigateurl property could read:

navigateurl=~/mysecond.aspx?i d='23'

How can I do that?

Thanks in advance,

Carlos.

Mar 8 '07 #2

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

Similar topics

1
1750
by: timmso | last post by:
I am trying to build a simple asp.net project. What sort of control do I need to use to simply display a list of links in a table format? For example, let's say I have a database table: tblNames ID Name 1 Blue 2 Grey 3 Green
3
1502
by: Doug Swanson | last post by:
So I've added a hyperlink to a screen based on a url stored in a database. The problem is that the hyperlink text is not underlined....but it becomes underlined when you hover over it. Small thing but it's what the users want... The screen/window that it is on is a popup window if that makes any difference....btw I'm using a literal and emitting the html code on the fly...the same results happen when I use the .NET hyperlink control. ...
4
2520
by: Keith | last post by:
I have this simple scenario. -------- Choose an item ->dropdownlist-> or <a>Create a new item</a> -------- When someone decides to click on the create a new item link, it takes them to a page in which they can enter more records to the database field to which the dropdownlist is bound.
2
1178
by: Edward | last post by:
I've one datagrid and one frame with id ="frmdetail", in the datagrid, there is one template column which includes one HyperLink, <asp:HyperLink id="detaillnk" runat="server" text='detail' Target='frmdetail' NavigateUrl='someurl' ></asp:HyperLink> but when I clicked , it was shown in one new window. Thank you, wait for the answer online...
3
333
by: Manny Chohan | last post by:
hi guys, i am creating Hyperlink control in the codebehind and adding it to the panel. The problem is that they are ending up next to each other without any space between them. can someone recomend based on my code how i can get a space about a tab between each hyperlinks. here is my code: HyperLink MyHyperLink = new HyperLink(); MyHyperLink.NavigateUrl = attachment.Address.ToString();
3
1167
by: Greg Cyrus | last post by:
I have a frame with link-buttons. Now I want to show the corresponding link pressed by that button inside another frame (response.redirect or maybe other mehtod with destination-frame - or Webform overgiven)
5
5010
by: Vear | last post by:
Sorry, very Newbie question here. I don't know what I'm doing wrong. I have to use a <asp:hyperlink> to go to another page. I want to pick up the value in a text box. This is what I've tried and It tells me it won't work. Not sure how to do it. NavigateUrl="~/secure/Confirm.aspx?No=201, IDate=" & TxtBx1.text & ", ODate = " & TxtBx2.text
1
4535
by: Radu | last post by:
Hi. I have a page, named "SelectScorecard", which contains a combo and some links to outside documents, on the server. These documents are situated in some sub-folders of the webfolder, named "Previews" and "BW Previews". On selection of an item in the combo, the HREF of those links has to change. In the SelectScorecard.aspx page, I have the code: <script language="javascript"> function previewFile(cbo)
20
3010
by: tshad | last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the problem. Apparently, it doesn't figure out the path correctly. It uses the path of the file it is in, even if it is a control. I have 2 files "displayCompanyJobs.aspx" and "displayCompanyOverview.aspx" which are in both the folder "/jobseeker/" and "/employer/". I have a user control "displayCompanyJobs.ascx" that is in my /applicant/
7
2206
by: Kandiman | last post by:
Hello, Im hoping you can help, for now im trying to learn how to do something so an easy example may help me to gain the concept. I wish to create a hyperlink that when i click it, it prints my name further down the page. I had a search for the last few hours on the <a Href> and onclick command, but this does not make sense?.. the part im getting confused is how am i able to call a function (something like response.write "boo") and get...
0
9546
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10490
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10243
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10030
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9078
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5467
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.