🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.aspdotnet.components.using
3 messages
3 total messages Started by Orion Sun, 20 Nov 2005 23:25
Hyperlink with DbWebGrid
#234
Author: Orion
Date: Sun, 20 Nov 2005 23:25
10 lines
1229 bytes
Hello all

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   I have tried to link  with selectbutton
click with selectedindexchanged event  but I couldnt read the url from list
How can I do this
please help

Regards
Re: Hyperlink with DbWebGrid
#237
Author: 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
Re: Hyperlink with DbWebGrid
#242
Author: Orion
Date: Sun, 27 Nov 2005 22:38
46 lines
2626 bytes
Hello bob
Some how I havent noticed hyperlink column in dbwebgrid
anyway I have created and set to the field what contents are url adresses
I thing I must set URL formating box also but  I havent understand your
explanation
Could you please help
what does it mean by "Details"
Must I set up key field also that I thing Dbwebgrid has got a bug there
because when I call the columns setup page I have to reset key field again ?
so just simply what will be the code will be written in url format box ?
I may dedicate it.
I am thinging to take your courses. Its up to money condition
Regards

"Bob Swart" <b.swart@chello.nl> wrote in message
news:43820325.D449C97E@chello.nl...
> 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads