![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
config1</asp:HyperLink |
|
I want to set a navigate URL to include the name of a file, that is derived from a field from the SQL query. I get "Server Tag is not well formed" when I try to run this: asp:HyperLink ID="hyperlink" runat="server" NavigateUrl="\\server\share\" '<%# Eval("storeNumber")'%> ".doc" >config1</asp:HyperLink I want the url to be \\server\share\3.doc Can someone please tell me what I am doing wrong, or is there a better way to do this? Thank you for your time Ann |
#3
| |||
| |||
|
|
Ann, If you look at the NavigateUrl attribute, you have a bunch of single and doublequotes. You're going to end up with somethign that looks like this \\server\share"'3".doc" Try something like this asp:HyperLink ID="hyperlink" runat="server" NavigateUrl="\\server\share\<%# Eval("storeNumber")%>.doc" config1</asp:HyperLink -- Hope this helps, Mark Fitzpatrick Microsoft MVP - Expression "Anne Butera" <AnneButera (AT) discussions (DOT) microsoft.com> wrote in message news FAA741C-2710-4DE2-B4D9-1AA2547C6B37 (AT) microsoft (DOT) com...I want to set a navigate URL to include the name of a file, that is derived from a field from the SQL query. I get "Server Tag is not well formed" when I try to run this: asp:HyperLink ID="hyperlink" runat="server" NavigateUrl="\\server\share\" '<%# Eval("storeNumber")'%> ".doc" >config1</asp:HyperLink I want the url to be \\server\share\3.doc Can someone please tell me what I am doing wrong, or is there a better way to do this? Thank you for your time Ann |
#4
| |||
| |||
|
|
Thank you for your reply. So I tried your suggetions, and now I'm able to run the form and click the hyperlink, but the url looks like this: \\server\share\<%# Eval("storeNumber") %>.doc Here's the code I used: asp:HyperLink ID="HLconfig1" runat="server" NavigateUrl='\\server\share\<%# Eval("storeNumber") %>.doc'>config1</asp:HyperLink Do you have any other suggestions? Thank you for your time. "Mark Fitzpatrick" wrote: Ann, If you look at the NavigateUrl attribute, you have a bunch of single and doublequotes. You're going to end up with somethign that looks like this \\server\share"'3".doc" Try something like this asp:HyperLink ID="hyperlink" runat="server" NavigateUrl="\\server\share\<%# Eval("storeNumber")%>.doc" config1</asp:HyperLink -- Hope this helps, Mark Fitzpatrick Microsoft MVP - Expression "Anne Butera" <AnneButera (AT) discussions (DOT) microsoft.com> wrote in message news FAA741C-2710-4DE2-B4D9-1AA2547C6B37 (AT) microsoft (DOT) com...I want to set a navigate URL to include the name of a file, that is derived from a field from the SQL query. I get "Server Tag is not well formed" when I try to run this: asp:HyperLink ID="hyperlink" runat="server" NavigateUrl="\\server\share\" '<%# Eval("storeNumber")'%> ".doc" config1</asp:HyperLink I want the url to be \\server\share\3.doc Can someone please tell me what I am doing wrong, or is there a better way to do this? Thank you for your time Ann |
#5
| |||
| |||
|
|
Try: NavigateUrl='<%# Eval("storeNumber","\\server\share\{0}") %>' -- Riki Anne Butera wrote: Thank you for your reply. So I tried your suggetions, and now I'm able to run the form and click the hyperlink, but the url looks like this: \\server\share\<%# Eval("storeNumber") %>.doc Here's the code I used: asp:HyperLink ID="HLconfig1" runat="server" NavigateUrl='\\server\share\<%# Eval("storeNumber") %>.doc'>config1</asp:HyperLink Do you have any other suggestions? Thank you for your time. "Mark Fitzpatrick" wrote: Ann, If you look at the NavigateUrl attribute, you have a bunch of single and doublequotes. You're going to end up with somethign that looks like this \\server\share"'3".doc" Try something like this asp:HyperLink ID="hyperlink" runat="server" NavigateUrl="\\server\share\<%# Eval("storeNumber")%>.doc" config1</asp:HyperLink -- Hope this helps, Mark Fitzpatrick Microsoft MVP - Expression "Anne Butera" <AnneButera (AT) discussions (DOT) microsoft.com> wrote in message news FAA741C-2710-4DE2-B4D9-1AA2547C6B37 (AT) microsoft (DOT) com...I want to set a navigate URL to include the name of a file, that is derived from a field from the SQL query. I get "Server Tag is not well formed" when I try to run this: asp:HyperLink ID="hyperlink" runat="server" NavigateUrl="\\server\share\" '<%# Eval("storeNumber")'%> ".doc" config1</asp:HyperLink I want the url to be \\server\share\3.doc Can someone please tell me what I am doing wrong, or is there a better way to do this? Thank you for your time Ann |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |