Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Formview with Visual Studio 2012

Posted on 2015-02-11
2
Medium Priority
?
133 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 2000 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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

722 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