"W.G. Ryan - MVP" wrote:
>The most likely culprit is that the table doesn't have a key on it or
the
>Select query has a join in it. Can you verify this for me? If you
don't
>have a key (or if your query has a join in it) then all of the
automatic
>ways of generating update logic won't work.
Hello
Thank you for the reply.
the SELECT statment doesn't have join in.. notice the strange thing that
the table name is vw_aspnet_MembershipUsers (vw?)..
Notice that if i put other table that i have made my self everything
works simple.. i can update easly, but the ASPNETDB thing, nope..
Here is the source:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="SqlDataSource1" DataKeyNames="UserId">
<Columns>
<asp:BoundField DataField="UserId" HeaderText="UserId"
SortExpression="UserId" />
<asp:BoundField DataField="PasswordFormat"
HeaderText="PasswordFormat" SortExpression="PasswordFormat" />
<asp:BoundField DataField="MobilePIN" HeaderText="MobilePIN"
SortExpression="MobilePIN" />
**** ETC...****
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:UserBase %>"
SelectCommand="SELECT * FROM
[vw_aspnet_MembershipUsers]"></asp:SqlDataSource>
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com