Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Listview Selected Values

Status
Not open for further replies.

baronmatthews

IS-IT--Management
Aug 24, 2004
15
0
0
US
I have been racking my brain entirely too long on this issue and I am getting ready to move on and work on something else while I put this on simmer... It would be a simple solution using regular old asp, but asp.net sure looks "fancy" for this new project. I am hoping that it is just something simple I am missing.

I have two list views on my page, the first one allows you to search for people by name, simple enough. I then allow the desired person to be selected with a button, which then feeds data into the second list view. The second list view pulls up additional details on the person they have selected. I am using the "SelectedValue" of the listview control, which works fine, except I could have multiple patient visits. It would cloud the second list view. I need to get the date/time field from the first list view, not just the account number, and use it in the second list view. I have tried a number of things, but I am just not familiar enough with asp.net to get anything other than the first value from the list view selection.
 
1st, it sounds like you are using webforms for you html engine. webforms runs on top of asp.net, but it isn't asp.net.
2nd what code do you have so far? this will help us assist you better.

if you have a dropdownlist or listbox that selects exactly 1 value selectedindex or selectedvalue will work. if you have a listbox that allows multiple selects, then you need to iterate through the items and pull out the selected ones.

here is a static utility to do so
Code:
public static class WebServerControlUtil
{
   public static IEnumerable<string> GetSelectedValuesFrom(DataList control)
   {
      foreach(ListItem item in control.Items)
      {
         if(!item.Selected) continue;
         yield return item.Value;
      }
   }
}

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Yes, Web Forms would be right -> Add New Item -> Web Form...

I am just using one select button that I inserted inside the code, so I'm not entirely sure if it is allowing more than one value to be selected. I've used SelectedValue to get the one value, but I really need to get another
value (the visit date in the data below). Right now, I'm getting ready to hack around it and group by the visit date. That will work, but it is the principle of the matter right now. Like I said, I could do this using some classic asp pretty quickly. Honestly, my asp.net/web form knowledge is not that great. I manged to cobble together my first listview (separate from these two) and used some drop downs to pull data via a code behind (to bind to the insert), but this second set is what is difficult.
You probably don't need all of my code, so this is probably overkill, but I'm short on time to whittle it down right now (also, there is nothing in the code behind at the moment b/c nothing I tried would work):

Code:
<asp:ListView ID="ListView1" runat="server" DataKeyNames="PtAcct" 
            DataSourceID="NutritionCenter">
            <ItemTemplate>
                <tr style="background-color:#DCDCDC;color: #000000;">
                    <td>
                        <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
                        <asp:Button ID="SelectButton" runat="server" CommandName="Select" Text="Select" />
                    </td>
                    <td>
                        <asp:Label ID="PtAcctLabel" runat="server" Text='<%# Eval("PtAcct") %>' />
                    </td>
                    <td>
                        <asp:Label ID="PtNameLabel" runat="server" 
                            Text='<%# Eval("PtName") %>' />
                    </td>
                    <td>
                        <asp:Label ID="VisitDateLabel" runat="server" 
                            Text='<%# Eval("VisitDate") %>' />
                    </td>
                    <td>
                        <asp:Label ID="ResponsibleLabel" runat="server" 
                            Text='<%# Eval("Responsible") %>' />
                    </td>
                    <td>
                        <asp:Label ID="AddressLabel" runat="server" Text='<%# Eval("Address") %>' />
                    </td>
                    <td>
                        <asp:Label ID="CityLabel" runat="server" Text='<%# Eval("City") %>' />
                    </td>
                    <td>
                        <asp:Label ID="StateLabel" runat="server" Text='<%# Eval("State") %>' />
                    </td>
                    <td>
                        <asp:Label ID="ZipLabel" runat="server" Text='<%# Eval("Zip") %>' />
                    </td>
                    <td>
                        <asp:Label ID="MRNumLabel" runat="server" Text='<%# Eval("MRNum") %>' />
                    </td>
                </tr>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <tr style="background-color:#FFF8DC;">
                    <td>
                        <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
                        <asp:Button ID="SelectButton" runat="server" CommandName="Select" Text="Select" />
                    </td>
                    <td>
                        <asp:Label ID="PtAcctLabel" runat="server" Text='<%# Eval("PtAcct") %>' />
                    </td>
                    <td>
                        <asp:Label ID="PtNameLabel" runat="server" 
                            Text='<%# Eval("PtName") %>' />
                    </td>
                    <td>
                        <asp:Label ID="VisitDateLabel" runat="server" 
                            Text='<%# Eval("VisitDate") %>' />
                    </td>
                    <td>
                        <asp:Label ID="ResponsibleLabel" runat="server" 
                            Text='<%# Eval("Responsible") %>' />
                    </td>
                    <td>
                        <asp:Label ID="AddressLabel" runat="server" Text='<%# Eval("Address") %>' />
                    </td>
                    <td>
                        <asp:Label ID="CityLabel" runat="server" Text='<%# Eval("City") %>' />
                    </td>
                    <td>
                        <asp:Label ID="StateLabel" runat="server" Text='<%# Eval("State") %>' />
                    </td>
                    <td>
                        <asp:Label ID="ZipLabel" runat="server" Text='<%# Eval("Zip") %>' />
                    </td>
                    <td>
                        <asp:Label ID="MRNumLabel" runat="server" Text='<%# Eval("MRNum") %>' />
                    </td>
                </tr>
            </AlternatingItemTemplate>
            <EmptyDataTemplate>
                <table runat="server" 
                    style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;">
                    <tr>
                        <td>
                            No data was returned.</td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <InsertItemTemplate>
                <tr style="">
                    <td>
                        <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                            Text="Insert" />
                        <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                            Text="Clear" />
                    </td>
                    <td>
                        <asp:TextBox ID="PtAcctTextBox" runat="server" Text='<%# Bind("PtAcct") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="PtNameTextBox" runat="server" Text='<%# Bind("PtName") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="VisitDateTextBox" runat="server" 
                            Text='<%# Bind("VisitDate") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="ResponsibleTextBox" runat="server" 
                            Text='<%# Bind("Responsible") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="AddressTextBox" runat="server" Text='<%# Bind("Address") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="CityTextBox" runat="server" Text='<%# Bind("City") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="StateTextBox" runat="server" Text='<%# Bind("State") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="ZipTextBox" runat="server" Text='<%# Bind("Zip") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="MRNumTextBox" runat="server" Text='<%# Bind("MRNum") %>' />
                    </td>
                </tr>
            </InsertItemTemplate>
            <LayoutTemplate>
                <table runat="server">
                    <tr runat="server">
                        <td runat="server">
                            <table ID="itemPlaceholderContainer" runat="server" border="1" 
                                style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;font-family: Verdana, Arial, Helvetica, sans-serif;">
                                <tr runat="server" style="background-color:#DCDCDC;color: #000000;">
                                    <th runat="server">
                                        </th>
                                    <th runat="server">
                                        PtAcct</th>
                                    <th runat="server">
                                        PtName</th>
                                    <th runat="server">
                                        VisitDate</th>
                                    <th runat="server">
                                        Responsible</th>
                                    <th runat="server">
                                        Address</th>
                                    <th runat="server">
                                        City</th>
                                    <th runat="server">
                                        State</th>
                                    <th runat="server">
                                        Zip</th>
                                    <th runat="server">
                                        MRNum</th>
                                </tr>
                                <tr ID="itemPlaceholder" runat="server">
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr runat="server">
                        <td runat="server" 
                            style="text-align: center;background-color: #CCCCCC;font-family: Verdana, Arial, Helvetica, sans-serif;color: #000000;">
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
            <EditItemTemplate>
                <tr style="background-color:#008A8C;color: #FFFFFF;">
                    <td>
                        <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                            Text="Update" />
                        <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                            Text="Cancel" />
                    </td>
                    <td>
                        <asp:Label ID="PtAcctLabel1" runat="server" Text='<%# Eval("PtAcct") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="PtNameTextBox" runat="server" Text='<%# Bind("PtName") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="VisitDateTextBox" runat="server" 
                            Text='<%# Bind("VisitDate") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="ResponsibleTextBox" runat="server" 
                            Text='<%# Bind("Responsible") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="AddressTextBox" runat="server" Text='<%# Bind("Address") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="CityTextBox" runat="server" Text='<%# Bind("City") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="StateTextBox" runat="server" Text='<%# Bind("State") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="ZipTextBox" runat="server" Text='<%# Bind("Zip") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="MRNumTextBox" runat="server" Text='<%# Bind("MRNum") %>' />
                    </td>
                </tr>
            </EditItemTemplate>
            <SelectedItemTemplate>
                <tr style="background-color:#008A8C;font-weight: bold;color: #FFFFFF;">
                    <td>
                        <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
                        <asp:Button ID="SelectButton" runat="server" CommandName="Select" Text="Select" />
                    </td>
                    <td>
                        <asp:Label ID="PtAcctLabel" runat="server" Text='<%# Eval("PtAcct") %>' />
                    </td>
                    <td>
                        <asp:Label ID="PtNameLabel" runat="server" 
                            Text='<%# Eval("PtName") %>' />
                    </td>
                    <td>
                        <asp:Label ID="VisitDateLabel" runat="server" 
                            Text='<%# Eval("VisitDate") %>' />
                    </td>
                    <td>
                        <asp:Label ID="ResponsibleLabel" runat="server" 
                            Text='<%# Eval("Responsible") %>' />
                    </td>
                    <td>
                        <asp:Label ID="AddressLabel" runat="server" Text='<%# Eval("Address") %>' />
                    </td>
                    <td>
                        <asp:Label ID="CityLabel" runat="server" Text='<%# Eval("City") %>' />
                    </td>
                    <td>
                        <asp:Label ID="StateLabel" runat="server" Text='<%# Eval("State") %>' />
                    </td>
                    <td>
                        <asp:Label ID="ZipLabel" runat="server" Text='<%# Eval("Zip") %>' />
                    </td>
                    <td>
                        <asp:Label ID="MRNumLabel" runat="server" Text='<%# Eval("MRNum") %>' />
                    </td>
                </tr>
            </SelectedItemTemplate>
        </asp:ListView>
        <asp:SqlDataSource ID="NutritionCenter" runat="server" 
            ConnectionString="<%$ ConnectionStrings:NutritionCenterConnectionString2 %>" 
            
            SelectCommand="SELECT DISTINCT PtAcctData.PtAcct, PtAcctData.PtName, PtHistory.VisitDate, PtAcctData.Responsible, PtAcctData.Address, PtAcctData.City, PtAcctData.State, PtAcctData.Zip, PtAcctData.MRNum FROM PtAcctData LEFT OUTER JOIN PtHistory ON PtAcctData.PtAcct = PtHistory.PtAcct WHERE (PtAcctData.PtName LIKE '%' + @PtName + '%')" 
            DeleteCommand="DELETE FROM [PtAcctData] WHERE [PtAcct] = @PtAcct" 
            InsertCommand="INSERT INTO [PtAcctData] ([PtAcct], [PtName], [Responsible], [Address], [City], [State], [Zip], [MRNum]) VALUES (@PtAcct, @PtName, @Responsible, @Address, @City, @State, @Zip, @MRNum)" 
            
            
            UpdateCommand="UPDATE [PtAcctData] SET [PtName] = @PtName, [Responsible] = @Responsible, [Address] = @Address, [City] = @City, [State] = @State, [Zip] = @Zip, [MRNum] = @MRNum WHERE [PtAcct] = @PtAcct">
            <SelectParameters>
                <asp:ControlParameter ControlID="txt1" Name="PtName" PropertyName="Text" 
                    Type="String" />
            </SelectParameters>
            <DeleteParameters>
                <asp:Parameter Name="PtAcct" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="PtName" Type="String" />
                <asp:Parameter Name="Responsible" Type="String" />
                <asp:Parameter Name="Address" Type="String" />
                <asp:Parameter Name="City" Type="String" />
                <asp:Parameter Name="State" Type="String" />
                <asp:Parameter Name="Zip" Type="Int32" />
                <asp:Parameter Name="MRNum" Type="String" />
                <asp:Parameter Name="PtAcct" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="PtAcct" Type="Int32" />
                <asp:Parameter Name="PtName" Type="String" />
                <asp:Parameter Name="Responsible" Type="String" />
                <asp:Parameter Name="Address" Type="String" />
                <asp:Parameter Name="City" Type="String" />
                <asp:Parameter Name="State" Type="String" />
                <asp:Parameter Name="Zip" Type="Int32" />
                <asp:Parameter Name="MRNum" Type="String" />
            </InsertParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        <asp:ListView ID="ListView2" runat="server" DataSourceID="NutritionCenter2">
            <ItemTemplate>
                <tr style="background-color:#DCDCDC;color: #000000;">
                    <td>
                        <asp:Label ID="PtAcctLabel" runat="server" Text='<%# Eval("PtAcct") %>' />
                    </td>
                    <td>
                        <asp:Label ID="VisitNumLabel" runat="server" Text='<%# Eval("VisitNum") %>' />
                    </td>
                    <td>
                        <asp:Label ID="VisitDateLabel" runat="server" Text='<%# Eval("VisitDate") %>' />
                    </td>
                    <td>
                        <asp:Label ID="CPTLabel" runat="server" Text='<%# Eval("CPT") %>' />
                    </td>
                    <td>
                        <asp:Label ID="DescriptionLabel" runat="server" 
                            Text='<%# Eval("Description") %>' />
                    </td>
                    <td>
                        <asp:Label ID="QtyLabel" runat="server" Text='<%# Eval("Qty") %>' />
                    </td>
                    <td>
                        <asp:Label ID="FeeLabel" runat="server" Text='<%# Eval("Fee") %>' />
                    </td>
                    <td>
                        <asp:Label ID="TotalLabel" runat="server" Text='<%# Eval("Total") %>' />
                    </td>
                </tr>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <tr style="background-color:#FFF8DC;">
                    <td>
                        <asp:Label ID="PtAcctLabel" runat="server" Text='<%# Eval("PtAcct") %>' />
                    </td>
                    <td>
                        <asp:Label ID="VisitNumLabel" runat="server" Text='<%# Eval("VisitNum") %>' />
                    </td>
                    <td>
                        <asp:Label ID="VisitDateLabel" runat="server" Text='<%# Eval("VisitDate") %>' />
                    </td>
                    <td>
                        <asp:Label ID="CPTLabel" runat="server" Text='<%# Eval("CPT") %>' />
                    </td>
                    <td>
                        <asp:Label ID="DescriptionLabel" runat="server" 
                            Text='<%# Eval("Description") %>' />
                    </td>
                    <td>
                        <asp:Label ID="QtyLabel" runat="server" Text='<%# Eval("Qty") %>' />
                    </td>
                    <td>
                        <asp:Label ID="FeeLabel" runat="server" Text='<%# Eval("Fee") %>' />
                    </td>
                    <td>
                        <asp:Label ID="TotalLabel" runat="server" Text='<%# Eval("Total") %>' />
                    </td>
                </tr>
            </AlternatingItemTemplate>
            <EmptyDataTemplate>
                <table runat="server" 
                    style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;">
                    <tr>
                        <td>
                            No data was returned.</td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <InsertItemTemplate>
                <tr style="">
                    <td>
                        <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                            Text="Insert" />
                        <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                            Text="Clear" />
                    </td>
                    <td>
                        <asp:TextBox ID="PtAcctTextBox" runat="server" Text='<%# Bind("PtAcct") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="VisitNumTextBox" runat="server" 
                            Text='<%# Bind("VisitNum") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="VisitDateTextBox" runat="server" 
                            Text='<%# Bind("VisitDate") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="CPTTextBox" runat="server" Text='<%# Bind("CPT") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="DescriptionTextBox" runat="server" 
                            Text='<%# Bind("Description") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="QtyTextBox" runat="server" Text='<%# Bind("Qty") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="FeeTextBox" runat="server" Text='<%# Bind("Fee") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="TotalTextBox" runat="server" Text='<%# Bind("Total") %>' />
                    </td>
                </tr>
            </InsertItemTemplate>
            <LayoutTemplate>
                <table runat="server">
                    <tr runat="server">
                        <td runat="server">
                            <table ID="itemPlaceholderContainer" runat="server" border="1" 
                                style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;font-family: Verdana, Arial, Helvetica, sans-serif;">
                                <tr runat="server" style="background-color:#DCDCDC;color: #000000;">
                                    <th runat="server">
                                        PtAcct</th>
                                    <th runat="server">
                                        VisitNum</th>
                                    <th runat="server">
                                        VisitDate</th>
                                    <th runat="server">
                                        CPT</th>
                                    <th runat="server">
                                        Description</th>
                                    <th runat="server">
                                        Qty</th>
                                    <th runat="server">
                                        Fee</th>
                                    <th runat="server">
                                        Total</th>
                                </tr>
                                <tr ID="itemPlaceholder" runat="server">
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr runat="server">
                        <td runat="server" 
                            style="text-align: center;background-color: #CCCCCC;font-family: Verdana, Arial, Helvetica, sans-serif;color: #000000;">
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
            <EditItemTemplate>
                <tr style="background-color:#008A8C;color: #FFFFFF;">
                    <td>
                        <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                            Text="Update" />
                        <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                            Text="Cancel" />
                    </td>
                    <td>
                        <asp:TextBox ID="PtAcctTextBox" runat="server" Text='<%# Bind("PtAcct") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="VisitNumTextBox" runat="server" 
                            Text='<%# Bind("VisitNum") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="VisitDateTextBox" runat="server" 
                            Text='<%# Bind("VisitDate") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="CPTTextBox" runat="server" Text='<%# Bind("CPT") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="DescriptionTextBox" runat="server" 
                            Text='<%# Bind("Description") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="QtyTextBox" runat="server" Text='<%# Bind("Qty") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="FeeTextBox" runat="server" Text='<%# Bind("Fee") %>' />
                    </td>
                    <td>
                        <asp:TextBox ID="TotalTextBox" runat="server" Text='<%# Bind("Total") %>' />
                    </td>
                </tr>
            </EditItemTemplate>
            <SelectedItemTemplate>
                <tr style="background-color:#008A8C;font-weight: bold;color: #FFFFFF;">
                    <td>
                        <asp:Label ID="PtAcctLabel" runat="server" Text='<%# Eval("PtAcct") %>' />
                    </td>
                    <td>
                        <asp:Label ID="VisitNumLabel" runat="server" Text='<%# Eval("VisitNum") %>' />
                    </td>
                    <td>
                        <asp:Label ID="VisitDateLabel" runat="server" Text='<%# Eval("VisitDate") %>' />
                    </td>
                    <td>
                        <asp:Label ID="CPTLabel" runat="server" Text='<%# Eval("CPT") %>' />
                    </td>
                    <td>
                        <asp:Label ID="DescriptionLabel" runat="server" 
                            Text='<%# Eval("Description") %>' />
                    </td>
                    <td>
                        <asp:Label ID="QtyLabel" runat="server" Text='<%# Eval("Qty") %>' />
                    </td>
                    <td>
                        <asp:Label ID="FeeLabel" runat="server" Text='<%# Eval("Fee") %>' />
                    </td>
                    <td>
                        <asp:Label ID="TotalLabel" runat="server" Text='<%# Eval("Total") %>' />
                    </td>
                </tr>
            </SelectedItemTemplate>
        </asp:ListView>
        <asp:SqlDataSource ID="NutritionCenter2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:NutritionCenterConnectionString2 %>" 
            SelectCommand="SELECT PtHistory.PtAcct, PtHistory.VisitNum, PtHistory.VisitDate, PtHistory.CPT, PtHistory.Description, PtHistory.Qty, ItemFeeSchedule.Fee, PtHistory.Qty * ItemFeeSchedule.Fee AS Total FROM PtHistory INNER JOIN ItemFeeSchedule ON PtHistory.CPT = ItemFeeSchedule.CPT WHERE (PtHistory.PtAcct = @PtAcct)">
            <SelectParameters>
                  <asp:ControlParameter ControlID="ListView1" Name="PtAcct" 
                    PropertyName="SelectedValue" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
 
I misunderstood your code the first time around i thought you where talking about a drop down list as in html, not a listview as in web server control. this changes things and my code does not apply.

I will throw out a completely different idea though. you come from an asp background. I would recommend using an MVC framework with a html template engine, rather than the monolithic mess of webforms.

if you are not familiar with MVC (model view controller) the Model and Controller portions may seem foreign, but they are easy enough to grasp. Model is the structure of the data and controller controls getting the model to the view. the View should feel familiar as you use a typical html with server tag soup.

there are 2 main MVC frameworks MS MVC and Castle Monorail. the view engine for MVC is webforms (without the postback model you are dealing with now). the default view engine for monorail is nvelocity. the beauty of MVC is extensibilty. one way to extend the framework is to replace the default view engine with a different one: I have come to love Spark. there is also aspview, nvelocity and brail.

I say all this because if you are familar with classic asp MVC may be more to your liking than the awkwardness of viewstate, postback and page/control events of webforms.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Excellent, I will check out MVC. In the meantime, I think I am just going to group by (and rollup the sums) my visit date and that should be sufficient for this particular application.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top