T
tshad
I have a page that is loading a control from another folder. I want the
references to be from current folder not the folder the control came from.
And that has been working fine in most cases. But not for this one.
This is DataGrid with a Hyperlink column. The page
www.ft.com/jobseeker/test.aspx is loading a control from
www.ft.com/applicant/login.ascx.
In www.ft.com/applicant/login.ascx I have the following column in my my
datagrid.
<asp:HyperLinkColumn DataTextField="JobTitleDesc" DataTextFormatString="{0}"
DataNavigateUrlField="PositionID"
DataNavigateUrlFormatString="displayPositionNS.aspx?PositionID={0}"
headertext="Job Title"
ItemStyle-Width="250px"
ItemStyle-VerticalAlign="Top"
sortexpression="p.JobTitle"/>
The problem is that the link is showing as
www.ft.com/applicant/displayPositionNS.aspx.PositionID=10 instead of
www.ft.com/jobseeker/displayPositionNS.aspx.PositionID=10 as it should.
I don't want to hard code this as this control is called from a couple of
different places and it should always use the .aspx page location not the
..ascx location.
Does anyone know why this is not working yet it works in other places?
Thanks,
Tom
references to be from current folder not the folder the control came from.
And that has been working fine in most cases. But not for this one.
This is DataGrid with a Hyperlink column. The page
www.ft.com/jobseeker/test.aspx is loading a control from
www.ft.com/applicant/login.ascx.
In www.ft.com/applicant/login.ascx I have the following column in my my
datagrid.
<asp:HyperLinkColumn DataTextField="JobTitleDesc" DataTextFormatString="{0}"
DataNavigateUrlField="PositionID"
DataNavigateUrlFormatString="displayPositionNS.aspx?PositionID={0}"
headertext="Job Title"
ItemStyle-Width="250px"
ItemStyle-VerticalAlign="Top"
sortexpression="p.JobTitle"/>
The problem is that the link is showing as
www.ft.com/applicant/displayPositionNS.aspx.PositionID=10 instead of
www.ft.com/jobseeker/displayPositionNS.aspx.PositionID=10 as it should.
I don't want to hard code this as this control is called from a couple of
different places and it should always use the .aspx page location not the
..ascx location.
Does anyone know why this is not working yet it works in other places?
Thanks,
Tom