Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I have a subdomain, and i want to retrieve a file from that subdomain to main domain by hyperlink in gridview and i store path of that file in database. For that i use following code:



XML
<Columns>
            <asp:BoundField DataField="id" HeaderText="S No" ReadOnly="True"  SortExpression="id" Visible="false" />
                <asp:TemplateField SortExpression="">
                    <ItemTemplate>
                         <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("pathname") %>'><%# Eval("remark")%></asp:HyperLink>
                       </ItemTemplate>
                </asp:TemplateField>
            </Columns>



here in pathname store the path of file only not including subdomain address so how could i do it.
I try lots of way but i am not sussess so plz help me soon
Thanks
Posted
Updated 7-Sep-11 0:34am
v2
Comments
Herman<T>.Instance 7-Sep-11 6:35am    
it is always urgent...So do not mention this in your question please

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900