Showing posts with label toolkit. Show all posts
Showing posts with label toolkit. Show all posts

Saturday, March 24, 2012

Trouble Adding Toolkit Controls

When I attempt to add a toolkit control, my site crashes. I have non-toolkit ajax controls working just fine, but as soon as I add an extender(always visible) my site crashes.

If I preview it on my developing machine, it works fine, but then I get the following on the production machine:

Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.

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.InvalidCastException: Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.

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 Trace:

[InvalidCastException: Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.] System.Web.Configuration.ApplicationSettings.EnsureSectionLoaded() +70 System.Web.Handlers.ScriptResourceHandler.IsCompressionEnabled(HttpContext context) +7 System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +30 System.Web.UI.ScriptReference.GetUrlFromName(ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) +293 System.Web.UI.ScriptReference.GetUrl(ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) +237 System.Web.UI.ScriptManager.RegisterScripts() +507 System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +111 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2052172 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2247



Version Information: Microsoft .NET Framework Version:2.0.50727.1378; ASP.NET Version:2.0.50727.1378

As always, thanks again for all of your helpGeeked

I'm thinking it has something to do with IIS. If I preview it though VS2008's development server, it works fine, but when I run it through IIS is when my heartaches begin...

Wednesday, March 21, 2012

Trouble getting Value out of DynamicPopulate Populated Control

Hi:

I'm using a combination of AutoComplete and DynamicPopulate out of the AJAX Toolkit. The AutoComplete polls my Active Directory, then sends the selected name to the DynamicPopulate control. The DP control then sends me back an email address. Since the DP control will not populate a textbox's "Text" value, I decided to use a label. The label populates properly on the page, however, when I try to pull the value through my code, the label's text value is "". All population using the DP is done before the call for the values. Does anyone have any suggestions?

The label is being populated after the page loads; ASP.NET is a server side language, since the page hasnt posted back to the server yet, your code still thinks the value is empty.

Thanks for your reply. I understand why I can't get the value out, and I'm trying to prevent a postback, however, is there any possible other way to get these values out? I've tried a javascript "hacky" way to get the value into an HTML control, then finding the control to get it's value, but that's proving to be quite a feat in itself. Any suggestions?

Here's the set up:

I have a web service with two methods. One goes to my Active Directory and does AutoComplete on the name. Onblur, it calls the other method which takes the text in the AutoComplete text box and sends it back through the directory, which then returns the email address. A DynamicPopulate control populates a label (which is going to be hidden) in order for me to grab the email address. My structure is lenient, so any suggestions would be greatly appreciated!

Thanks

John


I'm having somewhat the same problem!

I use the DynamicPopulateextender to populate at Panel with information from a webservice. It works just fine but now i want to fetch the info and save it. If u get it to work, please tell me :)

Trouble installing Control Toolkit

Hi all, I cannot install the toolkit properly. Is there a specific location that I should extract the files to? I get error messages saying that certain files (website examples etc.) didn't install properly. Thanks for your help.

Andy

Hi MonkeyInquisition,

monkeyinquisition:

Is there a specific location that I should extract the files to?

As far as I know, there's no specific location limited. But it is recommended to extract the files to System Driver(c):\Program Files\Microsoft ASP.NET.

To install the Ajax Control Toolkit, you'd better have a glance at this: http://www.asp.net/ajax/control-toolkit/live/Walkthrough/Setup.aspx. Also, there's a pretty good video tutorial provide on this url: http://www.asp.net/learn/ajax-videos/.

By the way, Ajax Control Toolkit works depend on Asp.net 2.0 Ajax Extensions, so you should install it first. It's video tutorial is also provided on the url above.Thanks

I hope this help.

Best regards,

Jonathan

Trouble installing Ajax Control Toolkit

Hi all, I've not managed to install the toolkit properly. Is there a specific folder that I should extract the files to? Thanks.

Andy

I am not sure what exactly the problem is but any how ...You might havn't installed the prerequisites as well.

You need to install Extensions package as well. from the same donwload page.......

Then there is dll file in the bin folder where you installed the setup you can use it in your pages then easily...

Regards

Muhammad Tabish Sarwar


Hi,

I'd like to add something to Muhammad's post.

To use it, just place the AjaxControlToolkit.dll assembly in the bin folder of you web site.

Trouble with code-behind accessing form controls

Hey everyone. I'm having a problem in VS2008 and the toolkit. It's kind of hard to explain but I will do my best.

I'm having trouble with accessing properties from an AJAX entended ASP.NET control in the code-behind file. It happens on both my own project and in every project that uses code-behind in the SampleWebSite.

I'm using the Toolkit 3.5, no custom build, using the binary from the 3.5 SampleWebSite bin directory.

I took several screenshots to help show what I mean.

This first screen just shows the panel (login panel) that i want to have popup in the Modal extender.

There is a ScriptManager and a ModalPopupExtender in the HTML code (see below)

<ajaxToolkit:ToolkitScriptManagerID="ScriptManager1"runat="server"/>

<ajaxToolkit:ModalPopupExtenderID="ScriptManager1_ModalPopupExtender"

runat="server"TargetControlID="btnSignIn"

PopupControlID="pnlLoginModal"CancelControlID="btnModalCancel"

DropShadow="True"OkControlID="btnModalOk"

BackgroundCssClass="modalBackground"PopupDragHandleControlID="pnlModalDrag">

</ajaxToolkit:ModalPopupExtender>

The second screenshot shows what happens when I try to get the "Text" property of the Textbox inside the modal panel (not in run time, in code)

Notice the tooltip. Is this a normal behavior for AJAX or am I doing something wrong? I don't understand because every time the code-behind files in the SampleWebSite try and use a property is shows as an invalid symbol also.

Thanks for any help.

--Matt

I don't know if there is any signifigance to this but, I tried and opened the SampleWebSite for the .NET 2.0 runtime and the code-behind works fine. Is there something in the 3.5 reference list that needs to be changed when working with 3.5 and the toolkit designed for 3.5 or what?

Here is another screenshot with the Control toolkit solution opened and the CascadingDropDown code-behind showing (unaltered by myself). Notice all the invalid symbols..

I'm using VS2008 with all .NET runtimes installed on XP sp2. I really need to figure out what's going on so any suggestions would be great. Thanks,

--Matt


Nevermind; I found out what was going on after researching for a few hoursAngry It turns out ReSharper from Jetbrains doesn't like AJAX in the current build hence it flags its properties as illegal. It builds fine but still annoying.

Thanks to all who read my post..

--Matt

Trouble with Control Toolkit

Hello,

I am using the ASP.NET Ajax Control Toolkit with Visual Web Developer. I am not able to see the controls from the toolkit when I drag and drop. The only way to see the object is to find them in the properties box and adjust properties but not be able actually see them.

It would be appreciated if someone could explain how to install the control toolkit in Visual Web Developer. B/c i feel i have installed in the wrong manner.

Hi,

Everything sounds like it was setup correctly. Most of the components in the Toolkit areExtenderControls which just add new properties to the controls they extend in the designer.

Thanks,
Ted

Thank You that is what I was looking for!


Thanks that was what I was looking for!