Showing posts with label developing. Show all posts
Showing posts with label developing. Show all posts

Monday, March 26, 2012

how do I develop an Atlas application?

Hi

I have been developing asp.net applications for a couple of years now and am trying to get my head around this atlas/ajax thing.

If I was to build an application of say 20 .aspx pages I would know exactly how to go about it but I am a bit stumped on how to start an Atlas enabled one that is maintainable in a logical manner.

Instead of seperate aspx pages, do I use a user control for each "page" instead and make ajax call backs from a single page?

I can follow the examples on the Atlas website but they tend to contain only a little bit of functionality on each page - is this the way that most people are using it?

Are there any online documents that describe best practices for architecting a decent sized application using Atlas?

Any help or direction pointing would be appreciated.

cheers

Yes, I'm still organizing my sites into logical pages with atlas being used to update sections of the page dynamically, but the same principles hold true with normal asp.net functionality. You wouldn't create a site with only one asp.net page and try to handle all your functionality within just that one page with showing/hiding placeholders and event handlers for all your events. (At least I wouldn't!) I don't think you'd do the same with atlas. At some point you're going to want to load a new page, and that involves communicating with the server. I think there's only so much you want the client/surfer's PC doing - some things are better/safer when handled on the server and the resulting html returned to the client browser. It depends on your needs and what you're trying to do. That's just my .02.

(Plus you can't have an updatepanel inside a template, like a repeateritem, (yet :), so that really limits alot of what you can do anyway within just one aspx page)


i have worked on application which involves team management and it was round abt 20 pags app. We have put ajax on main pages like tasks list, billing pages and hours tracking page. Rest of the site, which involves add,edit ,delete such as for users ,projects etc ; we have used normal post back.

Dont design ur web app like a win app, with one form and many user controls. This will cause head ache in future.


ok thanks for that guys.

that actually helps a lot - I was getting myself confused with what was "possible". It looks like performance is still king in asp.netSmile

Saturday, March 24, 2012

How do I add ATLAS feature to an existing ASP.NET 2.0 Web Application?

Hi all,

Can some one provide me the steps needed to add ATLAS features to an existing ASP.NET 2.0 Web Application?

I saw the video "Developing ASP.NET 2.0 Applications using "Atlas"" byScott Guthriewhere he explained how to add ATLAS features to the To-do application. But to start with, he created anATLAS WEBSITE PROJECTand started modifying it.

I see that the config file is very important for ATLAS to function correctly. What other dependency is there? How do I create an ATLAS enabled "Web application"?

Most importantly, if i have an ASP.NET 2.0 Web Application, how do i add ATLAS features to it?

Thankx in advance

Jacob

from other thread:

ScottGu:

The easiest approach might be to create a newweb-site using the Atlas template, and then copy the resultingAtlas.dll into the \bin directory of your existing application andintegrate the web.config file changes in as well. Then you should begood to go.

Hope this helps,

Scott


hello.

well, you must:

1. add the atlas dll to the bin folder and
2. add the necessary entries to the web.config file

note that you can get the dll from the installation folder (normally, program files\microsoft asp.ent\atlas\v...\atlas and you can also see the necessary web.config entries by opening the web.config file that exists on that dir.


Hi luis,

Thankx for the information. However, this i what is had figured too. I had tried this earlier but some how, it did not seem to be working.

I was looking to see if some one has already done this, and can specify the detailed steps, including the web.config changes etc..

did you ever try to do this? Were u able to make it work? I wanted to use the new 'atlas' control toolkit. Do u think it would be easy to integrate this to an existing web application?

What difference are there between an ASP.NET 2.0 Web Application and ATLAS Website Project provided by the visual studio? Is that only the web.config which differs?

thankx

Jacob

Wednesday, March 21, 2012

How can I use a email regular expression in Ajax Toolkit

Hi I am developing an application using the validations of AJAX Toolkit. In one screen i make the user input the email address. I want to have a regular expression which will validate the input done by user. How can i add a regular expression in Ajax Toolkit.

Early response will be appreciated.

Praveen Mishra

drag a regularexpression validator on your form & set its controltovalidate property and regularexpression property. The client side validations will trigger before the partial postback.

Cheers

Vishal Khanna

(pls mark as answer if reply helps)


See the last bullet on this page:http://blogs.visoftinc.com/archive/2007/09/23/asp.net-ajax--updatepanel-not-working--common-problems.aspx about using validators with an UpdatePanel (assuming this is what you mean by the "Ajax Toolkit")

To use the the ValidatorCallout with your RegularExpressionValidator, seehttp://www.asp.net/AJAX/AjaxControlToolkit/Samples/ValidatorCallout/ValidatorCallout.aspx

-Damien


You have to set ValidationExpression Property of RegularExpressionValidator.control

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.regularexpressionvalidator.validationexpression.aspx

How can I make a masked label in web forms?

I'm developing a web site using AJAX and I need to display some data in a label but the data must be displayed with a mask.

For example, if I have two textboxes and I wanna do a sum between then, the label must display the result. But, I don't know what can I do to use a masked label.

If somebody can help me I'll be very thankful.

Thanks in advanced

i dont know if i completely understand you. you say you need a lable to display a sum but you want it masked? what exactly do you mean by masked.

a masked label is a lable that replaces certain (or all) characters with something else. For example a credit card number in a masked label could look like

***** ***** **** 3182

you can use a simple string.Replace method, or regular expressions to mask the label. Textboxes even have a Password Type which will mask everything typed into them automatically

What exactly do you want to mask in your label?