Thanks for your reply. I suspect that something may be related to the image which I am setting to hyprelink navigate url from a specified folder from client pc.
Here is how I do it:
Dim lnk As HyperLink = DirectCast(e.Row.FindControl("imgFileType"), HyperLink)
lnk.NavigateUrl = D:\Desktop\pics\" + FileUpload1.FileName
Best Regards.
Keep your friends close and your enemies even closer
cenk1536
Contributor
2503 Points
2118 Posts
ColorBox This image failed to load???
Dec 22, 2012 08:21 PM|LINK
Hi,
I am trying to use colorbox but getting this image failed to load error. How can I fix this?
Best Regards.
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"> <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> <link href="Styles/jquery-ui_new.css" rel="stylesheet" type="text/css" /> <link href="Styles/colorbox.css" rel="stylesheet" type="text/css" /> </asp:Content> ... ... <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server"> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Path="Scripts/jquery-1.5.1.min.js" /> <asp:ScriptReference Path="Scripts/jquery.colorbox.js" /> <asp:ScriptReference Path="Scripts/jquery-ui.min.js" /> </Scripts> </asp:ToolkitScriptManager> <script type="text/javascript"> ... ... ... <asp:TemplateField HeaderText="<%$ Resources:TerminalHasar, resim %>"> <ItemTemplate> <asp:HyperLink ID="imgFileType" ImageUrl="Images/Camera-icon.png" NavigateUrl="" runat="server" CssClass="group3"></asp:HyperLink> </ItemTemplate> </asp:TemplateField>cenk1536
Contributor
2503 Points
2118 Posts
Re: ColorBox This image failed to load???
Dec 23, 2012 08:29 AM|LINK
Hi,
I am setting this hyperlink navigate url from client pc file system. (eg. c:\test\test.png)
cenk1536
Contributor
2503 Points
2118 Posts
Re: ColorBox This image failed to load???
Dec 23, 2012 06:21 PM|LINK
Any ideas?
Song-Tian - ...
All-Star
43705 Points
4304 Posts
Microsoft
Re: ColorBox This image failed to load???
Dec 24, 2012 08:44 AM|LINK
Hi,
I think you may just refer the js library in header. Any more question, please feel free to reply.
Feedback to us
Develop and promote your apps in Windows Store
cenk1536
Contributor
2503 Points
2118 Posts
Re: ColorBox This image failed to load???
Dec 24, 2012 08:46 AM|LINK
Hi,
I tried that way (putting js files to header) but still same problem.
Song-Tian - ...
All-Star
43705 Points
4304 Posts
Microsoft
Re: ColorBox This image failed to load???
Dec 24, 2012 09:12 AM|LINK
Hi,
Then please post the complete code. So I may reproduce your scenario on my side.
Feedback to us
Develop and promote your apps in Windows Store
cenk1536
Contributor
2503 Points
2118 Posts
Re: ColorBox This image failed to load???
Dec 24, 2012 09:17 AM|LINK
Hi,
Thanks for your reply. I suspect that something may be related to the image which I am setting to hyprelink navigate url from a specified folder from client pc.
Here is how I do it:
Dim lnk As HyperLink = DirectCast(e.Row.FindControl("imgFileType"), HyperLink) lnk.NavigateUrl = D:\Desktop\pics\" + FileUpload1.FileNameBest Regards.
cenk1536
Contributor
2503 Points
2118 Posts
Re: ColorBox This image failed to load???
Dec 24, 2012 07:35 PM|LINK
any help please?
cenk1536
Contributor
2503 Points
2118 Posts
Re: ColorBox This image failed to load???
Dec 24, 2012 07:39 PM|LINK
Can I use local image to display in colorbox or fancybox etc???
cenk1536
Contributor
2503 Points
2118 Posts
Re: ColorBox This image failed to load???
Jan 04, 2013 09:59 AM|LINK
Hi,
My bad. There was a path issue, so when I fixed it, colorbox/fancybox worked.
Best Regards.