Showing posts with label form. Show all posts
Showing posts with label form. Show all posts

Wednesday, March 28, 2012

Atlas without ASP.NET

I have observed that Atlas has a strong dependency to ASP.NET.
All Atlas controls have the form of ASP.NET components.

Could I use functionality of Atlas without using ASP.NET?

More precisely I would like to take advantage of Atlas rich UI features but use a server with no ASP.NET support (Tomcat, JBoss, Weblogic etc) and without using ASP.NET at all.

Is it possible? If yes how?

Please assist.

Hi,

and welcome to the ASP.NET forums.

I read on a blog last weekend that at Mix06 there was a demo by just using the script libraries to interact with PHP pages that ran on an Apache server. Unfortunately I could find the presentation or sample code at that timeSad [:(].

Grz, Kris.


hello.

well, i think it's fair to say taht atlas is divided into 2 parts: client side and server side. Most of the client side features can be used in non-asp.net pages. for instance, you can use the OO abstractions to build better javascript objects. You can also use the atlas elements that wrap the controls and i think that you can also use most of the behaviors.

i also think that you can call web services if their return value is formatted according to the JSON rules.

so, if you want to reuse the client side of the atlas, you should only need to add the necessary jscript files to your pages and you should be ok :)

Wednesday, March 21, 2012

Atlas Server Controls

Will there be drag and drop server controls for Atlas once it ships? Drag Atlas (AJAX) control from toolbox to web form, write C# code, done! Dart has a great set off LiveControls that are very easy to use but also pretty expensive. Does anybody know?
PatrickYou can already do that with the Atlas server controls if you add them to the toolbox.

Thanks for your reply. I downloaded the following from atlas.asp.net

Atlas Blank Project VSI

Use this project add-in to Visual Studio 2005 Beta 2 to create your own Atlas web project. Includes Atlas binaries and everything you'll need.
When I open a New Atlas Project and right click on the Toolbox - Choose Items - I can't find the atlas controls under the .Net Framework Components or the COM Components. Is there something else I need to install? Please let me know. Thanks, Patrick


Yes, if you want the controls in the toolbox, you'll have to add them. You do this from the context menu of the toolbox itself, which will enable you to add the controls from the atlas dll.
I'm sorry to bother you again. I have added a new tab to the toolbox and called it Atlas. Now I have four different places where the Microcoft.Web.Atlas.dll is located on my machine. Am I right to assume that I should find the atlas controls when I right click in the Toolbox and click Choose Items under the tab .Net Framework Components?
What do you mean when you write "which will enable you to add the controls from the atlas.dll?
Do I have to browse to one of the Microsoft.Web.Atlas.dll's on my computer? Will that add the controls.
Lost sorry.............
Thanks, Patrick
Thanks Bertrand, I figured it out. I browsed to the Microsoft.Web.Atlas.dll double clicked on it. This added all the Microsoft.Web.UI controls to the .Net Framework Components tab and I was able to add the controls to the Toolbox. Pretty easy really. Thanks for your help once again. Happy coding, Patrick
I've done this too, thank you. But should I still be getting manyerrors such as "The active schema does not support the element Binding"? In my code browser?
I can't even switch to design view because it complains of the Atlas tags.

That's an issue in the PDC build that has been fixed in the next build we'll release.

Hi,

I've just installed the January release and trying to add the controls to my Toolbox. Whenever I try to add Microsoft.Web.Atlas.dll by browsing it in the "Choose Toolbox Items", I received an error message:

There was an error loading types from assembly C:\Microsoft.Web.Atlas.dll
Request for permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c5656565' failed.

I am unable to add it to my toolbar... Any idea what I am missing?

Thanks!

Janh

Atlas sample

Please direct me to a simple and good Atlas sample for something like a customer registration form of a sales portal website. Thanks.What exactly you are looking for? Please specify what exactly you like to see an Atlas example?

I want to see how ajax is coded and cut out postbacks in a typical registration form that uses postbacks for data validation and data entry. Thanks.

hello.

well, maybe the easiest approach is to use an updatepanel that wraps the controls on the form.


Please kindly elaborate your idea with detailed sample code. Thanks.

hello.

something like this maybe:

<%@. Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
void Handle(object sender, EventArgs args)
{
if (!this.IsValid)
{
return;
}

//perform db operations
info.Text = "operation succeeded";
}
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<atlas:ScriptManager runat="server" ID="manager" EnablePartialRendering="true" />
<atlas:UpdatePanel runat="server" ID="Panel">
<ContentTemplate>
<span>Name: </span>
<asp:TextBox runat="server" id="name"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" EnableClientScript="false"
Text="*"
ControlToValidate="name" ErrorMessage="Field name must be filled" />
<br />
<span>Address: </span>
<asp:TextBox runat="server" id="address"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" EnableClientScript="false"
Text="*"
ControlToValidate="address" ErrorMessage="Field address must be filled" />
<br />
<asp:Button runat="server" ID="bt" Text="Confirm" OnClick="Handle" />
<asp:ValidationSummary runat="server" ID="validation" /><br />
<asp:Label runat="server" ID="info" />
</ContentTemplate>
</atlas:UpdatePanel>
</div>
</form>
</body>
</html>