Hi,
I'm new to WCF.
I'm getting the below error when I try to call a WCF service from jQuery.
Error Code 415 - 'Cannot process the message because the content type 'application/json; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'.
Here is the ajax call from jQuery:-...
Hi jbenson,
I got it to work, finally.
All I had to do was, put the line of code "grd.PageSize = 4;" before the statement grd.DataBind();
DataBind triggers the databind of ObjectDataSource which calculates the Page numbers based on TotalNumberOfRecords and TotalNumberOfRecords/Page (PageSize)...
hi jbenson,
Thanks for the reply. This is an useful tip.
I'll try to explain the reason behind going for an ObjectDatasource instead of a of a regualr Dataset(Datatable). This is not a regular pagination. Even though I show pages 1..10, I get the data corresponding to one particular page at...
Hi,
grd.DataSource is set to an ObjectDataSource. The data displayed itself is fine and corresponds to the data that is supposed to be displayed on page #25. It's just the page numbers on the pager, which is causing the issue.
Here is the code:-
protected void Page_Load(object sender...
hi jbenson,
Thanks for the reply.
The grid lists dates as one of the columns and I have to set the page which has today's date as the start-up page (current page) when the grid is rendered. This page need not necessarily be the 1st page. This could be the 8th page or 25th page, for instance...
Hi,
I have a gridview (using VS 2005) whose PageMode is "Numeric", PageButtonsCount is set to 10 and the PageSize (NumberOfRecordsPerPage) is 2. I'm planning to navigate to page # 25 programatically by setting grd.PageIndex = 25;. Even though the data populated in the grid correctly corresponds...
Hi,
I have a Form which has 4 user controls. The Forms <form> tag has "target=_blank" set. Hence, any submit in any user control opens up a new window. This is fine & as per the requirement.
Now, I have a new user control I want to add, but I don't want the submit in this user control to open...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.