Thursday, 25 September 2014

ListView Operations in Asp.Net

List View Links

http://www.nullskull.com/q/10111285/hyperlink-in-a-listview.aspx

Hyperlink in ListView


<asp:HyperLink runat="server" id="LoggedUserGroupList" Text="<%# DataBinder.Eval(Container.DataItem, "col1") %>"
        NavigateUrl='<%#"groupDisplay.aspx?groupName=" & DataBinder.Eval(Container.DataItem, "col2")%>'>
 </asp:HyperLink>

 where,
col1 = text that would appear
col2 = column in the datasource that would give the group name. OR

           
Hi,
                I've done something similar like this (note all the quotes and apostrophes):
          <asp:HyperLink ID="lnkView" runat="server" Text="View"
          NavigateUrl='<%#"~/Users/Transactions.aspx?account=" + Eval("AccountID")%>' />
 
 
List View using Templates
CRUD OPERATION USING LIST VIEW
Edit,Update,Delete and Insert in List View Control 

Various Data Bound Controls Used in ASP.Net

 

New trends in ASP.NET data binding: the ListView control

How to Use ASP.NET 3.5 ListView & DataPager


No comments:

Post a Comment