Showing posts with label dll. Show all posts
Showing posts with label dll. Show all posts

Wednesday, March 28, 2012

Atlas web service breaking with IIS wildcard mapping

I have a wildcard mapping in IIS for '.*' that maps to asp.net's dll to handle any mapping not specified in IIS with asp.net.

For some reason having this wildcard mapping in IIS breaks atlas. It appears that the javascript proxy no longer works. I.E.'http://localhost/MyService.asmx/js' returns a error 'The resource cannot be found'. If I remove the wildcard ('.*') mapping from IIS then the atlas code starts to work.

Has anyone else experienced this problem, or know a way that I can have a wildcard mapping in IIS and still use atlas in my application?

Hi Zerobit,

I also experienced the same when i added the wildcard as '.*' in configuration section of the project in INETMGR. can anyone help us why the wild card is creating the problem ??

Regards,

Kathir


Someone posted this in another thread where I asked the same question:

"I added a folder named "Webresource.axd" (without quotes) to the root of my application and ATLAS works now with a wildcard mapping in IIS. I hope this trick will solve the issues you are experiencing."

I havn't tested it as I have since switched to AjaxPro. But if it works let me know.

Saturday, March 24, 2012

Atlas Toolkit Use

Do you i need to create a new atlas project to be able to use the atlas controls or can i just add a dll or something and use them in my existing projects?Add the dlls as reference to your project, modify your web.config to include those entries as included with the sample site web.config included with the Atlas download. Then just make sure you do the proper reference for your apsx or ascx and likewise for you code files (see one of the example pages for the declaratives / syntax...

Atlas TabControl: conversion to Ajax (.net 1.0 rc) failed

Hi,

I found a nice tabcontrol that has ajax enabled through the atlas dll. (location:http://geekswithblogs.net/steveclements/archive/2006/08/27/89438.aspx)

I wanted to convert it so it uses the new AJAX 1.0 RC. When I do so, I get an error on the javascript that updates the active button; can someone tell me what is going wrong?

The javascript error is: Object Expected and I get it linenumber 26 in the javascript below. It has something to do with the $( ) but it works great with the non enabled AJAX website using the atlas dll.

1<script type="text/javascript" language="javascript">2 // Var to store active tab...set to first tab on page load.3 var activetab;4 this.onload = function() {5 activetab = "tab1";6 }78 function tab_OnMouseOver(tab)9 {10 // Only use hover effect if tab is not active11 if(tab.className != "tabactive"){12 tab.className = "tabover";13 }14 return false;15 }16 function tab_OnMouseOut(tab)17 {18 if(tab.className != "tabactive") {19 tab.className = "tabs";20 }21 return false;22 }23 function tab_activate(tab)24 {25 // Set current active tab to normal26 $(activetab).className = "tabs";27 // Set tab class to active28 $(tab).className = "tabactive";29 // Set activetab var to this tab30 activetab = tab;3132 // return true so the control will still postback33 return true;34 }35</script>

If someone wants the two projects to look at it more closely, just let me know; or try it yourself! The atlas tabcontrol source can be located at site mentioned above.

 This is the asp.net code of the button which calls the javascript (maybe it helpsHuh? ): 
 
<td class="tabactive" id="tab1" onmouseover="return tab_OnMouseOver(this)" onmouseout="return tab_OnMouseOut(this);">   <asp:LinkButton CssClass="tabbtn" runat="server" ID="LinkButton1" Width="90" OnClientClick="return tab_activate('tab1');" CommandArgument="0"></asp:LinkButton></td>

The $() function was removed some time ago (I think at Beta 1). The new name for that function is $get().


Changing the $() to $get() resolved the problem! All works fine now.

Thanks alot Steve!