🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.aspdotnet.components.using
Article #237

Re: Hyperlink with DbWebGrid

#237
From: Bob Swart
Date: Mon, 21 Nov 2005 17:25
28 lines
2022 bytes
Hi Orion,

> I have a  DbWebGrid  it displays data from DbWebdataSource with XML file  I
> have URL lists at one of the field  and I need to create hyperlink  while
> they are displaying on Dbwebgrid   

Just add a HyperLink column.

Set the Text property of the HyperLink column to Details, the URL field
to the key field you want to use, and the URL formatting string to the
detail page you want to use, like 

  Details.aspx?Key={0} 

This means you need a Details.aspx page, and in that page you need to
look for the Request.QueryString with name 'Key' and the value will then
be the key field of the row you clicked on the link (if you follow me).

Take a look at the DataGrid in
http://www.eBob42.com/cgi-bin/Shop/Overview.aspx for example for this
behaviour (passing the value of CoursewareID).

Groetjes,
          Bob Swart (aka Dr.Bob - www.DrBob42.com)

-- 
Bob Swart Training & Consultancy (eBob42) - Borland Technology Partner
Delphi 2005 PDF manuals available from http://www.drbob42.com/training
Technical Details
Message-ID: <43820325.D449C97E@chello.nl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <438105af@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 21665a,b99c767104b50d2b
X-Google-Attributes: gid21665a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <43820325.D449C97E@chello.nl>
Date: Mon, 21 Nov 2005 18:25:57 +0100
From: Bob Swart <b.swart@chello.nl>
Organization: Bob Swart Training & Consultancy
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.delphi.aspdotnet.components.using
Subject: Re: Hyperlink with DbWebGrid
References: <438105af@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 212.187.74.98
X-Trace: newsgroups.borland.com 1132593849 212.187.74.98 (21 Nov 2005 09:24:09 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail