AJAX :: 3.5 - Control Toolkit And Secure Site With Client Certificates
Nov 19, 2010
I have a internal site used by employees of my company that uses ASP.Net 3.5, Ajax and the Ajax Control Toolkit and is secured using https and requires a client certificate to gain access to the site. We are getting the following error when updating drop down lists on the very first page of an application wizard we have built. The page uses an UpdatePanel with PartialPagePostbacks enabled.
An unknown error occurred while processing the request on the server. The status code returned from the server was: 413
ScriptResource.axd Line: 5
Code: 0 Char: 62099.
I have increased the maxRequestLength value to 8192Kb (which is way overkill), the readAheadBuffer to 4096Kb, set all the timeouts I can find, and this problem keeps showing up for my users. I can reproduce the error if I let the initial page site idle for 2-3 minutes before doing the partial page postback to move to the next segment. I have been chasing this now for a couple of weeks, and keep coming back to the same sites with the same answers.
I'm a newbie with ASP.net, so forgive.I'm trying a simple site with Ajax Control toolkit. When I install the toolkit, everything shows up in the "Toolbox" except for TabPanel.I downloaded "AjaxControlToolkit.Binary.NET35.zip" and I'm running VS 2010.
I ran an ASP.NET page that i have under development on my local IIS. It uses some dragPanelExtenders as well as some other AJAX Control Toolkit AJAX client side stuff, and in order to show the page to somebody, I wanted to put it up as a plain HTML file, hosted on a live web server (running APACHE). (This is the only public web server I have access to, and I want them to be able to drag some panels and experience the page as it would be when "live")
So, I viewed the page running on my local IIS, then saved the source as a HTML file.
Then copied this HTML file to the web server ( as well as necessary CSS, JS and image files).
When I view this HTML file through the web server, I get this error :
ASP.NET Ajax client-side framework failed to load.
By debugging, I see that the following lines were in my saved HTML :
<script src="/Insata10/WebResource.axd?d=VAXZudqFsChpNfB" type="text/javascript"> <script src="/Insata10/ScriptResource.axd?d=Dwbyv-OIp-kJQdqf_UMh7wUzi2" type="text/javascript"> <script type="text/javascript"> if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
So, at runtime, the referenced resources "ScriptResource.axd" and "WebResource.axd" were not found.
Is there any way to get whatever is needed from those AXD's to my HTML file, without actually executing anything on IIS?
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 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'.
Background: From a desktop application, users will navigate to an SSL-encrypted web portal where they will have to enter a username / password if it's their first time logging in. I want to be able to securely persist their user session. I was thinking of using encrypted cookies, storing their username and a unique session token / key, but was wondering what benefits client certificates offered in terms of security.
The way I see understand it currently:
Encrypted cookies:
Saved on the user's machine just like any other cookie Since the entire site is SSL, the contents of the cookie cnnot be tampered withEasily implementableWhen a user logs in again, invalidate the token / key and issue a new one
Problems:
Anyone attempting to access the web portal on the computer with a saved session will be able to, but this is a problem with any persisted session, right?
How do I know that computer A is computer A and not just computer B that copied computer A's cookie?
Client Certificates:
A pain in the ass to install Will uniquely identify that person's computer (or can it be restricted to the user account) to the web portal If the client certificate is stolen, then the account is compromised
Question: For persisting user sessions with the utmost security, would encrypted cookies be sufficient or would I need to install client certificates? How do they differ?
I am working on a pretty old site, which has been built using Anthem.Net framework.Now I am trying to use Ajaxtoolkit controls along with the existing anthem controls.But any anthem call back in the page, causes the ajax tool kit controls (for ex. tab panel control) to disappear - Is there any work around for this?
I am devloping asp.net application.I am devloping in network so i have installed AJAX toolkit on server but the problem is its not running on client.its perfactly running on Server
I have 2 sites, one the main product site the other a secure site featuring the basket and checkout processes.
When a user clicks "add item to basket" I am creating a basket in a database and then adding the items to the basket. The theory was then to store the id from the database for the basket (the basketid) in a cookie, redirect the user to secure site, use the basket id from the cookie and display the contents in the basket.
However I am having trouble getting the secure site to use the same cookie. When I redirect the users to the secure site, the basket appears empty. I need to go back to the main site and then back to secure before the cookie appears.
Here is the code for the cookie
[Code]....
And then on the secure site this is how it gets the basket ID from the cookie
[Code]....
But like I say it's having problems. I've tried replacing the cookies with session variables as well but it didn't work.
The Ajax control toolkit tab panel automatically inserts a space by all four corners of the body. For example, go to http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/Tabs/Tabs.aspx and look at the TabPanel on the page. The is a space before "Signature:" and "Bio:" labels. How can I set the space-width to 0px; in the tabPanel body?
When I click the button to open the modal popup it shows the popup but then continues and forces a postback causing the page to reload and the modal popup to be hidden again.Here is the markup for the control:
I'm trying to use the Calendar control in a local intranet enviroment, so I need to put all the Javascript files locally, I've downloaded the Ajax Control Toolkit 40412 source code and extracted the Scripts from
"..AjaxControlToolkit_9c860ac12ae9SampleWebSitesAjaxClientWebSiteScripts",so I write the following code
i have a page with some control like update panel and cascading dropdownlist. I have added some asp require validators but it does not working.
I have an asp image button with a postback url set. When i click on this button, the validations does not occurs and the application goes to the next page.
ajaxcontrol toolkit combobox control, a picture is worth than a lot of words so here is the picif you are not able to view then here is the link
http://flic.kr/p/8Uw29z
the problem is the items text in the combox box is having a square beneath at the second character which is hindering the visibility of the list. but the square is not appearing in the text area.
Adding an Accordion only creates the outer most tags. I then have to add the headercssclass, contentcssclass etc. info. Then i have to manually add <Pane> tags, and then add Accordion Pane controls. Using VWDE 2008, is there a way to customize the control so that adding the Accordion control automatically adds this other info? Ideally with 2 Accordion Panes to start, but even just getting the various Accordion properties and the <Pane> tags added would make it much more <Pane>less!
MSDN documentation says that the ScriptManager class is part of the System.Web.UI namespace and I see that I can create a ScriptManager object programmatically. However, I don't see the ScriptManager control on the front-end. Do I need to reference the Ajax Control Toolkit dll in order to have access to control?
i have used ajax control toolkit masked editor extender.i want to remove "_" from masking pattern and want to replace it with space. for ex. want " - - " instead of this
Can I use the latest AJAX Control Toolkit on a .net 2.0 project which will be deployed to a server with framework 2.0 only? If not, where can I download the latest AJAX Control Toolkit for framework 2.0?