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

Problem with MaskedEditExtender When Using latest AjaxControlToolkit (4.5.7.1005)

$
0
0

Hi Everyone out there..!

I am facing a problem with maskededitextender.

I have a text box which has maskededitextender and its Mask ="99999-99999" and MaskType as Number. 

While inserting these values to the database i just need to pass 9999999999 without the "-" . ClearMaskOnlastFocus is set to true but it doesn't solves my problem. 

Can anyone help me in this Please. 


are you missing a using directive or an assembly reference?

$
0
0

I cannot quite figure out why I am getting the following error.  I am using Visual Studio 2010/ .NET 4.5.

I could not figure out an option for removing the reference and placing it back, although it does not seem to be much more than an guess...

Error 1 The type or namespace name 'CommonPage' could not be found (are you missing a using directive or an assembly reference?) C:\Users\slyth_000\Dropbox\IS 3139 - Software Engineering\Jonathan Camilleri\bck\Aristotle\Tabs.aspx.cs 10 34 C:\...\Aristotle\

// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License.
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
// All other rights reserved.

using System;
using System.Web.UI.WebControls;
using System.Data.Common;

public partial class Tabs_Tabs : CommonPage
{
protected void Page_Load(object sender, EventArgs e)
{
CurrentTab.Text = Tabs.ActiveTab.HeaderText;

}

public void SaveProfile(object sender, EventArgs e)
{
}
}

Source of control: http://www.asp.net/ajaxlibrary/ajaxcontroltoolkitsamplesite/tabs/tabs.aspx

JavaScript runtime error: "The data necessary to complete this operation is not yet available" and "No digits"

$
0
0

Exception was thrown at line 165, column 29 in http://localhost:30922/ScriptResource.axd?d=FHnC7y678QIZTuGLFowVOYb9WXj38cpJ_9S8zhqugNkFm8ttAnrl08J5YogLpq60qNGEZhIuyqpLZdp5s4iztG8JMGUbiFhjJy2PuxjKSlQ2i_PujcO3yCXcoPh5Ez5cZugeFw2&t=ffffffff886f56f4

0x8000000a - JavaScript runtime error: The data necessary to complete this operation is not yet available.

Hi there,

Hopefully this an easy one - something to do with DLL versions or something?!?

NOTE: In our environment I'm unable to use packagemanager (something to do with proxy/firewall stuff)

This doesn't APPEAR to be causing any issues (yet) and we don't think it was happening in vs2010 but now we are using vs2012 and when debugging we see lots of these messages every pageload in the OUTPUT window.... any thoughts/info is appreciated.

 

 

Exception was thrown at line 3, column 7032 in http://localhost:30922/ProductCategory.aspx?_TSM_HiddenField_=ctl00_ctl00_smMinteShop_HiddenField&_TSM_CombinedScripts_=;;AjaxControlToolkit,+Version=3.5.7.607,+Culture=neutral,+PublicKeyToken=28f01b0e84b6d53e:en-US:e96eec5b-f5fc-47c8-9cba-2a4f2f4c43f0:de1feab2:f9cec9bc:35576c48:f2c8e708:720a52bf:589eaa30:698129cf:e148b24b:8ad18101:7311d143

0x800a139e - JavaScript runtime error: No digits

0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.

$
0
0
_elementContains: function PageRequestManager$_elementContains(container, element) {
        while (element) {
            if (element === container) {
                return true;
            }
            element = element.parentNode;
        }
        return false;
    },

    _endPostBack: function PageRequestManager$_endPostBack(error, executor, data) {
        if (this._request === executor.get_webRequest()) {
            this._processingRequest = false;
            this._additionalInput = null;
            this._request = null;
        }

        var eventArgs = new Sys.WebForms.EndRequestEventArgs(error, data ? data.dataItems : {}, executor);
        Sys.Observer.raiseEvent(this, "endRequest", eventArgs);
        if (error && !eventArgs.get_errorHandled()) {
            throw error;
        }
    },


Hi, I have a page that has two update panels, and multiple controls including Gridview etc etc.......

I am facing this error in IE only.......and i have IE 10 on my machine.......

This is not my code....but this is where the error is caught......

IT works fine with other browsers.........I HAVE TO MAKE IT COMPATIBLE WITH IE........its nightMare ....please help

Slow asmx web service

$
0
0

Hi all,

There is a performance problem with a webservice I've written on our production server.  I feel that I've investigated every avenue and as a last resort I'm turning to you for suggestions.

The webservice is created using spring.net's WebServiceExporter.  Its purpose is to provide data for a kendo ui grid.  Under the hood, I am using entity framework 5 to read some data and the dynamic linq library to cater for filtering / sorting / paging.

The service typically takes 2seconds to execute on my dev machine and on our load testing server, and between 4 and 8 seconds on the production/staging machine.  I have added some diagnostic code to measure execution times on the server, and am seeing 994ms to execute all code and write to the response stream.

This is the first request

{"sort":null,"filter":null,"take":10,"skip":0,"page":1,"pageSize":10}

The response contains sensitive data and I would rather not post it.  Although, it has Content-Length: 9395.

I have been using lean sentry to analyse whats happening in the pipeline, and can see that the following items are slow:

  • Session in AcquireRequestState   -   takes 1041 ms
  • ManagedPipelineHandler in ExecureRequestHandler    -    takes 4 seconds (of which I can only account for 994ms as mentioned above).

I've been logged into the production server at 3am to test this our infrastructure team insist it is because of the server loading, but the delay is still there with all other sites turned off and nobody else accessing the server.

Kind of on my own on this one so I'm hoping that you can help.  Case of beer in it for you if you can point me to a solution.

ajax script manager

$
0
0

i have a script manager at my master page, but i have 1 page require a scriptmanager because of cant page 2 scriptmanager hwo should i do? if i open a new webform without attach master page the function can work well? 

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableHistory="true" EnableSecureHistoryState="false" ScriptMode="Release"></asp:ToolkitScriptManager>



How to create a directory from one website to another programmatically

$
0
0

Hi,

I know how to create folder(directory) on server but I don't have any idea on creating directory from one website to another programmatically.

(Please note here both domains must be present on same server.)

Regrads,

Shashikant

LISTBOX SELECTED ITEM CHANGED FROM JAVASCIPT DOES NOT FIRE SERVER SIDE EVENT

$
0
0

I have a listbox with searchable entries. Search is achieved using textbox.

<script type="text/javascript">
        function fnSearchListBox() {
            var strSearchValue = document.getElementById('<%= txtsSearchSernm.ClientID %>');
            if ($("#txtsSearchSernm").val().length == 0) {
                fnClearSelection();
            }
            for (var i = 0; i < document.getElementById("lstSServices").options.length; i++) {
                if (document.getElementById("lstSServices").options[i].text.toLowerCase().match(strSearchValue.value.toLowerCase())) {
                    document.getElementById("lstSServices").options[i].selected = true;
                   //document.getElementById('lstSServices').options[i].style.color = "blue";

                    return false;
                }
                else {
                    fnClearSelection();
                }
            }
        }


        function fnClearSelection() {
            document.getElementById("lstSServices").selectedIndex = -1;

            
        }
    </script>



<asp:ListBox ID="lstSServices" runat="server" Height="203px" Width="272px"
                                            SelectionMode="Single"
                                            onselectedindexchanged="lstSServices_SelectedIndexChanged" AutoPostBack="true"></asp:ListBox><asp:TextBox ID="txtsSearchSernm" runat="server" CssClass="textfield-mandatory" Width="264px"
                                            placeholder="Service Name" onkeyup="fnSearchListBox();" AutoComplete="off"></asp:TextBox>

If i click on any item in lisbox then list box click event

lstSServices_SelectedIndexChanged 

get fired. But after searching something, the matched value is highlighted using javascript, on click of that matched value the  selectedindex changed event does not fire .

help pls


Asp.Net Url Re-Writing

$
0
0

Hi m using ASp.Net Url Re-writing

when m using this i il get url like this 

http://localhost:10869/Customer

but webmethod wont call

$.ajax({
type: 'POST',
contentType: "application/json; charset=utf-8",
url: 'CustomerMaster.aspx/InsertMethod',---Here How to call webmethod,its wont called when m using asp.net url rewriting
data: "{'FirstName':'" + $('#<%=txt_FirstName.ClientID%>').val()'}",
async: false,
success: function (response) {

}

});

[WebMethod]

public static string(String FirstName)

{

return "";

}

Thank you

<div>
</div>

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

Issue with the Update Panel after deploying to the server.

$
0
0

Dear all,

I have an issue with update panel. I have a code a gridview. For refreshing issue, i had put the update panel outside the gridview. All these codes are inside tabcontainer.When i run the code on the local host then it works as expected wtihout refreshing.But when i deploy on the server the grid view on the click of calendar redirects to an error page.Here am not able to find the error also since its in server.Please let me know whether the update panel will work with tabcontainer or it has an issue.

Thanks

Auto Complete Extender with Images and Text

$
0
0

I want to impliment Auto Complete Extender with Images and Text ....inside an auto complete extender

for eg... Like in Facebook....

using web method    and without JQuery

Please, help me fast

Register Ajax tookit

$
0
0

Hi,

I have installed the Ajax toolkit and also registered it in the web config file (attached). However, when I try to use one of its components (like ToolkitScriptManager and CalendarExtender), I get an error that it is not a known element.

Could anyone pls tell what else I need to do in order to use the Ajax components ?

Thanks.

<?xml version="1.0" encoding="utf-8"?><configuration><appSettings /><connectionStrings><add name="ConnectionString" connectionString="Data Source=server;Initial Catalog=sample;Integrated Security=True" providerName="sample.Data.SqlClient" /></connectionStrings><system.web><customErrors mode="Off" /><compilation debug="true" targetFramework="4.0" /><!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        --><authentication mode="Windows" /><!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"><error statusCode="403" redirect="NoAccess.htm" /><error statusCode="404" redirect="FileNotFound.htm" /></customErrors>
        --><pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"><controls><add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" /></controls></pages></system.web><!--
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    --></configuration>

 

is it possible to display data reurned by autocomplete extender in asp.net in a listbox? can i do that?

$
0
0

what i want is to display records returned by autocomplete extender in a listbox , not like the way it returns the records. is there any way? Please help. thank you.

Dropdown loading using ajax

$
0
0

hi,

    <select id="drp_Type" datavaluefield="0"  runat="server" required/>      

when i load drop-down using ajax showing error in webmethod

$.ajax({
type: "POST",
contentType: "application/json",
url: "ProductMaster.aspx/LoadDropdown",
dataType: "json",
success: function (data) {
var div = $("#test").empty();
$(data.d).each(function (index, item) {
div.append(data.d
);
});
},

});

[WebMethod]
public static string LoadDropdown()
{
ProductMaster load = new ProductMaster();
Shopping dbhandler = new Shopping();
db dbh = new db();
DataTable dtt = dbhandler.LoadDataTable("select id,value from Lookups where Type like 'Type' union all select '00000000-0000-0000-0000-000000000000' as id,'select--' as [value] union all select '00000000-0000-0000-0000-000000000001' as id,'Add/Modify' as [value]", "lookups");
load.drp_Type.DataSource = dtt;--Here i il get error--drp_Type comes null value
load.drp_Type.DataValueField = dtt.Columns[0].ToString();
load.drp_Type.DataTextField = dtt.Columns[1].ToString();

load. drp_Type.DataBind();
return "";

}

can u give me solution how to load dropdown using ajax

thanks


knockoutjs can not show data

$
0
0

<div class="post-text" itemprop="description">

I am following this "http://www.dotnetcurry.com/ShowArticle.aspx?ID=933" thread to to show data on table using knockoutjs,but the table is empty eventhough I see 8 items when I debug the controller.

KnockoutJs function:

viewModel = {
    lookupCollection: ko.observableArray()
};

$(document).ready(function () {
    $.ajax({
        type: "GET",
        url: "/Home/GetIndex",
    }).done(function (data) {
        $(data).each(function (index, element) {
            viewModel.lookupCollection.push(element);
        });
        ko.applyBindings(viewModel);
    }).error(function (ex) {
        alert("Error");
    });
});

HomeController.cs:

public JsonResult GetIndex() {
ImplProduct product = new ImplProduct(); 
return Json(product.findAllProduct()); }

Index View:

<table class="table">
 
<tr>
<th>Name</th>
 
<th>Price</th>
<th>Category</th>
<th></th></tr>
<tbody data-bind="foreach: lookupCollection">
<tr>
 
<td data-bind="text: Name"></td>
<td data-bind="text: price"></td>
<
td data-bind="text: Category"></td>
<td><button class="btn btn-success">Edit</button><button class="btn btn-danger">Delete</button></td>
</tr>
</tbody>
</table>

thankyou very much your answer.

</div>

Download Excel sheet from Server without Excel Installed

$
0
0

HI All,

             Is there any way to download Excel in local Machine through application from Server without Microsoft Office installed in Server?? Is there any way to achive this?? Thanks in advance..

AsyncFileUpload uploads twice

$
0
0

Hi,

I have a working AsyncFileUpload and the AsyncFileUpload_UploadedComplete function gets called and then I save the file with a filename from a TextBox on the same page.

This Textbox is also used in conjunction with a search button to look for already uploaded files.

So after an upload, when I change the filename in the TextBox and press the button the previously uploaded file gets uploaded again with the new filename because AsyncFileUpload_UploadedComplete fires again on postback.

How can I prevent this from happening?

Due to Postback on Tabcontrol, edit events do not fire

$
0
0

Hi,

I have a tab container and multiple tab controls. In each of these tab controls, I have a formview and a gridview respectively. On page load event, I am loading the controls on the first tab in the if (!IsPostBack) loop. In the ActiveTabChangedServer event, I am loading the controls based on the headertext of the tab. When the edit button of the gridview/formview is clicked, the postback occurs and I dont see any data. However, when I remove the code in the if (!IsPostBack) loop, keeping it empty, the edit event fires properly.

Any help/guidance is deeply appreciated. I am struggling with this for the past few days.

Thanks,

AjaxControlToolkit 4.0 VS 2010 No Source Available error

$
0
0

I coverted a VS 2008 project to VS 2010.  I then downloaded and installed the AjaxControlToolkit for .net 4.  When I run in debug mode I get an the following error.  Any suggestions would be appreciated.  The code worked in VS 2008 .net 3.5. 


No Source Available

There is no source code available for the current location.


Call stack location:

AjaxControlToolKitDLL!AjaxControlToolkit.ToolkitScriptManager.OnLoad(System.EventArgs e) Line157

Source file information:

Locating source for 'd:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs'. Checksum: MD5 {c1 d2 e2 8c cd 4b 65 11 35 53 7f f5 e3 3b 76 58}

The file 'd:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs' does not exist.

Looking in script documents for 'd:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs'...

Looking in the projects for 'd:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs'.

The file was not found in a project.

Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\crt\src\'...

Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\src\mfc\'...

Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\src\atl\'...

Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\'...

Looking in directory 'C:\'...

The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: d:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs.

The debugger could not locate the source file 'd:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs'.

Viewing all 5678 articles
Browse latest View live


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