I have a Javascript function which handles the onChange event of a dropdown list. Each item in the dropdown has some additional attributes added in the Page_Load event. When the user selects an item from the dropdown, the onChange function is executed as expected. The attribute values are picked up and processing works as expected. The dropdown sits on a modal popup.
Looking in the debugger, I can see that my additional attributes sit in an Expando collection within the SelectedItem object that has been passed into the function. If I click Cancel, the modal popup closes. If I then open it again and select a different item from the dropdown, the function again executes as expected and the Expando collection is there with all my attributes in it. So far, so good.
However, if I Update rather than Cancel, the form posts back. If I then open the modal popup again and select a value from the dropdown, the function executes as expected. However, all of my attributes have a null value.Doing a bit of digging, I can see in the debugger that the Expando collection is no longer there. However, if I look at the source code (current version in developer tools), I can see that the attributes are definitely present on the Options within the Select (dropdown).So, it seems that the attributes are there, but Javascript can't "see them".
I have an ASP.NET page and I am trying to quickly match the validation controls that are tied to a particular textbox (text input) using a jQuery selector. The validation controls render as a span and the "controltovalidate" property renders as an expando property. Here is a test example:
The problem: the ml_test() function shows 1 in Internet Explorer 7 (as expected), but shows 0 in Firefox 3.6.8. I tried adding additional controls, but in Firefox it consistently doesn't work.
I discovered this post that shows the use of an ampersand in the selector like this [@expando=value], but when I try this syntax, jQuery 1.4.2 throws an error.
Is there a cross-browser way to select expando attributes, and if so, what is the proper syntax?
I am accessing this xml file by using LINQ to XML in asp.net by using C#. I am able to access all the attributes of an XML node by explicitly specifying the name of the attribute. I want to write query on this xml file which reads all the attribute values of the xml node (In our example the node is SERVER) dynamically means I want to write the query which can read the read the value of the attribute Name & ID from first node, only name from second row, Name, ID & Parent from the third row , Name & ID from the fourth row, Name, Parent & Value from the fifth row & only Name from the sixth row without modifying the existing code every time. Once I add one of the attribute ( for example if I add the attribute ID in the sixth row ) in the above xml file then I dont need to modify my LINQ to XML query. My query should dynamically fetch the total number of attributes & display their values. Is their any way to do this ?
I've tried setting the Font-Bold and ForeColor properties on both the TabPanel and its parent TabContainer with no apparent results. I've also tried doing it through CSS, again with no success. Has anyone found a way to do this?
I am using an update panel in my ASP.NET code. My problem is very simple and straight forward.
There is button which send some group SMSs to different users.
I used update panel to show UpdateProgress on my page.
On click of the button I wish to hide the button and some other labels on the page.
The problem is that after clicking the button everything else works find but these control's state does not change.
Funny thing is when i click the button, it does some checks and update a label text with error resultant values, if error is there. It works fine.
But after removing the error, I click the button once again to do the processing. Then everything on code works fine, but the label which was showing doesnot hide.
I downloaded Tool Kit.Create New Website-->Add Tab(Ajax Control Tool Kit)-->Choose items-->added dll file All the controls Appeared in the tab.I closed VS 2008 and opened again.Created new website.I cant find the AjaxControl Tool Kit Tab.I thought that i should add it for every project.So again Add Tab(Ajax Control Tool Kit)But, a popup said that Tab name "AjaxControlToolKit" already exist.But i cant see that tab.How can i see that tab in all the projects..
I have three ajaxtoolkit comboboxes on my page where the user can enters his date of birth : day, month, year.
[Code]....
for the days and years a scrollbar is shown when the user hits the arrow button. For the months no scrollbar is shown with the problem that december is not visible to the user.
Various articles refer to the 4.0 ScriptManager (and Proxy) ClientElementsToActivate property.However I can't find it.Am I missing something really obvious?I'm on VS 2010.
I have an ajax toolkit tabcontainer that used to work ok. It has three tabPanels and I can work correctly with the content inside them.
Now I'm trying to add some new tabPanels but I face a problem.
The first time the page is loaded I see all the new tabs. If I make any postback due to any control interaction, the new panels are still visible, but when I move to another page and go back to the page with the tabContainer, I only see my three original tabs.
I have to close the web server (the one coming with visual studio) to be able to see again all my tab panels
I've added a new tabContainer and is the same. The first time I load the page I see everything, but the following times I only see my original three tabPanels inside my first tabContainer (the new tabContainer is not seen at all).
I am using VS2008 and some of the ajax controls are grayed out (but not all of them!), I can't seem to drop the grayed out control onto the design view of the page, but I can in code view. Also even though I've turned on Asp.Net Non-Visual Controls from the toolbar I can't see any of the ajax controls on the page, apart from the script manager. My target framework is set to 3.5.
I have a webpage which includes a telerik grid in ajax mode. The data for the grid is constructed in the controller action used to serve the view, and then stored in the session. 90% of the time its available to the ajax method used to populate the grid. And sometimes its not, which is odd. Some sort of race condition ?
[code]....
So if my session object is null, how can I recover - I guess I need the productModelId and Revision parameters from the original EditImage call. Are they available in the _EISelect in any way - its posted to, and the post contains nothing useful.
Oh to make this possibly harder, this page will be displayed via an inline frame.
In a web page, I call a web service (located in the sub folder WebServices) with ajax asp.netHere my aspx code:
[Code]....
My web site uses integrated windows authentication and all works fine.However, my web service doesn't need authentication and in order to not have 2 requests (because of http code 401), I've allowed anonymous access on the WebServices folder. Doing this, I get the folowing error message when I call a web method: "Invalid web service call, missing value for parameter: user"When I look at my body request with Web Development Helper, I can see {"user":"toto"}. So, I don't understand why it's not working.Another weird thing: when I run Fiddler2 instead of Web Development Helper, every thing works fine. I turn off Fiddler2, and it doesn't work any more.
I missing something but I a have been using some of the AJAX extenders for some time now but can't help thinking that I'm missing something. For example the extender that gives a text box a drop shadow looks totally rubbish, my baby daughter drew better shadows at nursery..Are there some neat CSS features I can incorporate to the textboxes etc.. cos I can't see what all the raving is about with this AJAX
I follow the instruction from this video http://www.asp.net/ajax/videos/how-do-i-use-the-aspnet-ajax-cascadingdropdown-control-extender to create a new web site but I do not see "Ajax control toolkit web site" template to choose after clicking File>New>Web site.
I have AjaxCtrlToolKit4_0 on the machine and in my other project/solution I controls under Ajax Toolkit in the Toolbox. That means I have the Ajax Toolkit. Why doesn't it allow me to create a "Ajax control toolkit web site"?
Another question is do I need to create a separate web site for ajax web service? I already have a web app under a solution. I have a page in this app. This page has some controls such as dropdowns, textboxes, etc. I want to make the dropdowns cascading and do not want to create a separate web site. But the example in the video requires a creation of a new "Ajax control toolkit web site" which includes .asmx file.
I'm using VWD2008, I just downloaded AJAX Control Toolkit 3.5 and installed it following the steps in the official site but can't find "Add Extender" option. I also have another problem that I cant fine the "EnableHistory" property in scriptmanager control properties.
I have an ASP.NET TextBox with TextMode = TextBoxMode.MultiLine that is used within an AJAX Update Panel. The .Text value has been pre-set to a value that has multiple lines.
When using Chrome(7.0.517.41) or Firefox(3.6.11) working with the controls posted back value on the server the carriage return is lost if the user hasn't edited the pre-set value.
i am new to using AJAX.I am using Visual Web Developer 2010 and I followed all the steps given on the http://www.asp.net/ajaxlibrary/act.ashx website to install AJAX.However, when I try to run my website,I get an error:
"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed."
when i opened my Visual Studio 2010 i noticed that my ajax tab was missing from my toolbox and ajax control kit too.Then i noticed even that when i create new website, there is no web.config in it and it should be.WHAT IS GOIN ON???? :/
I have a web form with usual elements (first name, last name, etc). The Postback URL is a different website altogether as the form is intented to post lead information to another website.
The site that accepts the lead is expecting First Name to come over as "FName", and Last Name to come over as "LName". Is there any way I can set the ID of a textbox to "txtFName", but submit it over the wire as "FName"? I tried changing the name attribute, but at runtime it sets the name = id.