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

hyperlinking to a new page

Hi,

I have the following code. Basically, I just want to create a way to show
the detail of the record to a new page. I knew it is relatively simple but
I am a little bit lost. It doesn't seem to send the 'recID' to the new page
hyperlink. What am I missing?

<asp:Repeater id="BookRepeater" runat="server"
OnItemCommand="BookRepeater_ItemCommand">
<ItemTemplate>
<tr>
<td>
<font face="Arial" size="2"> <a
href="http://localhost/showdetails.aspx?recID="&DbReader.Reader('record') .To
String()>
<%#Container.DataItem("Record")%></a>
</font></td>
<td>
<font face="Arial" size="2"><%#Container.DataItem("Author")%>
</font></td>
<td>
<font face="Arial" size="2"><%#Container.DataItem("Title")%>
</font></td>
</tr>
</ItemTemplate>
</asp:repeater>

Thanks,
George
Nov 18 '05 #1
1 1001
You have two options

1.) Replace <a
href="http://localhost/showdetails.aspx?recID="&DbReader.Reader('record') .To
String()>
with
<a href='http://localhost/showdetails.aspx?recID=<%#
Container.DataItem("Record").ToString() %>'>

or
2.) Change the link to a server control and set the href attribute
programmatically.

and all should work as expected

"Gmansky" <gm*****@starmd.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

I have the following code. Basically, I just want to create a way to show
the detail of the record to a new page. I knew it is relatively simple but I am a little bit lost. It doesn't seem to send the 'recID' to the new page hyperlink. What am I missing?

<asp:Repeater id="BookRepeater" runat="server"
OnItemCommand="BookRepeater_ItemCommand">
<ItemTemplate>
<tr>
<td>
<font face="Arial" size="2"> <a
href="http://localhost/showdetails.aspx?recID="&DbReader.Reader('record') .To String()>
<%#Container.DataItem("Record")%></a>
</font></td>
<td>
<font face="Arial" size="2"><%#Container.DataItem("Author")%>
</font></td>
<td>
<font face="Arial" size="2"><%#Container.DataItem("Title")%>
</font></td>
</tr>
</ItemTemplate>
</asp:repeater>

Thanks,
George

Nov 18 '05 #2

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

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
1
by: Micromanaged | last post by:
I have a customers table in my database (SQL 2k) with a column called . What I would like to set up (if possible) is to have the ASP page, as it returns the requested recordset, if it has an email...
0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
6
by: Nedu N | last post by:
Hi, I am trying to design a Home page for my applicatiion in which i want show the links for for some itms... I tried to put the following <td> <font face="Arial, Helvetica, sans-serif" ...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
1
by: Gmansky | last post by:
Hi, I have the following code. Basically, I just want to create a way to show the detail of the record to a new page. I knew it is relatively simple but I am a little bit lost. It doesn't...
1
by: Shisou | last post by:
Hello, So I'm at my wits end with this problem. I'm trying to create an ASP page that will read data from a SQL database. In my production environment I'm using sql 2000 and in my test...
1
by: nicky77 | last post by:
Hi, I've created a nav bar using a background image for rollover effects. Everything works as I had hoped, however, for some reason it seems that an area of whitespace (the same size of the...
1
by: jeffshere | last post by:
I like frames, but wanted to change site from frames to html/css. The problem I am having is in frames I can set the content in a frame by a hyperlink target. In html/css how do I get the content...
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: 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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.