Submitted Questions

  • how to get Listview Data Key on Button Click

    how to find a datakey value on image button click in listview without using any Listview event ???

    shanaz fathima

    • Mar 5th, 2012

    If you want to Get Data Key value on Click of ImageButton/LinkButton, you can set the DataKey value to CommandArgument property of your control and then in Click handler you can get the value from CommandArgument property

    Code
    1.  <asp:ImageButton ID="ibtn" runat="server" CommandArgument=<%# Eval("DataKeyName")%>
    2.  ImageUrl="~/Images/edit.png"></asp:ImageButton>
    3.  

  • What is the main role of View State?

    what is the main purpose of view Sate.. like we can maintain value by session and etc but still we used view state why..???

  • ASP.NET Repeater Control

    Is it Possible in Repeater control to do a functionality of Edit, Update, Delete as Gridview,listview and etc Data binding Control?

    Urmi

    • Apr 20th, 2012

    No.The Repeater control is used to display a repeated list of items that are bound to the control. The Repeater control may be bound to a database table, an XML file, or another list of items.

    Aarti Helkar

    • Apr 9th, 2012

    Yes, repeater also have that capability to edit,delete and update the record.

    We have to explicitly write the code for that, as we write for the binding of db.