|
 |
aspx thread: Dynamic Hyperlinks
Message #1 by "Hugh McLaughlin" <hugh@k...> on Mon, 26 Nov 2001 05:00:05
|
|
Hello Everyone and thanks for your help in advance. I am new to ASP.Net
and am trying to migrate an application from classic ASP. Basically, the
application reads a recordset from a database, then iterates through the
recordset, displaying a row for each record, for example, ID, Name,
Address. What I want to accomplish is to have the display contain a
hyperlink with a querystring for the ID field, for example:
<a href="newpage.aspx?ID=1">1</a>Name...
Obviously very easy in classic ASP, but I am completely confused in .Net.
Could someone point me to an example? Any help is greatly appreciated.
Message #2 by "Mitch Denny" <mitch.denny@w...> on Tue, 27 Nov 2001 10:00:18 +1100
|
|
Hugh,
One of the things that you will find about ASP.NET is that
the approach to development isn't quite as "shoot from
the hip" as Classic ASP was/is.
There is an example of what you want to do in the QuickStarts
that get installed with the SDK. If you don't have the SDK
you can get at the demo you want from here (watch for wrapping):
http://docs.aspng.com/QuickStart/aspplus/samples/webforms/ctrlref/webctr
l/datagrid/doc_datagrid.aspx
Go down to the third sample. The example is complete, but
if you aren't completely familiar with ASP.NET some things
might look a bit odd - however it will serve as a frame of
reference for future questions.
Hope this helps.
----------------------------------------
- Mitch Denny
- http://www.warbyte.com
- mitch.denny@w...
- +61 (414) 610-141
-
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Monday, 26 November 2001 5:00 AM
> To: ASP+
> Subject: [aspx] Dynamic Hyperlinks
>
>
> Hello Everyone and thanks for your help in advance. I am new
> to ASP.Net
> and am trying to migrate an application from classic ASP.
> Basically, the
> application reads a recordset from a database, then iterates
> through the
> recordset, displaying a row for each record, for example, ID, Name,
> Address. What I want to accomplish is to have the display contain a
> hyperlink with a querystring for the ID field, for example:
>
> <a href="newpage.aspx?ID=1">1</a>Name...
>
> Obviously very easy in classic ASP, but I am completely
> confused in .Net.
> Could someone point me to an example? Any help is greatly
> appreciated.
> ---
> VBug Winter Conference 2001
>
> Open Forum: Dan Appleman will be hosting an open
> forum at The .NET Developer's Conference on
> 29th November 2001. The session will give
> developers the chance to discuss and question
> Dan on his experience with the .NET environment.
> Dan has been programming Visual Basic since the
> alpha version 1.0. And with over 10 years
> Visual Basic experience is well qualified to
> help you on your road to being a .NET Guru.
>
http://www.vbug.co.uk/redirect.asp?url=39&id=17
---
You are currently subscribed to
aspx as: mitch.denny@w...
$subst('Email.Unsub')
|
|
 |