Solved

Formview with Visual Studio 2012

Posted on 2015-02-11
2
129 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
c# ftp code 3 56
pVarablies are clearing but do not think i am reloading page 1 20
Sending HTML Formatted Email from ASP.NET 2 58
Shared Service Environment 2 55
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

710 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