Solved

Formview with Visual Studio 2012

Posted on 2015-02-11
2
132 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 13

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

636 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