AJAX Control Not Working
Nov 22, 2010
I am new using AJAX Controls. I have downloaded the tool kit, added it to my tool box in .NET, created a web application with a simple standar button and added a confirmation extender but the page only shows the button when I click on the button it doesnt show the confirmation box.I dont have any error, I have added the script manager to my page so not error at all.
View 7 Replies
Similar Messages:
Dec 30, 2010
Ajax calendar control not working properly with content place holder of Master Page.Most of time Calender Control hides when mouseover with out changing date in content place holder of Master Page.same code works in normal aspx pages.
View 2 Replies
Jan 12, 2011
I am new to Ajax Control Toolkit, with the help of online tutorials I had created a cascading dropdown list in asp.net and tested it on my local machine. For this dropdown list data source would be an xml file (which is saved on my local machine c drive). I haven't encountered any issues until I deploy the precompiled web site on to IIS 7. When I open the web site from IIS I would see the two dropdown boxes on the web page with an error "Method error 500". I believe this error occured due to incorrect xml file
path provided on IIS. I had copied xml and xsd files into IIS server C drive but it did not help out and then I created a network map and placed the xml and xsd files in that shared folder tried to access that path from web service, it's working on local machine but not on IIS. It would be great, if any one could explain me the solution.
Following is the .aspx and .asmx code:
.aspx code:
<form id="form1" runat="server"> <div> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> <br /> <table> <tr> <td> <asp:DropDownList ID="DropDownList1" runat="server"
Height="20px" Width="257px"> </asp:DropDownList> <asp:CascadingDropDown ID="CascadingDropDown1" runat="server" Category="Category" TargetControlID="DropDownList1" PromptText="[select category]" ServicePath="~/WebService.asmx" ServiceMethod="GetCategory"> </asp:CascadingDropDown>
<br /> </td> </tr> <tr> <td> <asp:DropDownList ID="DropDownList2" runat="server" Height="20px" Width="257px"> </asp:DropDownList> <asp:CascadingDropDown ID="CascadingDropDown2" runat="server" Category="Type" TargetControlID="DropDownList2" PromptText="Select
Type]" LoadingText="Loading Type.." ParentControlID="DropDownList1" ServicePath="~/WebService.asmx" ServiceMethod="GetType"> </asp:CascadingDropDown> <br /> </td> </tr> </table> </div> </form>
.asmx code(.cs code):
[WebMethod]
public AjaxControlToolkit.CascadingDropDownNameValue[] GetCategory(string knownCategoryValues, string category)
{
XmlDocument _doc = new XmlDocument();
_doc.Load(HttpContext.Current.Server.MapPath("~/C:/ItSupportCategory.xml"));
XmlNodeList list = _doc.SelectNodes("/CategoryList/Category");
List<CascadingDropDownNameValue> categorylist = new List<CascadingDropDownNameValue>();
foreach (XmlNode node in list)
{
string catid = node.Attributes["value"].Value.ToString();
string catname = node.Attributes["name"].Value.ToString();
categorylist.Add( new CascadingDropDownNameValue(catname,catid));
}
return categorylist.ToArray();
}
[WebMethod]
public AjaxControlToolkit.CascadingDropDownNameValue[] GetType(string knownCategoryValues, string category)
{
int catID;
StringDictionary selectedvalue = AjaxControlToolkit.CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);
catID = Convert.ToInt32(selectedvalue["category"]);
List<AjaxControlToolkit.CascadingDropDownNameValue> cascadingValues = new List<AjaxControlToolkit.CascadingDropDownNameValue>();
XmlDocument _doc = new XmlDocument();
_doc.Load(HttpContext.Current.Server.MapPath("~/C:/ItSupportCategory.xml"));
XmlElement root = (XmlElement)_doc.SelectSingleNode("/CategoryList/Category[@value='" + catID + "']");
for (int i = 0; i < root.ChildNodes.Count; i++)
{
string typeid = root.ChildNodes[i].Attributes["value"].Value.ToString();
string typename = root.ChildNodes[i].Attributes["name"].Value.ToString();
cascadingValues.Add(new CascadingDropDownNameValue(typename, typeid));
}
return cascadingValues.ToArray();
}
Xml File:
<?xml version="1.0"?>
<CategoryList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="test.xsd">
<Category value ="1" name="SYSTEM WIDE">
<Type value ="1" name="Email"/>
<Type value="2" name="SAP Locked"/>
<Type value="3" name="Job Archive Full" />
</Category>
<Category value="2" name="SAP">
<Type value="3" name="Pricing Incorrect"/>
<Type value="5" name="New Item #"/>
<Type value="6" name="Reports"/>
<Type value="7" name="New User Setup"/>
</Category>
<Category value="3" name="OTHER">
<Type value="8" name="Production"/>
<Type value="9" name="Office"/>
<Type value="10" name="Toner for Printer"/>
<Type value="11" name="Security Camre Lookup"/>
</Category>
</CategoryList>
View 2 Replies
Apr 12, 2010
I have used Ajax control Toolkit(1.0.11119.20010) with ASP.Net 2.0.My website working fine at local network and ajax control functioning well but at server end ajax control not functioning, my website running and not throwing any error but whatever ajax control i have used is not functioning at server end..Following dlls are included in project: AjaxControlToolkit, AjaxExtensionbox, System.Design, System.Drawing.Design, System.Web.Extensions, System.Web.Extensions.Design
View 5 Replies
Jul 8, 2010
My AJAX autocomplete control is not working. I have tried everything I can think of.
[Code]....
View 11 Replies
May 1, 2010
I am using Ajax Control Toolkit version 40412 in my asp.net 4.0 website. When I run the page in Firefox it is working good but I run the page in IE8 it is not rendering toolkit controls and putting "//" characters on the bottom of page.This is happening with every control of toolkit.
View 1 Replies
Oct 27, 2010
I'm using the new version of ajax control toolit v3.0.
I Installed the new version and found it worked fine as soon as i change my scripmanager to ToolkitScriptManager, However, I recentlly realised that now my sites hovermenus do not work in IIS6 (maybe 7 too) Ive tried in firefox and IE and the same.
I changed from <asp:ToolkitScriptManager> to the old <asp:ScriptManager> and they work but i need the toolkitScriptManager cause of some new controls I have used will use need it.
I am using VS 2008 , .net framework v3.5
View 2 Replies
Jun 8, 2010
i have written some code to for a project im working on but the Ajax tool doesnt want to function.... I know the web method works course it gives me my results when i run it but when i run the appliaction the AJAX doesnt fire this is my web service code
[WebMethod]
public string[] GetCompletionList(string text)
{
List<string> al = new List<string>(10);
[code]...
View 10 Replies
Sep 24, 2010
AsyncFileUpload not working with IE9. only on capability mode
View 9 Replies
Feb 15, 2010
I tested the web service.it is working fine.The problem that i want to solve is to make call to webservice. Here is the .aspx code
<asp:TextBox ID="txtFullName" runat="server"></asp:TextBox>
<ajaxToolkit:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server"
TargetControlID="txtFullName" ServiceMethod="FindFullName"
ServicePath="../WebService.asmx" EnableCaching="true"></ajaxToolkit:AutoCompleteExtender>
Webservice code :
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Summary description for WebService
/// </summary>
[WebService(Namespace = "[URL]/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class WebService : System.Web.Services.WebService {
public WebService () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
[WebMethod]
public string[] FindFullName(string prefixText)
{
string sql = "Select FName from Investigators Where FName like @prefixText";
SqlDataAdapter da = new SqlDataAdapter(sql,"Data Source=vvvvv;Initial Catalog=vyyyd;Persist Security Info=True;User ID=PowetttrUsyyer;Password=888888);
da.SelectCommand.Parameters.Add("@prefixText", SqlDbType.VarChar, 50).Value = prefixText+ "%";
DataTable dt = new DataTable();
da.Fill(dt);
List<string> liste = new List<string>();
foreach (DataRow dr in dt.Rows)
{
liste.Add(dr.ItemArray[0].ToString());
}
return liste.ToArray();
}
}
View 10 Replies
Dec 6, 2010
I was trying to use Ajax rounded corner control. When I set properties for panel from theme folder css file it was not working. If i provide from server control it is ok. Why it is like that?
View 1 Replies
Dec 2, 2010
I originally got the 'Extender controls may not be registered after PreRender' message and my app uses a lot of User Controls.I put the base.OnPreRender(e); and it took care of that problem (put in the default.aspx.cs).The control does come up but when I click on the calendar image it does nothing.Here is my source:
[Code]....
[Code]....
View 16 Replies
Jun 11, 2010
I'm using MaskEditExtender control for a numeric field. My code is,
<asp:TextBox ID="Options_simpleTextBox" runat="server" Width="30px"></asp:TextBox>
<ajaxToolKit:MaskedEditExtender ID="Options_simpleMaskedEditExtender" runat="server"
TargetControlID="Options_simpleTextBox" Mask="9.99" MessageValidatorTip="true"
InputDirection="RightToLeft" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
MaskType="Number" AcceptNegative="None" ErrorTooltipEnabled="True" />
It works fine but If I enter '2.' I can't able to type further automatically.
View 1 Replies
Nov 10, 2010
i try to use ajax tab container control in my project, but it throws error. its not working properly
View 3 Replies
Apr 13, 2010
I have created an application in Microsoft Visual studio 2005. And I have used Ajax control tool kit version
3.031106.0. It works fine in my local system. When I hosted this on the server,I am getting this following error.
"Could not load file or assembly 'AjaxControlToolkit, Version=1.0.10606.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies"
The server is Windows server 2008.
View 1 Replies
Feb 7, 2011
I have three modal popups that are working properly because I test it the controls with simple plain text.
I placed a form view and a datalist in the first two modal popups and everything seems to be okay.
I need to place a user control in the third modal popup but everytime I place the user control I get a javascript error for that particular modal popup.
When I copy paste the same modal popup on a blank page and place the user control inside of the panel then the modal popup works perfectly fine.
I basically copy/paste the same code back where the other two modal popups are then I get the same JavaScript error.
The modal popup crashes first on:
this._popupElement.parentNode.appendChild(this._foregroundElement);
View 7 Replies
Jul 1, 2010
I'm using the new version of ajax control toolit - 40412. Installed it due to the previous version having problems with modal popup extenders inside update panels. I Installed the new version and found it worked fine as soon as I change my scripmanager to ToolkitScriptManager, However, I recentlly realised that now my sites hovermenus do not work in IIS6 (maybe 7 too) Ive tried in firefox and IE and the same. I changed from <asp:ToolkitScriptManager> to the old <asp:ScriptManager> and they work but I need the toolkitScriptManager cause of some new controls I have used will use need it. This is all implmented in my masterPage for the site so I will post the code (there is nothing in the code behind)
[Code]....
It all runs fine when I run as project from Visual Studio.
View 4 Replies
Mar 3, 2011
I have used ajax CalendarExtender in my web site but after uploading it does how show the calander control. I have registered the control on the page itself. The page postback when i click the image on which i applied the control.
View 2 Replies
Aug 26, 2010
I been trying the AjaxListSearch extender control but it is not working...I added a listbox and added the ajaxlistsearchextender on it.I get this error :Error : 'Sys.Extended.UI.ListSearchPromptPosition.Top' is null or not an objectI also try an ajax combobox and same thing.... this is the error I received :Sys.Extended.UI.PositioningMode.BottomLeft is null or not an objectthis is my code :
<
asp:ScriptManager
ID="ScriptManager1"
[code]...
View 1 Replies
Feb 22, 2010
Can anyone tell me why the following nested Accordion control does not work?
[Code]....
The error I kept getting is this:
DataSource 'sql1980s' for control 'acd1980s' doesn't exist 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.Web.HttpException: DataSource 'sql1980s' for control 'acd1980s' doesn't exist Source Error:
[Code]....
View 1 Replies
Jan 25, 2011
I'm trying to use the AJAX PopUp control extender. If I hard code the entried of the radiobutton list, then it works, but what I'm trying to do is populate the radiobuttonlist depending on the element chosen in the first dropdown list....but this doesn't work....Why will it work if I add the items in the "rblCSTP" but if I try to populate it based on the ddlElements then it won't work?
<td valign="top">
<asp:DropDownList ID="ddlElements" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
[code]...
View 5 Replies
Mar 8, 2010
I am using Tabcontainer of AJAX Control Toolkit . The problem is that, i have 10 tabpanels. I want to show this tabs in two lines, first 5 in one line, second 5 tabs in another line.
View 2 Replies
Mar 3, 2010
have a sliderExtender Control over textbox like this
<cc1:SliderExtender
ID="SliderExtender1"
BoundControlID="TextBox1"
TargetControlID="TextBox2"
runat="server"
Maximum="10000"
Steps="500"
Length="200">
</cc1:SliderExtender>
However, when I drag the slider the incremental is not 500. How to ensure it increase by 500 each small drag movement ?
View 4 Replies
Feb 19, 2010
i use a asyncfileupload control to upload files from my web pages. since i have a listview inside an update panel, and the listview needs to have the file upload functionality, i can not use a asp fileupload control.
the uploaded files are saved inside a temp folder in my application directory. i use a asp:button to upload files from the asyncfieupload control to my temp folder.
as long as i work on my local machine, the upload control inside the listview works perfectly fine, and does what is expected of it (i.e upload files :))
but when i move the code to my web server the asyncfileupload onthe page works just once, that is, it uploads just once (no matter whichever row of the listview it is) and for all other subsequent uploads, it uplaods a file of the same name to my temp folder but with 0KB size.
it beats me why asyncfileupload control would behave this way in the two environments.
could anyone suggest a possible reason/or something i m missing to configure on the server?
View 5 Replies
Sep 21, 2010
I want to uplaod my images into the database.it works fine if my images are inserted into the database on postback,but when i put my FileUpload control in UpdatePanel the FileUpload.PostedFile property shows NULL.remember my scriptmanager tag is in master page.
here is the code:
UploadImage.aspx
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
[Code]....
</asp:Content>
View 2 Replies