Showing posts with label application. Show all posts
Showing posts with label application. Show all posts

Wednesday, March 28, 2012

Installation question

I have a application which is using several 3rd party tools which ar based off of AJAX RC. If I remove the RC version and reinstall the RTM version how will this affect my application.For sure you might run into a few problems. I've been working on a big fat project at work since the "Atlas" came out. Whenever there's a new version, I uninstall and reinstall ajax. It's a pain, because the new that comes out is not compatible with the old one, not all but some. However, it's not that bad that makes you want to rip your hair off your head. When you change one line of the old ajax to the new one, the next one is basically similar. Most of it is copy & paste. =) You gotta start from somewhere. Good luck.

Installing ajax extenstions and tool kit on server....

Hi All,

Im going to deploy an application that uses the ajax control tool kit to a server which as yet has not even one such application installed. And i have to create a case to convince that it is safe to install the extensions and toolkit on the server.

My arguments will be that

1) Only 2 assemblies are needed to be installed in GAC for the extensions. System.Web.Extensions and System.Web.Design.Extensions. So our backout strategy is fairly simple, all that needs to be done is unregister these assemblies from the GAC.

2) Ajax control tool kit assembly AjaxControlToolkit.dll will be just copied in the bin folder so this should not be an issue.

I also had a question if the app will work if the 2 System assemblies are simply copied in the bin folder?? I had read a post somewhere that the app has to run with full trust but did not quiet understand why that has to happen. To me if the assemblies are first searched in bin and if not found then searched in GAC, so this should work fine.

I also wanted to get the 2 points above validated because what I do has to go through an approval process and i have to be absolutely sure of what I am doing.

All answers appreciated, especially from someone who is managing servers where plain vanillla asp.net 2.0 apps and ajax apps are running side by side.

Regards,

Mahesh

Sorry about this..but i just confirmed that it is already an approved install..

Installing Atlas into non-atlas solutions

Hello everyone!

I need some help to do what I have to do, which is the following :

I have an asp .net 2.0 application nearly finished, and now I need to put support to atlas in it. How do I do that? I can't just start it over using the atlas template, there's too much already done! However, I only know how to start an atlas application.

Any help would be greatly appreciated!

Leandro Fernandez

Your best bet (imo, easiest) is to start an atlas project, then copy over the bits of the web.config you don't have (there's handlers, additional sections, etc) currently. You'd also make sure you have the atlas.dll in your /bin of the site, and then start adding atlas stuff. easiest of course is to add a scriptmanager and then wrap existing things in updatepanels, but it really depends on what you're trying to accomplish.

I just dealt with this: add the Atlas.dll to bin, add the sections to web.config as per the tutorial and add a script manager to the .master page if you have one. Try implementing an UpdatePanel, that will get you going.


Go to this post:http://forums.asp.net/thread/1336185.aspx and scroll down a little. It shows the changes to web.config needed for Atlas to work (in addition to copying the dll into the bin folder!)

Monday, March 26, 2012

Instant GridView Refresh on Update Button Click

I have an application that allows for the updating of data in an Oracle table. I am using Atlas, with ObjectDataSources.

There is a quicklist gridview displaying the data, the user picks the record and it displays some options for updating the record in a seperate form on the page.

Upon clicking the update button the record is updated and a Verify changes button is displayed. When the user clicks the Verify changes button the page will display the correct update.

I have found no other way to to display the change on the Update button click.

Is there a way to instantly show the update with only one click of a button. I want the gridview to rebind and display the new update with the update button click. Why does it take two clicks to show the update?

are you using Gridview1.Databind() when you click update?

That forces an update no matter what.

Interesting if it would be possible

Dear Members,

I have developed a mobile application using the Emulator 5.0, but when i am going to browse the website using Emulator or any mobile then my Java Script is not working, please share if you have any idea. Also if javascript is not working on mobile then how can i use AJAX control toolkit like update panel and all.

Please share if you have any good idea about that.

Regards,

Asif

Ajax isn't supported with current mobile browsers. There is a project in microsoft labs called deepfish that may or may not fix that issue.
Have u got the solution??

Saturday, March 24, 2012

Internet Explorer 5.5

I have a small Atlas project and it will only work with Internet Explorer 6.+ Does Atlas support IE 5.5? When I run the application I get a java script error.ATLAS utilizes many new features(Javascript & XML) only found in new browsers. As it stands I beleive it only works with IE 6+

hello.

i haven't tested it in IE5.5 but it expected it to be supported in that version. well, i'd guess that since 7.0 is out, they won't make any efforts to support it (btw, is there any good reason for not upgrading at least to IE 6?)

Internet Explorer Settings

I'm working on an application which we're trying to use some basic Atlas features in. When running our application in Visual Studio 2005 and when we access it on the production IIS server from our computers everything works fine. The problem is our clients have hardened systems (we can't even see what options are enabled/disabled in Internet Explorer) and when they try to use our application, the Atlas does not work, it does a full post-back/refresh. I also test the Atlas Control Toolkit demo site on their system and the CascadingDropDown controls didn't even populate. Has anyone seen this before or have any idea what Internet Explorer options need to be enabled in order for Atlas to work correctly? I also don't think it's an Ajax problem because Telerik controls work fine on their system, Atlas is the only problem. Thanks a lot!

Thanks,

RobBump...

Invalid postback or callback argument on page back

Hello,

I ran into this by placing myselft as the final user of my web application.

I have several pages using AJAX controls (update panel, autocomplete extender, etc), and I noticed that when I have redirect to another page, and till there, using the IE back page button, the previous page is loaded and then a message error is prompt (Invalid postback or callback argument)

By now I'm disabling the - PageEventValidation - but, actually I'd like to solve it in a better way.

Thanks in advance guys,

Hi Manotas,

Do you have databound controls, like a DropDownList or a GridView? If so, did you make sure they are initialized in a block that checks for inital page load?

For example:

if (false == Page.IsPostBack)

{

// code for initial load goes here

}

else

{

// code for PostBack from same page goes here

}

Pete


Hi Peter,

Thanks for reply.
I do have bound control. After reading at your post, I checked the initialization of my databound controls.
I realized that there is a gridview which I am initializing at first loading but not during postbacks, however, when the page is reload by using the back button on the browser, there is a postback and maybe is there where is my error. The thing is that I'm not sure what kind of validation I could do there since I wouldn't like to change the data of the parameters used on the select's datasource ...

I tried to find a pattern on the error... I must correct what I said about the invalid postback after the page's loading. In fact, I realized that it was happening only sometimes, and only when I was clicking on certain linkbuttons, on the other side, if I click on others buttons I was not having any problem at all. Also, as you mentioned the fact of look at databoud controls, I began testing and I found that I was getting the error only when I was turning back to the page and my gridview was visible (I'm using a multiview control, and the gridview I mentioned above is contained in its view).

By now, I restored the PageEventValidation and added at the update panel a postback trigger for the controls which are making visible my gridview.

Since I'm not receving the error message anymore... let's see I'l heard about it later...

Cheers

InvalidOperationException : Request format is invalid : application/json charset=utf - 8

Can anybody help me guys with this one,

I'm tryng to invoke a web method in my web service from javascript but i keep on getting javascript response Error stating that my webmethod couldn't execute because of this Error (InvalidOperationException : Request format is invalid : application/json charset=utf - 8 )

here is my logic for my web service

[ScriptService]
[WebService(Namespace = "http://www.wipspace.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class svrCreateReal : System.Web.Services.WebService
{
private clsLibraryFile objF;
private clsWipReel objWipR;


public svrCreateReal ()
{
objF = new clsLibraryFile();
objWipR = new clsWipReel();
}

[WebMethod]
[ScriptMethod(UseHttpGet = false)]
public int createReelfileCollection(string reelID, string menuID, string fileID )
{
try
{
objWipR.reelID = Convert.ToInt32(Server.HtmlEncode(reelID));
objWipR.reelMenuID = Convert.ToInt32(Server.HtmlEncode(menuID));
objF.fileID = Convert.ToInt32(Server.HtmlEncode(fileID));
return objWipR.createReelMovieCollection(objWipR, objF);
}
catch
{
return -1;
}

}

From my aspx page i call a javascript function that invokes the web method like below

<asp:ScriptManager ID="scriptManager"
runat="server" >
<Services>
<asp:ServiceReference InlineScript="true" Path="adminWipService/svrCreateReal.asmx" />
</Services>
</asp:ScriptManager>

<script type="text/javascript">

function createReel( sender, e )
{
var container = e.get_container();
var item = e.get_droppedItem();
var position = e.get_position();
var fileID = parseInt(item.getAttribute("fileID"));
var menuID = parseInt(container.getAttribute("MenuID"));
var row = position;

var created = svrCreateReal.createReelfileCollection(6, menuID, fileID);

alert(created );

}

thnks very much in advance

cheers

Pay attention on Web.config of your application. It have to contain some declarations. Similarly to it:

-----

<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections
<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="false">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
</compilation
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
</system.web
<system.web.extensions>
<scripting>
<webServices>
<!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
<!--
<jsonSerialization maxJsonLength="500">
<converters>
<add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>
</converters>
</jsonSerialization>
-->
<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
<!--
<authenticationService enabled="true" requireSSL = "true|false"/>
--
<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
writeAccessProperties attributes. -->
<!--
<profileService enabled="true"
readAccessProperties="propertyname1,propertyname2"
writeAccessProperties="propertyname1,propertyname2" />
-->
</webServices>
<!--
<scriptResourceHandler enableCompression="true" enableCaching="true" />
-->
</scripting>
</system.web.extensions
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</handlers>
</system.webServer>
</configuration>

Invoke an UpdatePanel update from client script

I'm writing an application which is predominantly a client-centric application but I need to update a part of the page from a client script action. What is the correct way to do that? I presumed that you simply set the UpdateMode of your UpdatePanel to Always and then implemented ICallbackEventHandler on the page to do the async postback. I've done that, but my UpdatePanel is not updating... help :)

In my ClientCallback, I'm essentially rebinding the control that sits inside the UpdatePanel and then explicitly calling Update() on the UpdatePanel... but nothing.

Hi digory,

http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/

Is this what you are looking for?

Wim.


It is. I was just trying that solution as you posted and it works fine. Thanks! Smile

Is Ajax features invalid if set an "ajax page" as an "iframe page" of another main page??

HI Guys:

I upgraded my atlas web application to the ajax v1.0 version and found a series problem: the ajax feature ( "no postback" ) is invalid in an "iframed page"!!

For exsample: I develop an ajax page A--- yes, it has scriptManager , updatepanel, some buttons in it and so on……, if I open the page in a unique IE brower, everyting works fine , i can savor the amoratic breeze of ajax effects; however , If I open page B where these codes place:

<iframe src=http://page A url width="700px" height="700px" scrolling="no" frameborder="0" ></iframe>

, or I can say if I experience page A in another parent page B -- the exited ajax effects disappeared!!! Moreover I get some "access denied" alert.

Who can tell me why? when i used the ajax RC version, I dident meets this . But now the final version baffles me and aggravate my aspiration of continious development.

Up Need help!

Wednesday, March 21, 2012

Is Atlas Ready? 3 questions

I'm building an ASP.NET 2.0 eCommerce application that has a pretty standard item order form. When a user configures an item, I'd like the price to change completely on the client side. Each item has 0 to 15 options, some options don't effect the price, some do. When the user selects an options, say by clicking a checkbox, I'd like the UI to respond all client side with the SubTotal and Total prices updating to reflect the selection.

1) Is the current December release of Altas reliable and fully functional for this requirement?

2) Can I install Atlas in an existing ASP.NET 2.0 application? (all the docs I've seen basically are starting an ASP.NET 2.0 Atlas application from scratch. My current application is about 100 files and is near completion. The current plan is do use DHTML, but Altas is much cooler if it is ready, willing and able)

3) Can Altas be used in a production environment? (e.g. do I need a Beta licence like we did for ASP.NEt 2.0 before November?

TIA,

geo

As for #2 - you sure can - simply make a reference to the Atlas.dll - copy the script folder into your solution

I've been using it since the Dec CTP came out


1. No. Wel Yes. It is fully functional but expect things to change in the next release.

2. Yes

3. No.


For clarity on number 3, as I oringinally asked the question poorly

Can I use Atlas in a production environment??

Thanks again,
geo
While you can do anything you want, the legal and technical answer is that
there is no license available for using Atlas in a production environment.

Wally

wrote in message news:1162230@.66.129.67.202...
> For clarity on number 3, as I oringinally asked the question poorly
>
> Can I use Atlas in a production environment??
>
> Thanks again,
> geo
>

Is Atlas scheduled for release to production environments? Do you have an estimated date when it will be available? Will there be any cost associated with it?

TIA,

Walt


As far as I know, the "go live" is for late 2006.

Wally


when is the next release?

i heard there would be one every month, including this sometime this month.

thanks

Is Atlas Application and AJAX Enabled Wesite application are the same?

As I have seen the tutorial video the application there was Atlas however after I have installed ASPAJAXExtSetup the one I found when I tried to create a sample web application was ASP.NET AJAX Enabled Web Site application. Am I installing the wrong package or they are just the same? thanks...

ATLAS was the codename for AJAX. Technically they are the same. However AJAX usually means it is a newer build/release.
ok, thanks for that

Is is required to install AJAX extension in the server to run ajax enabled site

Hi,

I have a .net application using Ajax extensions and tool kit. Now I am trying to deploy it in Win 2003 server.

After installation when I try to open the application I get the following error:

"Could not load file or assembly 'System.Web.Extensions, "

I wanted to know if it is required that I have to manually install the Ajax extension on the server. Or the dll in the bin folder of my project for the Ajax extension is enough.

Thanks

gayathri.

I think it needs to reside in the GAC on the server. I had a similar issue.


Eric


Thanks eseidel,

Could you please say me how u resolved it. I have not done anything on GAC earlier.

Thanks,

Gayathri.


Hi Gayathri,

Install ASP .Net Ajax in the server (this automatically registers the dlls in the GAC). This should take care of the problem.

If this is not possible then you have to manually register the dll in the GAC. For this you can do two things:

1. Drag and drop the dll into c:\Windows\Assembly or

2. Use GACUtil. Check out this link to get a clear idea of using the utility.

http://msdn2.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx

hope this helps.

Thanks,

Raja


Could you possibly tell me which file i'd need to download... preferably the location for the asp.net ajax framework for the dedicated servers?


Hi, My problem was resolved after installling the ASP.net AJax Extension MSI in my server.

You don't have to place it in any specific location. Just download the latest version of the Ajax Extension Framework from the ASP.net AJax site and install the MSI in your server. After the installation, you should be able to see the files in the below path in your server

"C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\"

-Gayathri

Is it easier to add AJAX or CSS Adapters?

I have a new web application. C#. .net 2.0. I can of course create it blank, but I want to use the VS template for either AJAX or the CSS Adapters. I want to use both, but am not sure how to add them later. Which would you suggest I start the application as AJAX or CSS Adapter? Which is easier to go back and add? Thank you.

CSS is a much much much easier technology, so start with the AJAX template.

Happy coding :)


CSS Adapters are easy to implement. However, they also seem to take over anything they are configured to transform. o, for example - if you use the gridview one - perhaps you do not want the adapter to apply the styles - I found no easy way to get rid of them and still retain them for the rest of the pages . But I also run a dynamically generated site so excluding certain pages / paths in a web.config was not an option...

Ajax is relatively more complex but not by much and you have alot more flexibility over where and how...In combination - and using them for the right design reasons both can equally be leveraged...Design with the Ajax template - the CSS adapters can just get dropped in later and a simple tweak to the web.config. Much harder to remember all the things in a Ajax web.config to copy over to a CSS Adapter template,...either or though it is not all that difficult...play around with them - I am sure you will find what works best for you...

Just my two cents worth...

Is it possible that ie6 on windows 2003 rejects Atlas?

I built an application using Atlas, it looked great on WinXP running IE6, and IE7, and FireFox, but when i tried the application on windows2003 and IE6, the Atlas partial renders just froze .

hello.

this can happen if the server isn't correctly configured to serve atlas pages. can this be the case?