Solved

Formview with Visual Studio 2012

Posted on 2015-02-11
2
125 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
ID: 40605050
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
ID: 40605905
I like that idea.  I can make that work.  Thanks!
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

839 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