Showing posts with label provide. Show all posts
Showing posts with label provide. Show all posts

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 implement PopupControlExtender with Calendar in EditItemTemplate in GridView?

Hello,

I've to provide the user in my company with an editable gridview. When clicking on "edit" button there should be available a textbox with the ability to enter a date. This datevalue should come from a calendar.

I would like to have the calendar popuped at the bottom of the textbox.

I looked to the SampleWebsite of AtlasControlToolkit and had success to build a new aspx page with a textbox, a calendar and a PopupControlExtender.

For my question I also searched a lot in the internet and in this forum, but I didn't find the solution which works in my WebApplication.

I develop in VB with Visual Studio .NET 2005, SQL 2005 and have the newest Version of Atlas, AtlasControlTookit and AtlasControlExtender installed.

Could anybody help me?

Thanks a lot.

Paul
I'm not sure I understand your question, but generally you just put the Textbox and PopupControlExtender into the EditTemplate, and I think you can put the calendar control outside of the GridView and just reference it.
Hi, thanks for your advise.

Does this work equally well with a calender control in the footer? My code is as follows.

<asp:GridView ID="gvMisc" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="odsTrans" EmptyDataText="No data" ShowFooter="True" OnRowCommand="gvMisc_RowCommand" OnRowDataBound="gvMisc_RowDataBound">
<Columns>
<asp:TemplateField HeaderText="From" SortExpression="dtFrom">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("dtFrom") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label33" runat="server" Text='<%# Bind("dtFrom", "{0:dd MMM yyyy}") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtFrom" runat="server" CausesValidation="True" ValidationGroup="Validation_Footer"></asp:TextBox>
<atlas:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<atlasToolkit:PopupControlExtender ID="PopupControlExtenderFromDate" runat="server">
<atlasToolkit:PopupControlProperties TargetControlID="txtFrom" PopupControlID="calFrom" Position="Right" />
</atlasToolkit:PopupControlExtender>
</ContentTemplate>
</atlas:UpdatePanel>
</FooterTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Calendar ID="calFrom" runat="server" BackColor="White" BorderColor="#999999"
CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
ForeColor="Black" OnSelectionChanged="calFrom_SelectionChanged" Width="160px">
<SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
<TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
<SelectorStyle BackColor="#CCCCCC" />
<WeekendDayStyle BackColor="#FFFFCC" />
<OtherMonthDayStyle ForeColor="#808080" />
<NextPrevStyle VerticalAlign="Bottom" />
<DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
<TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
</asp:Calendar>

and on the server

protected void calFrom_SelectionChanged(object sender, EventArgs e)
{
PopupControlExtender pce = (PopupControlExtender)gvMisc.FooterRow.FindControl("PopupControlExtenderFromDate");
pce.Commit(calFrom.SelectedDate.ToString("dd MMM yyyy"));
}