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

Wednesday, March 28, 2012

why using Application Services?

Hi!

Why using Application Services?, I want put my login control in updatePanel?

Which is better?

Saludos,

Both is correct, this is what they call Client Side Model vs Server Side Model :-)


Oh, only that, Thanks :).

Saludos,

Monday, March 26, 2012

Without installing Atlas, Website application is not working in IE

Hello,

I am developing Website Application using VS 2005 with .NET 2.0 and Atlas June CTP. I am using Atlas framework in the existing project. Hence I have added reference of Atlas.dll and modified Web.config

In the project, I have one user control (ascx) and one aspx page. The user control is included in aspx page. The user control has two dropdown lists. The second list is getting populated depends upon the selected value from first list. This is done by using Atlas. The UpdateControl is added into this page. The Script manager is added in aspx page.

If the application is launched on the machine where Atlas is installed, it works only on that machine in both browsers (IE and FireFox). It is not working if anybody accesses this website remotely through browser from machine where Atlas is not installed.

If the application is launched on the machine where Atlas is not installed and accessed the local website through browser, the "SelectedIndexChanged" event is not getting triggered. If I add "ScriptLibrary" folder in the application, it is working in FireFox but not in IE. In this case,do I need to add any assemblies apart from Atlas.dll to make it work in IE and without installing Atlas?

Thanks in advance,

Milind

hello. the atlas dll is the only thing you need to have in your bin folder to get the updatepanel working. btw, how are you accessing the web site from the machine that has the app installed? are you using localhost/... or localhost: portnumber/... (ie, are you using the internal server or IIS when you access the site on the server?)


Hello,
I am accessing localhost using IIS.
On the test machine (where Atlas is not installed), if I deploy website application which has Atlas.dll and ScriptLibrary folder, "SelectedIndexChanged" event is getting triggered for FireFox but not in IE.

Thanks,
Milind

hello again.

weird stuff...btw, is this a public url we can see?

Saturday, March 24, 2012

Without installing Atlas, its not working in IE

I am developing Website Application using VS 2005 and Atlas June CTP. In the application, one page contains user control which has two Dropdown lists. Depending upon the value of first dropdown list, using Atlas, second list will get populated. I have added UpdatePanel control in user control (ascx page) for second list and Script manager in aspx page. I have added reference of Atlas.dll and modified Web.config also. This is working in IE and FireFox.
If I uninstall Atlas and run the application, it's not working in IE. To make it work in FireFox, I need to include "Scriptlibrary" folder into solution. But in IE, "SelectedIndexChanged" event is not getting triggered.
The application is working fine for both the browsers on machine where Atlas is installed. Which other assemblies are required to run Atlas on the machine where Atlas is not installed?

Thanks in advance,
Milind

hello.

well, if you're not using the atlas toolkit, then you only need the atlas dll.


Hello,
I am not using Atlas toolkit. Atlas.dll is already present in the "Reference" but still it's not working. Everything is working fine on developer's machine where Atlas is installed.

Thanks,
Milind

hello again.

the only thing that occurs to me is if the web site is not configred as a web app or is not using asp.net 2.0...

Working in Dev but not on server

Hi

I am writing my first AJAX enabled application, and I am having problems deploying it. I have created a simple autocomplete app in VS 2005 which reads values from a SQL database and returns them as an autocomplete list. This works fine on the development machine, but when I publish the app and copy the files to the server, the AJAX part of the page does not work (non AJAX parts do) I have installed the ASP.NET AJAX from http://asp.net/ajax/ on both the server and the development machine. Following publishing the app to a local drive, the only change I have made is to the SQL connection string. I have stripped the web service down to a "hello world" application to remove the connection string from the equation and this still does not work. I would be very grateful for any ideas.

Thanks

Hi,

Could you please paste the error that you are receiving here?

Thanks


You must have to install the Asp.net Ajax Framework in you server. Also you have to have the AjaxControlToolkit dll in your web application bin directory to make it working.


Turns out it was somehow related to the firewall. Worked fine bypassing the firewall. Passed to sysAdmin to sort out.

Wot is this error "DynamicControlID must be set "

Server Error in '/AJAXEnabledWebSite1' Application.

DynamicControlID must be set

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.ArgumentException: DynamicControlID must be set

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:

What ajax components do you have on the page you are running? Most likely one of them is missing a control association. For example the modalpopupextender has to have a dynamiccontrolID set

it's the web control to associate the AJAX Extender with... look through all the ajax components on the page and check to see if any of them are missing a "DynamicControlID" And if they have that as a property that can be set

Would Atlas be a good way of making a chat application?

I was playing around with the labs today and was really impressed and excited by the possibilities, but I am so new to everything I haven't quite got a grasp on how to tie it all together.
Recently I built a little asp.net shout box for a friend of mine, which was very easily done, but I was thinking how cool the shout box would be without post back! It would be pretty much like a chat room. Basically the labs showed me everything I needed to know as far as using the textbox, button and listview to make this work, but how do I update the listviews datasource? Basically I would need to use the textbox for the message and somehow bind the membership username in front of it. Update the datasource which most likely would be an xml file and refresh the web service. It all sounds so easy and I know it would take me about 20 minutes in Asp.net 2.0, but like I said I just can't tie it all together using Atlas. Any ideas would be greatly appreciated!

(Note: Bertrand has ablog post which should be pretty close to what you are doing.)
This should indeed be pretty trivial. Lets assume you already have a page with a datasource, a listview, a textbox (for the message) and a button, and you have set up the right bindings. (If this is a problem, let me know, and I will show you how to set this up properly.)
All you should really have to do is invoke a method on the datasource when someone clicks on the (save) button. Atlas has a concept called "actions", which are kind of like eventhandlers. This basically allows you to specify what actions should be performed when an event is raised. In your case, the action you want to perform is "update the datasource". You can do this with the following code:
<button targetElement="myButton">
<click>
<invokeMethod target="myDataSource" method="update" />
</click>
</button>
That is basically it. The datasource should take care of submitting the bound values (ie. your textbox value is the message) to the webservice's update method.
As a side note: if you want to quickly find out what kind of (public) methods/properties/events a control supports, you could take a look at its getDescriptor function. Ralph Sommerer hasposted a more readable version of the atlas sources, which should simplify this.
HTH.
Update: I should clarify this a little bit. You actually have to call a function "addItem" on the listview first. The listview should then add an item to the datasource (with no values), and show a new item bound against this new datarow. A user can enter values for this new item, and save it by clicking on the button the way I defined it in this post. One way to achieve this, is by adding another button:
<button targetElement="addMessage">
<click>
<invokeMethod target="myListView" method="addItem" />
</click>
</button>
Additionally, you could also tweak this a bit and for example disable this button after you added an item, to prevent a user from adding multiple items and save them at once. To do that, add a setProperty action which enables/disables the button when you add an item and save an item, respectively.


Thank you! I did find Bertrand's blog post yesterday and got pretty far.
I do have a question thoughSmile [:)]
I love the idea of disabling the add button, but could I take it a step further and only show the controls if a user is logged on? It looks like the first PDC demo would show me how to do this, but unfortunately I can't get it to work, because I seem to be missing the Atlas:panel control which is what is hiding things based on the actions. I am guessing we will have this control in a matter of days or weeks hopefully, but is there any other way without postback?

Wednesday, March 21, 2012

writing json back to client

I am making an xmlhttp request (using the scripts provided inAjax for Web Application Developersby Kris Hadlock) to get data from an aspx page. When I create a dataset and return xml with an xmldocument it works fine. I am using the following where dsreturn is the getXML of the dataset.

Dim xdocAs XmlDocument =New XmlDocument()

xdoc.LoadXml(dsreturn)

xdoc.Save(Response.OutputStream)

The problem is that I also want to return json. I have created a biz class to parse a dataset and return a json string. I know this works because I have used it in other web services. When I do this I get nothing. I think that my problem is how to return the json string in the response.outputstream. I am not sure how to do this. Just using response.write doesnt seem to work.

Thanx

Have you considered using page methods instead of doing it all by hand? They return JSON by default.

WSE and Atlas Question

Hi All,

I am building an Atlas eCommerce application (Web) that will communicate to the server using web services. Accordingly, I need to secure the Transport layer of my application and I am looking at the WSE (Web Services Enhancements) package from Microsoft.

My question is this:

Has anyone has any experience in successfully integrating WSE with their Atlas applications and know of any links or tips that would prove useful.

Many Thanks

Shailen Sukul

.Net Architect/Developer

Ashlen Consulting Service P/L

BSC | Mcsd.Net | Mcsd | Mcad

Atlas does not support the SOAP-based security protocols implemented by WSE. If you need transport security, use HTTPS.

Jeez what a bummer!

Thanks for the reply though.