I have a problem with how to communicate with Web page using atlas script(i dont want to use Web service).i need to send data from client to server. appriciate if any body can help regard on this matter.
Thanks
Better go for magicajax. Its very simple. Add the dll to project refrence. Put your form tag inside ajax panel and do your natural work. magicajax will take care of the rest.You can expose a Web Service directly from an ASP.NET Web Page:http://atlas.asp.net/docs/atlas/doc/services/exposing.aspx#webpage
-Mike
you can use atlas:updatepanel around the web controls which you want to update data after postback. The updatepanel will automatic control data send and receive between client and server side, it also automatic refresh the web without reload the page.
Quick way to use atlas update panel:
1. Remember to edit your web.config to configure for Microsoft.Atlas (view the web.config in Atlas setup folder: C:\Program Files\Microsoft ASP.net\Atlas). Remember to copy the Microsoft.Web.Atlas.dll to your bin folder.
2. in your aspx page, remember set runat="server" for head tag. in this section, you can declare a scriptmanger control like this
<head runat="server">
<atlas:ScriptManagerID="ScriptManager1"runat="server"EnableScriptComponents="true"EnablePartialRendering="true"/>
</head>
3. In your aspx body, under the form tag, you add atlas update panel
<form runat="server">
<atlas:UpdatePanel><ContentTemplate>
... your web controls and HTML controls ... here
</
ContentTemplate></atlas:UpdatePanel></form>
That all. You don't need to change any code in your .aspx.vb or .aspx.cs file, Run your website project and you will see the effect of Atlas to your page postback behavior.
Of course, above is just the easiest and unprofessional way to apply Atlas to your asp.net website project. You can try the Triggers of the Update Panel and you can read more to take advantages from Atlas.
Happy Atlasen
No comments:
Post a Comment