|
|
 |
RE: FN-FORUM: ASP to ASP.NET
date posted 27th January 2006 14:39
private path = null
private void Load_Page(object sender, EventArgs e)
{
// could set path variable directly but more correct to use the property
pathVar = "some text";
}
public string pathVar
{
get { return path; }
set { path = value; }
}
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Craig
Sent: 27 January 2006 15:03
To: FN-FORUM / [EMAIL REMOVED]
Subject: RE: FN-FORUM: ASP to ASP.NET
Thanks Damon,
Setting a property did it nicely. As the properties have to be set up
outside the Page_Load sub is there anyway of setting their return values
from within the Page_Load sub to make them dynamic? I just wondered as it
would help a lot with the task I've got.
Many thanks,
Craig
-----Original Message-----
>I have the following in classic asp that I need to re-create in ASP.NET:-
>""
You could try the Repeater Control if you have a data set to work from.
The will work in ASP.Net just set up a property in the code
called pathVar
public string pathVar
{
get { return path; }
}
Alternatively use the asp:hyperlink control
HTH
Damon
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|