My current challenge involves populating an ASP GridView using JavaScript. Although the webService call is successful and I am able to retrieve data as expected, I encounter difficulties when trying to display it in my Grid.
Below are snippets of my JavaScript functions:
function SearchUsers() {
AutoComplete.ShowLoginUserOnSearch("PL", "pi", "", "", "", 0, 20, onGetLoginUserSuccess);
}
function onGetLoginUserSuccess(result) {
alert(result[1].ProviderName);
$("#grdvUserInfo").append("<tr><td>" + result[1].UserName +
"</td><td>" + result[1].ProviderName + "</td></tr>");
alert(result[1].UserName);
}
Regarding the Asp.net implementation:
<asp:GridView ID="grdvUserInfo" AllowPaging="True" PagerSettings-
Mode="NextPreviousFirstLast" PageSize="20" runat="server"
AutoGenerateColumns="False" Width="700px" SkinID="grdMySite"
DataSourceID="ObjectDataSource1">
</asp:GridView>
Despite both alerts displaying the correct data, I am faced with the issue that nothing happens within the GridView. What could possibly be causing this problem?