 |
|
 |
code not work properly, no example
|
|
|
|
 |
|
 |
There are errors on the PagingRepeter Control when using it in Visual Web Developer. This is what comes up. ErrorElement 'PagingRepeater' is not a known element. This can occur if there is a compilation error in the Web site.
Chris
|
|
|
|
 |
|
 |
Firstly, Thank for your code..it's a great code
if you have 25 data and your PageSize of PagingRepeater is be configured by 10. You'll only get 2 PageCount but it should have 3 paging pages:
Page 1 --> 10 data
page 2 --> 10 data
page 3 --> 5 data
for this reason, you should change the PagingRepeater code,
private void CalculateSize(object dataSource)
{
....
....
this.PageCount = size/this.PageSize;
}
change:
private void CalculateSize(object dataSource)
{
....
....
if((size % this.PageSize)==0 )
this.PageCount = size/this.PageSize;
else
this.PageCount = (size/this.PageSize) + 1;
}
|
|
|
|
 |
|
 |
Has anyone managed to use the control?
I have tried to bind dataset, datatable, dataview, and datarowcollection without success?
I keep getting some exceptions.
A sample on how to use the control would be fantastic along with the source code.
|
|
|
|
 |
|
 |
I tried to set it by designer but I receive exception during .DataBind() method:
Unsupported data type
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Unsupported data type
Source Error:
Line 118: else if ( dataSource != null )
Line 119: {
Line 120: throw new Exception("Unsupported data type");
Line 121: }
Line 122: return currentPageData;
|
|
|
|
 |
|
 |
I have tryed you component, but got a Exception.
The type 'System.Data.DataView' must be marked as Serializable or have a TypeConverter other than ReferenceConverter to be put in viewstate.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The type 'System.Data.DataView' must be marked as Serializable or have a TypeConverter other than ReferenceConverter to be put in viewstate.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The type 'System.Data.DataView' must be marked as Serializable or have a TypeConverter other than ReferenceConverter to be put in viewstate.]
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +1479
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +677
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +170
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +1061
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +256
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +677
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +306
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +677
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +306
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +677
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +306
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +677
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +306
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +677
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +306
System.Web.UI.LosFormatter.SerializeValue(TextWriter output, Object value) +281
System.Web.UI.LosFormatter.SerializeInternal(TextWriter output, Object value) +102
System.Web.UI.Page.OnFormRender(HtmlTextWriter writer, String formUniqueID) +143
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +35
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +397
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1900
How can I fix it ?
|
|
|
|
 |
|
 |
hello
i've got the same exception how to resolve this, thanks
|
|
|
|
 |
|
 |
I think you would get a better rating if your source was downloadable from this page.
Jon Sagara
In India, when someone says "mad cow", you know it's actually a bull charging at him.
-- Rohit Sinha
|
|
|
|
 |
|
|
 |
|
 |
Can you post some sample code to show us how to use your control?
|
|
|
|
 |
|
|
 |
|
 |
The editors seemed to have deleted the source download.
Here it is:
http://www.cscoder.com/downloads/PagingRepeater_src.zip
Enjoy.
Dan Glass
www.olero.com
ORM.NET Data Access made easy
Personal site:
www.danglass.com
|
|
|
|
 |
|
 |
Here is error with "using System.Web.UI.Design.WebControls",
how to do it?
|
|
|
|
 |
|
 |
I will need some more information than this to help you.
Some lines of code and the full exception would be usefull
Dan Glass
Olero Software
ORM.NET Data Access made easy
Personal site:
www.danglass.com
|
|
|
|
 |
|
 |
Is there some sample code on how to use the control?
PCLW
|
|
|
|
 |
|
 |
Error information:
D:\Web Deveopement\Pulse Dynamic Libary\PagingRepeater\PagingRepeater.cs(4): The type or namespace name 'Design' does not exist in the class or namespace 'System.Web.UI' (are you missing an assembly reference?)
SimonYang
|
|
|
|
 |
|
 |
using System.Design.dll
simonyang
|
|
|
|
 |
|
 |
System.Design.dll not found
Can you fix it ?
|
|
|
|
 |