i hv been tryin since a long time..but not able to resolve my problem.M making a cascadin dropdown with ajax but gettin method error 500 in my dropdown on running it..here's my code1. dataservice.cs file
using System; using System.Web; using System.Collections;
I have created a dropdown through code behind.Then created a Cascading dropdown that also through code behind.
All the properties of cascading dropdown have been initialized properly (as i think).
And web service method is defined in separate file.
DDL and Cascading DDL have been created in App_code/NewFolder through a class file. That webservice.vb file too is placed in this folder. and webservide.asmx file is placed in root directory of the project.
When i run the project dropdown is filled only with [Method error 500]. query to fetch data from database have been written in webservice.vb file without any known error.
I am using cascading dropdown, model popup and update panel in my page.
my all drop down are in update panel. now i am retrieving values from the database through data reader and assign value of respective data to the respective control. but control (drop down list) shows "--select--" and not the retrieve value i.e. "Hospital"
I am Getting the following error using the Numeric UpDown Control from Ajax Control Toolkit. Assembly 'AjaxControlToolkit, Version=3.0.30512.20315, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' contains a Web resource with name 'AjaxControlToolkit.NumericUpDown.NumericUpDownBehavior.debug.js', but does not contain an embedded resource with name 'AjaxControlToolkit.NumericUpDown.NumericUpDownBehavior.debug.js'.
I have 3 cascading dropdown lists in an update panel. To submit the values of cascading dropdown without error it needs to turn eventvalidation off. Is there any way that i can avoid turning off the event validation and still use cascading dropdown?
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.
I'm trying to follow this article on cascading dropdown list in a GridView control in edit mode (except I'm using C#) [URL] I keep getting this error message "ProjectID is neither a DataColumn nor a DataRelation for table DefaultView."
and I have 3 DropDownList that refer below thread [URL] ...
I use cascadingdropdown for these 3 dropdownlist below are codes:
AND
[WebMethod] public CascadingDropDownNameValue[] GetCountries(string knownCategoryValues) { string query = "SELECT state FROM stateTest"; List countries = GetData(query); return countries.ToArray(); }
[Code] ....
1-DDLstate
2-DDLcity
3-DDLregion
at first I should select Item from DDLsate then DDlcity and at the end I should select Item from DDLregion
above code work correctly for ddlstate and ddlcity but it doesn't work for ddlregion...
I mean when I select Item from ddlcity in ddlregion shows:[Metod error500]
ive used the Ajax Control Toolkit in previous versions of VWD but for some reason im having trouble adding the Toolkit to the toolbox in this new version (2010) i have setup on my laptop, when i browse to and select the .dll file it gives me the error "Object reference not set to instance of an object" can anyone please help ive been trying to fix this issue for a little over an hour now.
This is the error i get in the browser. Update panel is workingBut Accordion,Rounded Corners Extender & much more controls does'nt workRESTARTING Visual Stuio does'nt help!
I am using both the AJAX Control Toolkit HTMLEditor and making AJAX WCF calls from my web form. Since we can only have one Script Manager per page, I am using this:
wanna use filtered TextBox ajax control in my simple page.I add a textbox in my page. And then i drag first script manager on my page and then drag filtered textBox in my textbox.But when i run my project i had an error like this picture..What is the problem? Where i doing mistake?
I just installed Ajax Toolkit. The controls are available in my Toolbox, but when I insert them in a page, Visual Studio underlines them with the error message "unknown server tag".
I googled the problem and found several ideas :
check if the DLL is in Bin folder check if ajaxToolKit tags prefix is registered in web.config and make sure I'm not using a different prefix in my pages check if the DLL is registered in the pages with <% @ Register ... %>
Unfortunately all of this is fine, but I still can't get the controls to work. Is something else missing ?
EDIT : My environment is ASP.Net 2.0, Ajax Extensions 1.0, Ajax Toolkit 1.0.20229, Visual Studio 2005
Me using Vb.net and Ajax control tool kit with Database Sql server.My problem is that When I select one Radiobutton list it genrates only one row in gridview and when i select another button it throws error like ".non MS DOM browser is undefined."and sometimes " document.getElementByid() is null or not an object" OR ".javaScript_dopostback.".I have few componets on my page
1. RadioButtonList Which is placed inside Update panel1 first. 2. GridView Which is placed inside Update panel2 second..and Gridview generated five Textboxes Dyanamically in which i have used autocomplete extender with one textbox. 3. I have also used Ajax tool kit extender for calender control. 4. I am also using Jquery and master page too. 5. i am generating new row on textchange event of one of the textbox in grid view.So how can i do all the above functionality properlly.
My problem is that When I select one Radiobutton list it genrates only one row in gridview and when i select another button it throws error like".non MS DOM browser is undefined." and sometimes " document.getElementByid() is null or not an object" OR ".javaScript_dopostback."
When iam try to add ajax control dll file to my ajax toolkit given in visualstudio express edition 2005, i am getting the following error.
"There are no components in 'C:ProgramFilesMicrosoft ASP.NETASP.NET 2.0 Ajax Extensionsv1.0.61025AJAXExtensionsToolbox.dll' that can be placed on the toolbox." what is the error in this?
I have a ajax combobox in my page, when i try to select an item from it i can select by typing in text and its selectedindexchanged event fires, but when that event is complete and when i try to select another item from the combobox it produces the following error:
could not complete operation due to error 800a025e,and an alert asks me if i want to debug it.If I press yes then i get this page:
System.TypeLoadException: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
I am trying to get my cascading comboboxes to work, but am getting a [Method error 500]. Any ideas? I've searched online, the code should work....Thanks in advance for your help!
ADDSTORY.ASPX:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addstory.aspx.cs" Inherits="addstory" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <form id="form1" runat="server"> <asp:ToolkitScriptManager ID="ScriptManager1" runat="server" /> <td class="style3"> <asp:DropDownList ID="selectproject" runat="server" Width="225"></asp:DropDownList> <asp:CascadingDropDown ID="ccd1" runat="server" ServicePath="~/dropdown.asmx?company=<%=co_id %>" ServiceMethod="GetProjects" TargetControlID="selectproject" Category="Project" PromptText="Select Project" /> </td> </tr> <tr> <td class="style3"></td> <td width = "150" class="style3">Iteration:</td> <d class="style3"> <asp:DropDownList ID="selectiteration" runat="server" Width="225"></asp:DropDownList> <asp:CascadingDropDown ID="ccd2" runat="server" ServicePath="~/dropdown.asmx?company=<%=co_id %>" ServiceMethod="GetIterations" TargetControlID="selectiteration" Category="Iteration" PromptText="Select Iteration" /> </td> </tr> DROPDOWN.ASMX: using System.Web.Script.Services; using AjaxControlToolkit; using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Collections.Generic; using System.Collections.Specialized; using System.Data.SqlClient; /// <summary> /// Summary description for WebService /// </summary> [WebService(Namespace = "[URL]/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. [System.Web.Script.Services.ScriptService()] public class dropdown : System.Web.Services.WebService { private string GetConnectionString() { return System.Configuration.ConfigurationManager.ConnectionStrings["MyConnection"].ConnectionString; } [WebMethod] public CascadingDropDownNameValue[] GetProjects(string knownCategoryValues, string category) { string co_id = this.Context.Request.QueryString["company"].ToString(); SqlConnection conn = new SqlConnection(GetConnectionString()); sonn.Open(); SqlCommand comm = new SqlCommand("Select ProjectName, ProjectID FROM Project WHERE CompanyID = '" + co_id + "'", conn); SqlDataReader dr = comm.ExecuteReader(); List<CascadingDropDownNameValue> l = new List<CascadingDropDownNameValue>(); while (dr.Read()) { l.Add(new CascadingDropDownNameValue(dr["ProjectName"].ToString(), dr["ProjectID"].ToString())); } conn.Close(); return l.ToArray(); } [WebMethod] public CascadingDropDownNameValue[] GetIterations(string knownCategoryValues, string category) { int ProjectID; StringDictionary kv = CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues); if (!kv.ContainsKey("Project") || !Int32.TryParse(kv["Project"], out ProjectID)) { throw new ArgumentException("Couldn't find project."); }; SqlConnection conn = new SqlConnection(GetConnectionString()); conn.Open(); SqlCommand comm = new SqlCommand("SELECT Select CONVERT(VARCHAR(10), StartDate, 103) + ' - ' + CONVERT(VARCHAR(10), EndDate, 103) AS Iteration, ProjectIterationID FROM Iterations WHERE ProjectID=@ProjectID", conn); comm.Parameters.AddWithValue("@ProjectID", ProjectID); SqlDataReader dr = comm.ExecuteReader(); List<CascadingDropDownNameValue> l = new List<CascadingDropDownNameValue>(); while (dr.Read()) { l.Add(new CascadingDropDownNameValue(dr["Iteration"].ToString(), dr["ProjectIterationID"].ToString())); } conn.Close(); return l.ToArray(); } }