Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all 5678 articles
Browse latest View live

AJAX Toolkit Items Not Showing or Working

$
0
0

Server Error in '/' Application.


'MsAjaxBundle' is not a valid script name.  The name must end in '.js'.

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.InvalidOperationException: 'MsAjaxBundle' is not a valid script name.  The name must end in '.js'.

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 Trac


The Following is code AUTOMATICALLY ADDED when I created the Project

 <asp:ScriptManager ID="ScriptManager1" runat="server">
            <Scripts>
                <%--Framework scripts  --%>
            <asp:ScriptReference Name="MsAjaxBundle" />
                <asp:ScriptReference Name="jquery" />
                <asp:ScriptReference Name="jquery.ui.combined" />
                <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
                <asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
                <asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
                <asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
                <asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
                <asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
                <asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
                <asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
                <asp:ScriptReference Name="WebFormsBundle" />
                <%--Site scripts--%>
            </Scripts>
        </asp:ScriptManager>


WWhen I comment out the first line, no AJax Controls Work at all, but when I uncomment I get the error.

VS2012 Toolkit installed by nuget


MaskedEdit ReadOnly from javascript

$
0
0

Hi,

We are using MaskedEdit control from AjaxToolkit.

We have a requirement of making this control ReadOnly from javascript.

I tried setting readOnly attribute of text box from javascript but it doesn't work.For normal text box without mask it works.

I need to achieve this using javascript only ,after page is fully rendered.

Also i dont want to disable text box because of its styling.

Any help will be appreciated.

Dynamic loading ajax tab through a user control

$
0
0

Hi,

I ve urgent need of solution for dynamic loading of usercontrol to aspx page, which has ajax tab control in it . Pl me how to prevent disappear of usercontrol while post back is occured.

Setting maxJsonLength property for UpdatePanel

$
0
0

I have a third party grid (componentArt Grid) on an update panel. And, I am loading data to this grid in a partial postback but I get following error when I try to load more than 2000 rows to the grid. This is not a restriction coming from the grid but it seems to be happening because of partial postback in update panel.

Error is: |Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.|

I updated web.config to set the maxJsonLength property but it seems to be ignored. I am using .NET Framework 4.0 and IIS7. I see an article in Knowledge Base that describes same issue for .NET Framework 3.5 and has a hotfix for it but I don't see anything for .NET Framework 4.0.

I would appreciate any help in this.

My web.config setting is -

<system.web.extensions>
    <scripting>
      <webServices>
           <jsonSerialization maxJsonLength="2140000000" />
      </webServices>
    </scripting>
  </system.web.extensions>

Thanks,

Sangeeta

dragging Ajax .dll does nothing (?)

$
0
0

I'm trying to install AJAX and trying to get the .dll into the newly created Ajax Toolkit tab on the toolbar, but it seems to do nothing... I've looked at several tutorials, tried NuGet... nothing works... done this before on another machne with no porblems... I'm running Win7 and VS 2010 Pro.

updatepanel in Ajax

$
0
0

hi I have below code, when im updating the below image is getting displayed, but the form access should be disabled during the progress template.. any suggestions.. thanks

<ContentTemplate><asp:UpdateProgress ID="UpdateProgress1"
         AssociatedUpdatePanelID="UpdatePanel1"
         runat="server"><ProgressTemplate><img alt="Processing......." class="style22"
                 src="../../gifs/ajax-loader.gif" /> </h1></ProgressTemplate>

image of ajax calendar extender

$
0
0

i have added calendar extender to one of the cell of details view, which show the calendar when we click in the cell.

i want to add an image on the side of the cell. when we click on the image then the calendar displays.

i don't understand how this will be implemented. 

Please help

about using Ajax Tab container (tab table) in master page, help please!

$
0
0

Hi, this is my first time using Ajax Tab container (tab table) in master page,

In my master page, I have main container which use to load each page, and top has compay logo and project name and left has menu.

Basically, I have Top, Left and Center (main part) of 3 areas in master page.

On top part, I want to have tabs, when each click, I need each product page loaded on the center main page, since Ajax has Tabcontainer control, I want to use it, but I have never use it, could anybody show me some examples of how to use it.

 

Thanks,


Modal Pop up extender is not working

$
0
0

I need to get enlarged image in pop up on clicking thumbnails of images . I have written a listview , inside Item template , an image button. Modal pop is not working inside the list view. So I have written modal pop up outside the listview and one button as target control id of modal pop up and image panel with image button and close button as popup control id.

In the code behind, listview item command , I am updating imageUrl for each image and last modalpopup.show()

But while executing, pop up is coming without image.

Can someone please help? Thanks

PopupControlExtender

$
0
0

This otta be easy.  When I run this code, the pnlEditItem shows on the page (isn't hidden) and the popup link does nothing.

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
 Namespace="System.Web.UI" TagPrefix="ajax" %><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %><asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server"><ajax:ScriptManager runat="server"></ajax:ScriptManager><asp:Panel ID="pnlEditItem" runat="server"><asp:UpdatePanel ID="upEditItems" runat="server"><ContentTemplate><asp:Table runat="server"><asp:TableRow><asp:TableCell><asp:TextBox ID="txtItemName" runat="server"></asp:TextBox></asp:TableCell></asp:TableRow><asp:TableRow><asp:TableCell><asp:Button ID="btnSaveItem" runat="server" Text="Save" /></asp:TableCell></asp:TableRow></asp:Table></ContentTemplate></asp:UpdatePanel></asp:Panel><asp:Panel runat="Server" ID="pnlMain"><asp:LinkButton ID="lnkShowMe" Text="Show Me" runat="server"></asp:LinkButton></asp:Panel><ajax:PopupControlExtender ID="popEditProduct" TargetControlID="lnkShowMe" PopupControlID="pnlEditItem"
 runat="server"></ajax:PopupControlExtender></asp:Content>

How to Show Images In DataGrid

$
0
0

I Have One Update Panel, In this Update Panel Control there is an DataGrid Control.

I want to show two Images in DataGrid, after Uploading.

But i want to show those images in DataGrid like thumbnails, when mouse over to the Image or when he click that Image it shoud show Original Image size.

But when binding to the DataGrid it show small Image like thumbnails.

Please help it's urgent.

Thanks,

Issue updating label via ajax

$
0
0

I am building a shopping cart. My requirement is to update the label to reflect the no. of items in the cart

The structure of the webapplication is as follows
1. Master Page
2. Header control within master page.
3. This header control has a label that shows the number of elements in the cart.

I have written an event handler that updates this cart label everytime an item is added. The header control has subscribed to this event handler. The problem is that the number does not get displayed in the label.

All this addition of items is done via ajax

Code of header.ascx file
*********************************************************************************************************
protected override void OnInit(EventArgs e)
    {
        var ceh = CustomEventHandler.GetCustomEventHandler();
        ceh.UpdateCartEvent += csh_UpdateCartEvent;
        base.OnInit(e);
    }
void csh_UpdateCartEvent(int itemCount)
{
    lblTotalCartItems.Text = itemCount.ToString(CultureInfo.InvariantCulture);   // THIS SHOULD DISPLAY THE VALUE, BUT THIS DOES NOT             
}
*********************************************************************************************************

********************************************************************************************************************
ShoppingCartFile where the item is added

    protected int CartItemCount
    {        
        set
        {
            var ceh = CustomEventHandler.GetCustomEventHandler(); // BINDING THE EVENT TO FIRE WHENEVER VALUE IS CHANGED
            ceh.OnCartUpdate(value);
        }
    }
    
    private void AddNewItemToCart()
    {
         var cart = new ShoppingCart
            {
                ProductId = 1,
                ProductName = "Apple"
            };
        ShoppingCartManager.AddToCart(cart);
        
        var sessionCart = SessionManager.GetSession<System.Collections.Hashtable>("Cart");

        if (sessionCart != null)
        {
            CartItemCount = sessionCart.Count; // WHENEVER THE VARIABLE VALUE CHANGES, FIRE THE EVENT
        }
    }

********************************************************************************************************************    
    Eventhandler file


    public class CustomEventHandler
    {

        private CustomEventHandler()
        {
        }
        private static CustomEventHandler _customEventHandler;

        public static CustomEventHandler GetCustomEventHandler()
        {
            return _customEventHandler ?? (_customEventHandler = new CustomEventHandler());
        }

        public delegate void UpdateCart(int itemCount);

        public event UpdateCart UpdateCartEvent;

        public void OnCartUpdate(int cartCount)
        {
            if (UpdateCartEvent != null)
                UpdateCartEvent(cartCount);
        }
    }

CalendarExtender + MaskedEditExtender loosing / after loosing focus

$
0
0

Hi I have a text box that i populate on page load with todays short date , ever since adding the maskededitextender the date comes in as

12192012 instead of 12/19/2012 as well when you click on the box the calendarextender fires and lets me select 12/19/2012 but once focus is lost it changes to 12192012 how do i fix this?

here is the markup

<asp:TextBox ID="EventDateTB" runat="server"
ontextchanged="EventDateTB_TextChanged"></asp:TextBox>
<asp:MaskedEditExtender ID="EventDateTB_MaskedEditExtender" runat="server"
CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder=""
CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder=""
CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True"
Mask="99/99/9999" TargetControlID="EventDateTB">
</asp:MaskedEditExtender>
<asp:CalendarExtender ID="EventDateTB_CalendarExtender" runat="server"
Enabled="True" Format="MM/dd/yyyy" TargetControlID="EventDateTB">
</asp:CalendarExtender>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>

How can use print functionality in Html Editor using asp.net.

$
0
0

Hi,

I am using vs2008,c# and asp.net web application.

I am using Html editor (Ajax). How can Print from Html editor content data.

help will be appreciated ......

Reagards

Mukesh

ReOrder List stops application building (sometimes)

$
0
0

I have a small application with a page which has 3 Ajax Control Toolkit reOrder lists.

The application sometimes wont build. Sometimes restarting Visual Studio (2012) sorts the issue, sometimes a pc restart - but these don't always fix the issue.

The error I get (for each reorder list) is :

'ReorderList_Started' is not a member of 'Scheduler.net.BookingScheduler'

I'm using version 4.0 of the framework and the stable latest build of the toolkit

Can anyone point me in the right direction

Thanks
Danny


Round Off To Nearest 10 in RDLC

$
0
0

Hi all,

I  have one RDLC report in which requirement is like i need to do Round Off nearest 10

like if value is 1401996  then it should round to 1402000

If one knows which expression i have write?

Thanks  

UpdatePanel doesn't refresh a Grid

$
0
0

Hi guys,

I have a Grid in an UpdatePanel with a trigger to a button. But it doesn't refresh the data when I click to the button. I have conditional UpdateMode, and i call a UpdatePanel5.Update() when I want to refresh, but it doesn't work :S

<td style="width:28%;" align= "left">
<asp:ImageButton ID="BtnBuscarTit" runat="server" OnClick="lnkBuscarTitulares" ImageUrl="~/web/Images/btn_buscar.GIF"/>
</td>

<asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="BtnBuscarTit" EventName="Click" />
</Triggers>
<ContentTemplate>
<asp:GridView ID="RejillaTitularesExp"

...

</asp:UpdatePanel>

Any idea? Regards

Tab order is messed up when control does a partial post back

$
0
0

On my page, I have an update panel, which I use to update two textboxes (textbox1 and textbox2) based on the entry of a different textbox (textbox3). So the user will enter a value in textbox3 and then hit tab. After tabbing out of the textbox, if the partial postback causes textbox1 and textbox2 to be updated, the user will lose the position where their cursor is at that time. Is there a way I can keep the cursor from being lost when the user's entry causes a partial postback?

Using the HtmlEditor

$
0
0

I am testing out the HTMLEditor from the Ajax Control Toolkit.  I just added the control, a Button and a Label.  On Button click I simply copied the Content property of the HTMLEditor to the Label.  It works nicely on my PC.  But when I deployed it to my hosting company's server (.NET 3.5), one of the calls had too long a Url.  It was something like this:

GET http://zzz.org/testEditor.aspx?_TSM_HiddenField_=ctl00_MainContent_ctl00_HiddenField&_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit%2c+Version%3d3.5.60919.0%2c+Culture%3dne
utral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a311bfa99-1d92-41d7-aace-73bb01d14bf
6%3aa578e1b4%3ade1feab2%3af9cec9bc%3a347641bc%3a5a15a1b0%3a5f7bdc4f%3a52352bec%3a4c797d4
0%3a3699b58e%3ac8f62c63%3a25452a86%3a47a6309d%3a54faba7a%3af2b15c81%3a2a44e3cc%3a1c9108b
5%3ae70cd33d%3a42921c86%3a1177529e%3a8074c3f9%3a1eecc3f9%3a8d1c8c98%3a73671002%3a8a2dc8c
f%3a737231d4%3a9a87c62e%3a66bd1a69%3a3def063d%3a11fb7995%3a5ec83a74%3a67f6b48f%3a983d445
b%3a3fce0808%3a5e87ca19%3a4cbfbdb9%3aec89763d%3ab577cb0f%3ac72764b0%3abd1a3ba5%3a49d880a
b%3ac156824%3ab399670c%3af51fc3d8%3ab4f826f2%3a1afc766f%3a5bea0edc%3aa68e3267%3afa404748
%3a789343a%3a4fad5f49%3aa432d795%3ac5750145%3af14fa3a5%3abbb7ea0d%3af4cfcbf9%3ac99d32c9%
3aea1c4087%3a58bb39a5%3a6fdc0f25%3a33a14b0b%3ac961e0ab%3a3868b074%3aa7175a9c%3abe682e2f%
3a7a78d086%3a9a2789ea%3a7c33c41%3aa737f871%3a1226bbfb%3a6cba3bab%3ae48edae4%3a8cef1288%3
a50a74782%3a8afeb62d%3a4b5e28d8%3ab3dc9e3%3acea4901c%3a414a2e6d%3a56de2be0


What is generating this GET and is there a way to avoid it or turn it into a POST instead?

Thanks.

Ajax TextBox Watermark Extender

$
0
0

Hello,

I experience a problem with Ajax textBox Watermark Extender, it works fine with in my vs2010 but not in vs2012. Could some tell what is the reason?

Viewing all 5678 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>