Showing posts with label website. Show all posts
Showing posts with label website. Show all posts

Wednesday, March 28, 2012

Atlas Wiki VSI

Hi, after i downloaded and installed atlas wiki vsi file, i tried to create a new website, however, the atlas wiki template did not show as one of the templates. any idea how to fix this?
mp
Try to reinstall it?
did you check everywhere in your new project... list of projects you can make, What are you using for an IDE?

Atlas Wiki Application Status

In a few other posts I've read that the Wiki application was hidden on the atlas website because it wasn'tcompatible with the newest release of atlas. I was going to checkout out the wiki mostly for learning purposes (i bought Foundations of Atlas - and most of Chapt 7 is about the Wiki app). But i don't want to crack open the Wiki code if much of it is out of date and/or no longer supported.

I have heard "we will update the Wiki in a future release" - what is the status of these efforts? I would wait if a release was expected soon or if someone has already updated the wiki app.

What were the fundamental problems with the Wiki app and the latest version of atlas? A few minor changes in code syntax or major architectural issues? I'm trying to avoid making the same programming mistakes myself.

Any information or direction is appreciated - Thanks in advance for your response,

J. Shane Kunkle

Hey,

I purchased that book too and was looking for the wiki, i never did actually find it. Also, after attempting to work through many of those examples found in the book i found that the majority didn't work with the July version of Atlas that I have installed. Were you able to find updated examples online?

Thanks,

Kas

I found a download to the wiki application here -http://forums.asp.net/thread/1241581.aspx

The author does have some errata and updated code from chapters 3 & 5 on his blog -http://www.philotic.com/blog/?cat=3. Unfortunately i've still found a few problems with the latest code he has posted in his blog. I've also found a number of examples in Chapt 7 that do not run properly which he has not addressed in his blog yet (has no one else got to Chapt 7 yet? - j/k).

So after hours of debugging code from that book the last few nights I figured i would post my original question here - and try to see what i was getting myself into before crack open the wiki code – and possibly spend many more hours more debugging code.


Hi jkunkle:

Can you be more specific about the problems you've found? I'd be happy to post fixes and blog them.

Laurence

(Author of 'Foundations of Atlas')

atlas website or aspnet

Hello there,

I was wondering if it is necessary to create an atlas website to use atlas controls. I was thinking of creating aspnet website and user atlas controls in few pages. What's is the difference between atlas template and aspnet template?

many thanks!

kushpaw

You don't need a atlas website for atlas controls. You just need a Asp.Net website with the Atlas Dll referenced. Also you should run the Atlas .msi so that it registers the .asbx extension. Read this for more info.

http://atlas.asp.net/docs/Overview/Install.aspx


Hi,

you also need to make some changes to the web.config file. The quickest way to do this is to compare the atlas website's one with the web.config in the aspnet website.


thnx guys!

ATLAS web.config and external databases

Hi,

I'm fairly new to ASP and even newer to ATLAS. I have built an ASP 2.0 website using the starter kits. I was able, bearly, to configure the web.config file in the starter kit to use the M$ SQL Server database running on the server.

Now, I'm trying to learn ATLAS and I'm finding that my lack of understanding of the structure of the web.config file is really screwing me over. I have a couple of questions.

Is there documentation somewhere that explains all the elements that go into the web.config file? What changes do I need to make to the web.config file for ATLAS in order to use the servers database?

Here is what my web.config file looks like:

<?

xmlversion="1.0"?>

<

configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<

configSections>

<

sectionGroupname="microsoft.web"type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup">

<

sectionname="converters"type="Microsoft.Web.Configuration.ConvertersSection"requirePermission="false"/>

<

sectionname="webServices"type="Microsoft.Web.Configuration.WebServicesSection"requirePermission="false"/>

<

sectionname="authenticationService"type="Microsoft.Web.Configuration.AuthenticationServiceSection"requirePermission="false"/>

<

sectionname="profileService"type="Microsoft.Web.Configuration.ProfileServiceSection"requirePermission="false"/>

</

sectionGroup>

</

configSections>

<

microsoft.web>

<

converters>

<

addtype="Microsoft.Web.Script.Serialization.Converters.DataSetConverter"/>

<

addtype="Microsoft.Web.Script.Serialization.Converters.DataRowConverter"/>

<

addtype="Microsoft.Web.Script.Serialization.Converters.DataTableConverter"/>

</

converters>

<

webServicesenableBrowserAccess="true"/>

</

microsoft.web>

<

appSettings/>

<

system.web>

<

roleManagerenabled="true"defaultProvider="AspNetWindowsTokenRoleProvider" />

<

authenticationmode="Forms"/>

<

pagestheme="Default">

<

controls>

<

addnamespace="Microsoft.Web.UI"assembly="Microsoft.Web.Atlas"tagPrefix="atlas"/>

<

addnamespace="Microsoft.Web.UI.Controls"assembly="Microsoft.Web.Atlas"tagPrefix="atlas"/>

</

controls>

</

pages>

<

compilationdebug="true">

<

buildProviders>

<

addextension=".asbx"type="Microsoft.Web.Services.BridgeBuildProvider"/>

</

buildProviders>

<

assemblies>

<

addassembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>

<

httpHandlers>

<

removeverb="*"path="*.asmx"/>

<

addverb="*"path="*.asmx"type="Microsoft.Web.Services.ScriptHandlerFactory"validate="false"/>

<

addverb="*"path="atlasbatchcall.axd"type="Microsoft.Web.Services.MultiRequestHandler"validate="false"/>

<

addverb="*"path="atlasglob.axd"type="Microsoft.Web.Globalization.GlobalizationHandler"validate="false"/>

<

addverb="*"path="*.asbx"type="Microsoft.Web.Services.ScriptHandlerFactory"validate="false"/>

</

httpHandlers>

<

httpModules>

<

addname="ScriptModule"type="Microsoft.Web.Services.ScriptModule"/>

<

addname="BridgeModule"type="Microsoft.Web.Services.BridgeModule"/>

<

addname="WebResourceCompression"type="Microsoft.Web.Services.WebResourceCompressionModule"/>

</

httpModules>

</

system.web>

</

configuration>

There should not be anything different *just* for using the atlas controls. If you store your connection info in the web.config (like many of us do) then you store them the same way, by adding a section that looks something like this:

<

connectionStrings>

<

addname="NameYouPick"providerName="System.Data.SqlClient"connectionString="ConnectionString Provided by your server host or check Connectionstrings.com" />

</connectionStrings>


ok,

What I don't understand is that my web.config file has no mention of any connectionString. So how does it create/use the db that it creates automatically when I use the ASP .NET Configuration tool?

I want to configure the web.config file so that when I click on the ASP .NET Configuration menu it actually does the work on the database on my server; this database is on the same server that serves the webpages.

Like I said, using the starter kits was easy because the web.config file had connectionString entires and all I had to do was change the properties.

I tried to make changes as you suggusted:

<?

xmlversion="1.0"?>

<

configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<

connectionStrings>

<

addname="Personal"connectionString="Data Source=192.168.2.104;Initial Catalog=monkeyLove;Persist Security Info=True;UID=*******;PWD=********"providerName="System.Data.SqlClient" />

</

connectionStrings>

<

configSections>

<

sectionGroup....... more stuff that I left out becuase i didn't change it from my first example.

and I got this error when I tried to run ASP .NET Configuration: (line 6 is right after </connectionString>)

Only one element allowed per config file and if present must be the first child of the root element. (D:\Visual Studio 2005\WebSites\MonkeyLoveBeta\web.config line 6)


Well, to your first question, I'm not positive but I suspect that the admin tool has it's own web.config that it uses. It modifies your web.config but doesn't use it for its own settings. Also, I will say that there's no requirement to put a connection string in the web.config in order to use a database. You could just as easily define it as you go, although it's obviously harder to maintain that way.

The error you're describing suggests that you already have a connectionStrings entry in your latest web.config, the default one that gets added in mine when I use the config tool is right after the <appSettings> entry.

Monday, March 26, 2012

Atlas UpdatePanel and FormsAuthentication Cookie Expiry

Hello all,

i have an ASP.NET 2 website that uses Forms Authentication. When the auth cookie expires, and an attempt is made to refresh a page or post-back, the browser is automatically redirected to the login page, according to settings in the web.config. All is well so far.

I then decided to use Atlas in my pages, specifically the "UpdatePanel" control in order to prevent the whole page being re-served each time when only one control needed to be updated. This also seemed to work fine.

The problem occurs when the Authentication Cookie has expired. Now instead of redirecting to the login page on a post-back, I just get a pop-up msgbox from IE6 saying simpy "Unknown Error". If I refresh the page however using the refresh browser button, i *do* get back to the login page.

I guess the Atlas Update Panel control is somehow minimising the HTML updates in the http reponse (which i guess is the whole point of the Update Panel control).. and blocking the redirect.

I have no clue how to get round this without removing Atlas - but that can't be the solution.. can it? :)

ok i've found my answer in the Atlas forums.. this is a bug in Atlas and although it was apparently supposed to be fixed in the 'next' CTP (July), it wasn't. So i'm not sure when it will be available.
I've not tried, but perhaps in your page load, something like
If Not Me.User.Identity.IsAuthenticatedThen FormsAuthentication.RedirectToLoginPage()End If

yeah, this work-around works.. almost.. if you put this in the Page_Load, it means that the actions of the postback are carried out on the server even though the user is no longer authenticated. Then, when the page_load is executed the user is redirected to the login page because it's only at this point that the authentication is checked.

It would be a bit better if the authentication could be checked in a single place in the Master page_load, but i'm not sure how to check the authentication from here since me.user.identity doesn't work.

Saturday, March 24, 2012

Atlas to RC1 Conversion

I have a pretty big Atlas website which I love. I want to go to RC1 but I hear trying to do that will make me stop loving my atlas website.

Is there a guide that I can use to upgrade from atlas to RC1?

Do you guys recommend that I just wait for the RTM?

Thanks!

Try thishttp://ajax.alpascual.com/Walkthrough/AtlasToAspNetAjax.aspx

Since I posted this I found: http://ajax.asp.net/files/Migration_Guide_CTP_to_RC.aspx

I guess there are A LOT of web.config changes to be made. Thanks for your reply though. I've learned from your posts before.



keenster:

Since I posted this I found: http://ajax.asp.net/files/Migration_Guide_CTP_to_RC.aspx

I guess there are A LOT of web.config changes to be made. Thanks for your reply though. I've learned from your posts before.

Thanks, very kind of you!

Let me know if you have any problem migrating, its pretty straigh forward.


ahh ha! It all works...except for the autocompleteextender. I think that needs it's own post.

I think i was successfull this time because i add to the web.config file that came with RC1 instead of trying to change mine to match it.


Atlas to Ajax 1.0 Upgrade Nightmare

I am trying to upgrade my website from the Atlas release to Ajax 1.0 and can't seem to get it working.

I have removed all references to Atlas from my pages and my Web.Config file. I then added the asp:ScriptManager and asp:UpdatePanel from scratch. However, now no matter what I try I get a full page refresh. Here is a snippet of my code, I'm hoping I just left something out and that someone picks it up:

<asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager>

<asp:UpdatePanelID="UpdatePanel1"runat="server">
<ContentTemplate>
<asp:DropDownListID="City"runat="server"SkinID="RegularDropDown"><asp:ListItemValue=""Text="City/Town"/></asp:DropDownList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTriggerControlID="County"EventName="SelectedIndexChanged"/>
</Triggers>
</asp:UpdatePanel>

Here is a snippet from my Web.Config file:

<pages>

<controls>
<addtagPrefix="asp"namespace="System.Web.UI"assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<compilationdebug="true">
<assemblies>
<addassembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<addassembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<addassembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>

Thanks in advance for any help,
Russ

Hi Zero,

Three things worth checking:

1 - Is theAsyncPostBackTrigger ControlID supposed to be 'Country' or 'County'.

2 - Have you tried setting the UpdateMode property of the UpdatePanel?

3 - Have you removed the following line from the top of your page:
<%@.RegisterAssembly="Microsoft.Web.Atlas"Namespace="Microsoft.Web.UI"TagPrefix="atlas" %>

Not sure if these are the source of your problem but can't hurt to try.

Good Luck,
DJH


Hi Russ,

Here is a link which describes the things to do when you are converting from an Atlas project to an Ajax project:

http://ajax.asp.net/documentation/Migration_Guide_CTP_to_RTM.aspx

Hope this helps!

Regards,


Exactly what I needed, thank you for the link to the migration guide.

I just used the new Web.Config file and copied my variables over to it and it seemed to fix the problem.

Thanks again,
Russ

atlas template in VS 2005 professional

I have installed VS2005 professional in my home pc while VS2005 team suite at my office.

In VS2005 when i create new website i can't find atlas asp.net web site template.Is it provided in the professional edition or not.Or i have some problem.

Hi there,

To get the Atlas templates to show up, you need to download and install the Atlas January CTP drop. You can install it from here:http://msdn.microsoft.com/asp.net/info/future/atlastemplate/

I'm about to post some slides+samples on my blog shortly about Atlas if you want to get up to speed quickly. Take a look here in a few hours: http://weblogs.asp.net/scottgu

Hope this helps,

Scott

Atlas tags in VS2005

Hello,

While reading the followingpost and trying ot test a code in my VS2005 Atlas WebSite , I found that some atlas tags were not recognised in my application to the extend that, the intellisense complete word doesn't propose tas such as: <atlas:ListView>, <atlas:label>, <atlas:itemView>,<atlas:DragDropList>, <atlasDraggableListItem>, etc.

Could some one explain me why my VS2005, dosen't recognise these tags and how can I do to enable that?

Thanks

same problem for me too. I can only see following 10 atlas controls:

<

atlas:AutoCompleteExtender></atlas:AutoCompleteExtender><atlas:DragOverlayExtender></atlas:DragOverlayExtender><atlas:Gadget></atlas:Gadget><atlas:InitialData></atlas:InitialData><atlas:ProfileScriptService></atlas:ProfileScriptService><atlas:ScriptManager></atlas:ScriptManager><atlas:ScriptManagerProxy></atlas:ScriptManagerProxy><atlas:TimerControl></atlas:TimerControl><atlas:UpdatePanel></atlas:UpdatePanel><atlas:UpdateProgress></atlas:UpdateProgress>I'm using the March CTP release. Also I'm wondering why these tags do not appear in the toolbox list??

Wednesday, March 21, 2012

Atlas Session Timeout/Expires

I have a secured area of my website that uses Forms authentication that I am trying to integrate Atlas into. The problem that I am having is that whenever my session expires and I try to do something that is within an UpdatePanel, it won't bounce me back to the login page. The remote request executes and the XMLHttp response back to my browser is the login page, but the client side components of Atlas don't know what to do with it?

Any ideas?

Jonathan

Hello Jonathan,

We will take a look and I will post a follow-up. Thanks for the info.


Same problem... Would really like a solutions...

Thanks for the feedback. We are working on a solution for a future release.


I have a solution, though not pretty...

Add a Meta Refresh for one second longer than your session timeout. This way the global refresh will redirect to the login page if the session times out. The Atlas postbacks will keep the session alive, so if the session is valid, the user will see a page refresh. Make sure you save state in session vars so you can return to the same point they were at.

-Jesse
Any update on this? We're also running into the same problem.

Thanks!

Jonas


The partial page rendering work from the last CTP release has undergone some revisiting and now handles this better. It will be available in our next release. The exact date for that is not yet nailed down, probably late September or early October.
What about for Webservice calls? Will there be a way to detect a session timeout/forms auth timeout there?

Jonas


Could anyone tell how it is finally done in the Release version?

ATLAS seems to me to be slow

I've bulild a new website, some of the pages uses Atlas others not.

Pages without Atlas are 3 times faster then pages with Atlas.

Are there some trick to perform the pages with atlas?

Christian

Hi Christian,

It may be that you are running in debug mode. Please see this otherpost for details.

thanks,
David


Hi David,

thanks!

This was the solution!

Christian

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>