Search

You searched for the word(s): userid:876902

Matching Posts

  • Re: Problem with gridview RowUpdating event

    Don't you need DataKeyNames property in your grid? Add a unique "Id" property to the ShoppingCartItem and use it as the DataKey. It is my understanding that DataKey has to be unique? If you use Description or anyother field as DataKey then what if the two items have the same description (say Description="") - the GridView won't be able to identify which row belongs to which item. Let me know if this helps.
    Posted to Data Presentation Controls (Forum) by Atiq Mir on 7/5/2009
    Filed under: Grid view + c# + OnRowUpdating + RowUpdating + Rows.Count + 0
  • Re: DropDownList: Multiple fields in DataTextField?

    Here's an example using Linq. Note the Select statement in LinqDataSource: <asp:DropDownList ID="DropDownListChapters" runat="server" AutoPostBack="True" DataSourceID="LinqDataSourceChapters" DataTextField="Name" DataValueField="ChapterId" /> <asp:LinqDataSource ID="LinqDataSourceChapters" runat="server" ContextTypeName="myDataContext" TableName="Chapters" Select='new ((Album.Name
    Posted to Web Forms (Forum) by Atiq Mir on 6/22/2009
    Filed under: LINQ Multiple fields DataTextField
Page 1 of 1 (2 items)
Microsoft Communities