Click here to Skip to main content
15,843,865 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AjaxProgm7_Resizable.aspx.cs" Inherits="Ajax_AjaxProgm7_Resizable" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Resizable Control Extender</title>
    <style type="text/css">
        .handling
        {
            width:15px;
            height:15px;
            background-color:Lime;
            display:block;
            cursor:crosshair;
        }
        .resizing
        {
            padding:4px;
            border-style:solid;
            border-width:4px;
            border-color:Green;
            line-height:normal;
        }

    </style>

</head>
<body>
    <form id="form1" runat="server">

        <h3>Drag the image using square button shown at the botton right corner of the Image</h3>

        <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </ajaxToolkit:ToolkitScriptManager>
        <div>

            <asp:Panel ID="Panel1" runat="server" Height="200px" BorderStyle="Double">
                <br />
                <br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Image ID="Image1" runat="server" Height="100px"
                    ImageUrl="~/Freedom fighters/bhagat singh wallpapers 1.png" Width="100px" />
            </asp:Panel>
            <ajaxToolkit:ResizableControlExtender ID="ResizableControlExtender1"
                runat="server" HandleCssClass="handling" HandleOffsetX="5" HandleOffsetY="5"
                MaximumHeight="500" MaximumWidth="500" MinimumHeight="50" MinimumWidth="50"
                ResizableCssClass="resizing" TargetControlID="Panel1">
            </ajaxToolkit:ResizableControlExtender>

        <br />
        <br />

    </div>
    </form>
</body>
</html>


error occurring is:

Server Error in '/WebSite1' Application. 

Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.TypeLoadException: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Source Error: 

 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 	 

Stack Trace: 

 

[TypeLoadException: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.]
   AjaxControlToolkit.ToolkitScriptManager.OnResolveScriptReference(ScriptReferenceEventArgs e) in C:\Users\Stephen\Documents\Repos\Superexpert\AjaxControlToolkit\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs:276
   System.Web.UI.ScriptManager.RegisterScripts() +261
   System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +117
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2063008
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2247	 

Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 
Posted
Updated 12-Dec-11 23:54pm
v2
Comments
Shobana16 13-Dec-11 4:44am    
What is the error you got?
Shashidhar J K 13-Dec-11 4:55am    
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Code 89 13-Dec-11 4:59am    
check out your web config and the path which u have given..
Shashidhar J K 13-Dec-11 5:04am    
k.. I'll...
Shashidhar J K 13-Dec-11 5:00am    
using System.Web.UI; is unable to load Extender Class..

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