Solved

Formview with Visual Studio 2012

Posted on 2015-02-11
2
116 Views
Last Modified: 2015-02-12
Hello,
I was wondering if there was an easy to to display each of the returned records in a Formview withing a form of a web application that would use a list format rather than just being "Paging" through each one at at time?  

<asp:LinqDataSource ID="LinqDS" runat="server" ContextTypeName="My.DataContext" EntityTypeName="" TableName="MyList" Where="MyID== @MySessionID" EnableUpdate="True">
        <WhereParameters>
            <asp:SessionParameter Name="MyID" SessionField="MyID" Type="String" />
        </WhereParameters>
    </asp:LinqDataSource>

Open in new window


<asp:FormView ID="FormView1" runat="server" AllowPaging="True" DataKeyNames="SubletID" DataSourceID="LinqDataSource">            
            <ItemTemplate>
                SubletID:
                <asp:Label ID="SubletIDLabel" runat="server" Text='<%# Eval("SubletID") %>' />
                <br />
                WSUID:
                <asp:Label ID="MYIDLabel" runat="server" Text='<%# Bind("MyID") %>' />
                <br />

            </ItemTemplate>
        </asp:FormView>

Open in new window


I appreciate any guidance on this.
0
Comment
Question by:javierpdx
2 Comments
 
LVL 12

Accepted Solution

by:
Jitendra Patil earned 500 total points
Comment Utility
as per your requirement "use a list format rather than just being "Paging" through each one at at time"

you can use gridview to bind the data linq datasource with it and it would suffice your requirement of displaying list format data with paging.

form view is intended to display single records in a form structure.

hope this helps.
0
 

Author Closing Comment

by:javierpdx
Comment Utility
I like that idea.  I can make that work.  Thanks!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now