J
JEFF
Hello,
I am trying to get a URL out of an Access database and make it a link on an
aspx web page. For some reason it looks like this on the page:
#http://mydomain.org#
I have the following AccessDataSource
<asp:AccessDataSource ID="AccessDataSource1" runat="server"
DataFile="~/App_Data/mydata.mdb"
SelectCommand="SELECT * FROM [Events] WHERE ([ID] = ?) ORDER BY
[starttime]">
<SelectParameters>
<asp:QueryStringParameter Name="ID" QueryStringField="id"
Type="Int32" />
</SelectParameters>
</asp:AccessDataSource>
Here is myFormView item template that contains:
<asp:FormView ID="FormView1" runat="server" DataKeyNames="ID"
DataSourceID="AccessDataSource1">
<ItemTemplate>
<h2><asp:Label ID="titleLabel" runat="server" Text='<%#
Bind("title") %>'></asp:Label></h2><br />
<h3>Description: <asp:Label ID="descriptionLabel" runat="server"
Text='<%# Bind("description") %>'></asp:Label>
</h3><br />
Start Date: <asp:Label ID="starttimeLabel" runat="server"
Text='<%# Bind("starttime","{0}") %>'></asp:Label><br />
End Date: <asp:Label ID="endtimeLabel" runat="server"
Text='<%# Bind("endtime","{0}") %>'></asp:Label><br />
URL: <asp:Label ID="staticurlLabel" runat="server" Text='<%#
Bind("staticurl") %>'></asp:Label><br />
Location: <asp:Label ID="LocationLabel" runat="server"
Text='<%# Bind("Location") %>'></asp:Label><br />
Image: <asp:Label ID="ImageLabel" runat="server" Text='<%#
Bind("Image") %>'></asp:Label><br />
</ItemTemplate>
</asp:FormView>
Do I have to get the value in some sort of script and then build my own <a
href> link? How can I parse off the # chars?
Thanks in advance!
Jeff
I am trying to get a URL out of an Access database and make it a link on an
aspx web page. For some reason it looks like this on the page:
#http://mydomain.org#
I have the following AccessDataSource
<asp:AccessDataSource ID="AccessDataSource1" runat="server"
DataFile="~/App_Data/mydata.mdb"
SelectCommand="SELECT * FROM [Events] WHERE ([ID] = ?) ORDER BY
[starttime]">
<SelectParameters>
<asp:QueryStringParameter Name="ID" QueryStringField="id"
Type="Int32" />
</SelectParameters>
</asp:AccessDataSource>
Here is myFormView item template that contains:
<asp:FormView ID="FormView1" runat="server" DataKeyNames="ID"
DataSourceID="AccessDataSource1">
<ItemTemplate>
<h2><asp:Label ID="titleLabel" runat="server" Text='<%#
Bind("title") %>'></asp:Label></h2><br />
<h3>Description: <asp:Label ID="descriptionLabel" runat="server"
Text='<%# Bind("description") %>'></asp:Label>
</h3><br />
Start Date: <asp:Label ID="starttimeLabel" runat="server"
Text='<%# Bind("starttime","{0}") %>'></asp:Label><br />
End Date: <asp:Label ID="endtimeLabel" runat="server"
Text='<%# Bind("endtime","{0}") %>'></asp:Label><br />
URL: <asp:Label ID="staticurlLabel" runat="server" Text='<%#
Bind("staticurl") %>'></asp:Label><br />
Location: <asp:Label ID="LocationLabel" runat="server"
Text='<%# Bind("Location") %>'></asp:Label><br />
Image: <asp:Label ID="ImageLabel" runat="server" Text='<%#
Bind("Image") %>'></asp:Label><br />
</ItemTemplate>
</asp:FormView>
Do I have to get the value in some sort of script and then build my own <a
href> link? How can I parse off the # chars?
Thanks in advance!
Jeff