Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, August 11, 2010 4:15:28 AM(UTC)
vostro0120

Groups: Registered
Posts: 5


Hi, everyBody:

I am developing web application in C#.net 2005.I am using WebThumbnailViewer and WebImageViewer for displaying image.

but I can't display Images correctly.

Fisrtly,there is error:

Microsoft JScript runtime error: 'WebImageViewer1' is undefined.

then, I add following code:

WebThumbnailViewer1.ViewerID = WebImageViewer1.ClientID;

but there has another error:

ct100_ContentPlaceHolder1_WebImageViewer1_err Object not found!
I am using V15.

Thanks!

File Attachment(s):
WebSite1.rar (3,866kb) downloaded 21 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, August 11, 2010 10:50:10 PM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)

I'm not sure what is causing the "'WebImageViewer1' is undefined." error in your project. I tried to modify it and change it but it did not work. I followed the tutorial in the "Updating Web Controls Manually" help topic that creates a similar project and it worked fine. I am attaching the website I created.


File Attachment(s):
Website1.zip (2,308kb) downloaded 21 time(s).
 
#3 Posted : Thursday, August 12, 2010 1:03:08 AM(UTC)
vostro0120

Groups: Registered
Posts: 5


Thank you !

Just like you ,I can create a project and it also worked fine.

But´╝îI want to use "WebThumbnailViewer \WebImageViewer"  in ContentPlaceHolder(a control bar).Just like the following code:

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" Title="Untitled Page" %>

<%@ Register Assembly="Leadtools.Web" Namespace="Leadtools.Web.Controls" TagPrefix="ltwf" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <ltwf:WebThumbnailViewer ID="WebThumbnailViewer1" runat="server" BorderStyle="Solid"
        BorderWidth="1px" Height="320px" Width="220px" ViewerID="WebImageViewer1"/>
    <ltwf:WebImageViewer ID="WebImageViewer1" runat="server" BorderStyle="Solid" BorderWidth="1px"
        Height="320px" Width="320px" />
</asp:Content>

This aspx have using the "MasterPage.master", then it had  a error. Can you help me?

If don't using "MasterPage.master",the project can work fine.

 
#4 Posted : Thursday, August 12, 2010 2:53:12 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)

The reason that the WebImageViewer isn't being found is because the ContentPlaceHolder names the controls so you can't set the WebThumbnailViewer.ViewerID at design time.  This must be done at run time.  
I rechecked your application and modify one line of code in it and both problems were gone.
I am attaching your modify project. I am using the latest LEADTOOLS v15 patches released on January 15 2010. If you have an older patch files, reply to ticket# 2010081110000721 that you sent to support@leadtools.com and include your LEADTOOLS v15 toolkit serial number in your email. (Do NOT post it here)
File Attachment(s):
WebSite1.zip (1,830kb) downloaded 23 time(s).
 
#5 Posted : Thursday, August 12, 2010 5:11:38 AM(UTC)
vostro0120

Groups: Registered
Posts: 5


oh, I am using LEADTOOLS Evaluation v15[1].0.1.3.

I have tried the project which you modified, but it also have the error:

ct100_ContentPlaceHolder1_WebImageViewer1_err Object not found!

Are you sure the problems was gone?

Or because of the Version of Leadtools?

 
#6 Posted : Sunday, August 15, 2010 12:53:46 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)

I'm using the latest LEADTOOLS v15 patches with Leadtools.Web.dll build 15.0.1.8, which is a newer DLL.
Please note that LEADTOOLS v15 is no longer available as an evaluation version. If you want to continue evaluating our toolkit, please download the latest v17 SDK from our site and test it.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.273 seconds.