Showing posts with label creating. Show all posts
Showing posts with label creating. Show all posts

Wednesday, March 28, 2012

atlas will install but template doesnt show up when creating new web site

Am running Win Srvr 2003/SP1 and have installed/uninstalled Atlas multiple times and it installs fine, but the template never shows up when I want to start a new website in VS2005. Have also tried turning off virus checker during install, with still no success.What must I do??Crying

hello.

inside the installation folder (something like C:\Program Files\Microsoft ASP.NET\Atlas\v2.0.50727), you'll find the aspnetatlas.vsi file. running this should install the templates for c# and vb.net.


Luis, thank you for taking the time to respond. Did what you suggested and it seems to install and says it was successful, but then the template still does not show up when attempting to create a new web site in VS2005. Does this not work on Win Srvr2003? All of my colleagues who have Win XP Pro have had no trouble getting it to install.? Thanks, Michael B.beebemichael3@.hotmail.com


hello.

hum...i'd say no. at work, i've installed it at a win 2003 server and i can see the template on my list.

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!

Monday, March 26, 2012

Atlas UpdatePanel Browser Hang

I am currently creating a web page utilizing the April Atlas CTP. On my web page there is a dropdown list, a listbox, and two buttons for add and remove. The goal is to allow the user to select an item from the drop down and move it to the listbox. The selected item is then removed from the dropdown control. Removing an item does the same but from the listbox to the dropdown.

Here is the web page snippet:

<asp:Content ID="newJobContent" ContentPlaceHolderID="mainContentArea" runat="Server">
<atlas:ScriptManager ID="scriptManager" runat="server" EnablePartialRendering="True">
</atlas:ScriptManager>
...

<div id="artist_area" style="border: solid 1px black">
Artist(s):
<atlas:UpdatePanel ID="panelArtistDropDown" runat="server">
<ContentTemplate>
<asp:DropDownList ID="ddlArtist" runat="server" CssClass="control" Width="150">
</asp:DropDownList>
<asp:ListBox ID="lstArtist" runat="server" CssClass="control" Rows="4" Width="200"> </asp:ListBox>
</ContentTemplate>
<Triggers>
<atlas:ControlEventTrigger ControlID="btnAdd" EventName="Click" />
<atlas:ControlEventTrigger ControlID="btnRemove" EventName="Click" />
</Triggers>
</atlas:UpdatePanel>
<asp:Button ID="btnRemove" runat="server" OnClick="btnRemove_Click" Text="<" />
<asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text=">" />
<asp:CustomValidator ID="valCustArtist" runat="server" ClientValidationFunction="CheckArtist" ControlToValidate="lstArtist" ErrorMessage="You must select an artist(s)." ValidateEmptyText="True"></asp:CustomValidator>
</div
And here's the server side code:

protected void btnAdd_Click(object sender, EventArgs e)
{
ListItem li = new ListItem();

li.Value = ddlArtist.SelectedItem.Value;
li.Text = ddlArtist.SelectedItem.Text;

lstArtist.Items.Add(li);
ddlArtist.Items.Remove(li);
}
protected void btnRemove_Click(object sender, EventArgs e)
{
ListItem li = new ListItem();

li.Value = lstArtist.SelectedItem.Value;
li.Text = lstArtist.SelectedItem.Text;

ddlArtist.Items.Add(li);
ddlArtist.Items.Remove(li);
}

Here's the problem... in IE6 I can add or remove 2 items. On the third try the browser will hang. The code behind is never called. The only way to get control back is to refresh the page. With FireFox everything works great. Very strange. Has anyone experienced this? Any help would be appreciated.I've tracked down the problem. Seems like a third party tool that we use (BasicDatePicker) is causing the problem. When we remove the third party control IE works as it should. Frankly I'm not too surprised because BasicDatePicker generates a ton of javascript. Looks like I'll be coming up with a new date control ;)