Author: cubangt | Posted on: 8/26/2010 3:24:46 PM | Views : 292

I want to allow the user to view and edit their information.
So using another example i found online, i got it work, but the example was setup for you to provide the user name and search for the person, since you are already logged into the system i want to pass your username into the code so that on page load the DetailView is populated with your details.
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="UserName" DataSourceID="ObjectDataSource2" Width="400px"> <Fields> <asp:BoundField DataField="PasswordQuestion" HeaderText="PasswordQuestion" ReadOnly="True" SortExpression="PasswordQuestion" /> <asp:BoundField DataField="UserName" HeaderText=&quo ...

Go to the complete details ...